From 6f7b6bd1bebf797a95af859e165617db36662783 Mon Sep 17 00:00:00 2001 From: Michael Grote Date: Fri, 4 Jun 2021 19:59:17 +0200 Subject: [PATCH] polybar --- i3/config | 8 +- polybar/config | 342 ++++++++++++++++++++++++++++++++++++++++++++++ polybar/launch.sh | 8 ++ setup.sh | 5 + 4 files changed, 360 insertions(+), 3 deletions(-) create mode 100644 polybar/config create mode 100755 polybar/launch.sh diff --git a/i3/config b/i3/config index 74bff41..f4dd0af 100644 --- a/i3/config +++ b/i3/config @@ -177,6 +177,8 @@ bindsym $mod+r mode "resize" # Start i3bar to display a workspace bar (plus the system information i3status # finds out, if available) -bar { - status_command i3status -} +# auskommntiert weil polybar verwendet wird +#bar { +# status_command i3status +#} +exec_always --no-startup-id $HOME/.config/polybar/launch.sh diff --git a/polybar/config b/polybar/config new file mode 100644 index 0000000..d9e0895 --- /dev/null +++ b/polybar/config @@ -0,0 +1,342 @@ +;========================================================== +; +; ██████╗ ██████╗ ██╗ ██╗ ██╗██████╗ █████╗ ██████╗ +; ██╔══██╗██╔═══██╗██║ ╚██╗ ██╔╝██╔══██╗██╔══██╗██╔══██╗ +; ██████╔╝██║ ██║██║ ╚████╔╝ ██████╔╝███████║██████╔╝ +; ██╔═══╝ ██║ ██║██║ ╚██╔╝ ██╔══██╗██╔══██║██╔══██╗ +; ██║ ╚██████╔╝███████╗██║ ██████╔╝██║ ██║██║ ██║ +; ╚═╝ ╚═════╝ ╚══════╝╚═╝ ╚═════╝ ╚═╝ ╚═╝╚═╝ ╚═╝ +; +;========================================================== + +[colors] +background = #222 +background-alt = #444 +foreground = #dfdfdf +foreground-alt = #555 +primary = #ffb52a +secondary = #e60053 +alert = #bd2c40 + +[bar/example] +;monitor = ${env:MONITOR:HDMI-1} +width = 100% +height = 27 +radius = 6.0 +fixed-center = false + +background = ${colors.background} +foreground = ${colors.foreground} + +line-size = 3 +line-color = #f00 + +border-size = 4 +border-color = #00000000 + +padding-left = 0 +padding-right = 2 + +module-margin-left = 1 +module-margin-right = 2 + +font-0 = fixed:pixelsize=10;1 +font-1 = unifont:fontformat=truetype:size=8:antialias=false;0 +font-2 = siji:pixelsize=10;1 + +modules-left = i3 +modules-right = xbacklight alsa memory cpu wlan eth battery date powermenu +; +tray-position = right +tray-padding = 2 +;tray-background = #0063ff + +;wm-restack = i3 + +;override-redirect = true + +;scroll-up = i3wm-wsnext +;scroll-down = i3wm-wsprev + +cursor-click = pointer +cursor-scroll = ns-resize + +[module/i3] +type = internal/i3 +format = +index-sort = true +wrapping-scroll = false + +; Only show workspaces on the same output as the bar +;pin-workspaces = true + +label-mode-padding = 2 +label-mode-foreground = #000 +label-mode-background = ${colors.primary} + +; focused = Active workspace on focused monitor +label-focused = %index% +label-focused-background = ${colors.background-alt} +label-focused-underline= ${colors.primary} +label-focused-padding = 2 + +; unfocused = Inactive workspace on any monitor +label-unfocused = %index% +label-unfocused-padding = 2 + +; visible = Active workspace on unfocused monitor +label-visible = %index% +label-visible-background = ${self.label-focused-background} +label-visible-underline = ${self.label-focused-underline} +label-visible-padding = ${self.label-focused-padding} + +; urgent = Workspace with urgency hint set +label-urgent = %index% +label-urgent-background = ${colors.alert} +label-urgent-padding = 2 + +; Separator in between workspaces +; label-separator = | + + +[module/xbacklight] +type = internal/xbacklight + +format =