From 23015965a4cecbd7a15049f0239fed4cdf540248 Mon Sep 17 00:00:00 2001 From: srdusr Date: Wed, 16 Nov 2022 16:28:29 +0200 Subject: Added polybar --- .config/polybar/config | 819 +++++++++++++++++++++++ .config/polybar/launch.sh | 18 + .config/polybar/scripts/bluetooth.sh | 12 + .config/polybar/scripts/check-network.sh | 21 + .config/polybar/scripts/check_updates.sh | 118 ++++ .config/polybar/scripts/cmus.sh | 39 ++ .config/polybar/scripts/get_spotify_status.sh | 50 ++ .config/polybar/scripts/menu.sh | 63 ++ .config/polybar/scripts/menu.shsave | 63 ++ .config/polybar/scripts/menu_full.sh | 65 ++ .config/polybar/scripts/now-playing.sh | 217 ++++++ .config/polybar/scripts/polybar_wrapper | 92 +++ .config/polybar/scripts/popup-calendar.sh | 41 ++ .config/polybar/scripts/rofi-power.sh | 45 ++ .config/polybar/scripts/scroll_spotify_status.sh | 12 + .config/polybar/scripts/sysmenu.sh | 40 ++ .config/polybar/scripts/sysmenu.shsave | 40 ++ .config/polybar/scripts/system-usb-mount.sh | 53 ++ .config/polybar/scripts/toggle_bluetooth.sh | 8 + 19 files changed, 1816 insertions(+) create mode 100644 .config/polybar/config create mode 100755 .config/polybar/launch.sh create mode 100755 .config/polybar/scripts/bluetooth.sh create mode 100755 .config/polybar/scripts/check-network.sh create mode 100755 .config/polybar/scripts/check_updates.sh create mode 100755 .config/polybar/scripts/cmus.sh create mode 100755 .config/polybar/scripts/get_spotify_status.sh create mode 100755 .config/polybar/scripts/menu.sh create mode 100755 .config/polybar/scripts/menu.shsave create mode 100755 .config/polybar/scripts/menu_full.sh create mode 100755 .config/polybar/scripts/now-playing.sh create mode 100755 .config/polybar/scripts/polybar_wrapper create mode 100755 .config/polybar/scripts/popup-calendar.sh create mode 100755 .config/polybar/scripts/rofi-power.sh create mode 100755 .config/polybar/scripts/scroll_spotify_status.sh create mode 100755 .config/polybar/scripts/sysmenu.sh create mode 100755 .config/polybar/scripts/sysmenu.shsave create mode 100755 .config/polybar/scripts/system-usb-mount.sh create mode 100755 .config/polybar/scripts/toggle_bluetooth.sh (limited to '.config/polybar') diff --git a/.config/polybar/config b/.config/polybar/config new file mode 100644 index 0000000..b74e48a --- /dev/null +++ b/.config/polybar/config @@ -0,0 +1,819 @@ +;========================================================== +; +; +; ██████╗ ██████╗ ██╗ ██╗ ██╗██████╗ █████╗ ██████╗ +; ██╔══██╗██╔═══██╗██║ ╚██╗ ██╔╝██╔══██╗██╔══██╗██╔══██╗ +; ██████╔╝██║ ██║██║ ╚████╔╝ ██████╔╝███████║██████╔╝ +; ██╔═══╝ ██║ ██║██║ ╚██╔╝ ██╔══██╗██╔══██║██╔══██╗ +; ██║ ╚██████╔╝███████╗██║ ██████╔╝██║ ██║██║ ██║ +; ╚═╝ ╚═════╝ ╚══════╝╚═╝ ╚═════╝ ╚═╝ ╚═╝╚═╝ ╚═╝ +; +; +; To learn more about how to configure Polybar +; go to https://github.com/polybar/polybar +; +; The README contains a lot of information +; +;========================================================== + +[colors] +background = #aa000000 +;background = #aa101212 +;background = #00000000 +background-alt = #aaCECCC9 +;foreground = #aaCECCC9 +foreground = #fafafa +foreground-alt = #aaCECCC9 +primary = #aaCECCC9 +secondary = #aaCECCC9 +alert = #aaCECCC9 +non = #aaCECCC9 +;background = #aa000000 +blue = #61afef +dark_blue = #42A5F5 +nord = #81a1c1 +light_blue = #ADD8E6 +;green = #a0c980 +purple = #c882e7 +orange = #E57C46 +;orange = #d08770 +gray = #676E95 +red = #EC7875 +pink = #EC407A +yellow = #FDD835 +;yellow = #ECBE7B +amber = #FBC02D +indigo = #6C77BB +green = #61C766 +lime = #B9C244 +cyber = #53E2AE + +[bar/top] +;width = 100% +width = 99.15% +height = 24 +offset-x = 0.5% +offset-y = 0.5% +radius = 10.0 +;radius = 0 +fixed-center = true +bottom = false +enable-ipc = true +tray-position = right +tray-padding = 4 +tray-background = ${colors.background} +;tray-offest-x = -15 +;tray-offset-x = 400 +;tray-offset-x = -95 +;tray-offset-x = -208 +;tray-offset-x = -178 +;tray-offset-x = -183 +tray-offset-x = -188 +;tray-offset-x = -210 +tray-offset-y = -0.9 +tray-detached = true + +background = ${colors.background} +foreground = ${colors.foreground} + +line-size = 0 +line-color = ${colors.background-alt} + +;border-top-size = 1 +;border-bottom-size = 1 +;border-right-size = 1 +;border-left-size = 1 +;border-color = ${colors.foreground} +;border-size = 2 +;border-color = ${colors.background} + +padding-left = 0 +padding-right = 0 + +module-margin-left = 0 +module-margin-right = 0 +; Font for date +font-0 = "SF Pro Mono:style=Display Bold:size=10;2" +; Font for crypto, dunst +font-1 = "Material Design Icons:style=Bold:size=11.5;2" +; Font for menu +font-2 = "Material Design Icons:style=Bold:size=13.5;2" +; Font for controlCenter +font-3 = "SF Pro:style=Medium:size=10.5;2" +; Font for search +font-4 = "SF Pro:style=Medium:size=9.5;2" +; Font for bspwm/workspaces +font-5 = "UbuntuMono Nerd font:size=11;2" + +modules-left = sep menu sep close sep minimize sep maximize sep +modules-center = bspwm +modules-right = dunst search control date sep + +;modules-left = sep menu +;modules-center = date +;modules-right = bspwm whitespace crypto dunst search control space + +;modules-right = crypto dunst search date sep powermenu sep +;modules-right = crypto toggle_spotify volume backlight battery network notification powermenu + +wm-restack = bspwm +;wm-restack = bspwm + +override-redirect = true + +;; scroll-up = bspwm-desknext +;; scroll-down = bspwm-deskprev + +;scroll-up = i3wm-wsnext +;scroll-down = i3wm-wsprev + +cursor-click = pointer +cursor-scroll = ns-resize + +[module/menu] +type = custom/text +content = 󰣇 +content-font = 3 +content-padding = 1 +content-foreground = ${colors.foreground} +click-left = ~/.config/polybar/scripts/menu.sh +click-right = ~/.config/polybar/scripts/menu_full.sh + +[module/bspwm] +type = internal/bspwm +format = +;format = +format-padding = 0 +;format-padding-right = 2 +format-foreground = ${colors.foreground} +index-sort = true +enable-click = true +reverse-scroll = true +#reverse-scroll = false + +label-focused =  +label-focused-padding = 2 + +label-occupied =  +label-occupied-padding = 2 + +label-empty =  +label-empty-padding = 2 + + +[module/sepp] +type = custom/text +content = " " + + +[module/close] +type = custom/text +content-foreground = ${colors.red} +content-padding = 1 +content =  +click-left = "xdotool getwindowfocus windowkill" + +[module/minimize] +type = custom/text +content-foreground = ${colors.yellow} +content-padding = 1 +content =  +click-left = bspc node -g hidden +click-right = ${HOME}/.config/bspwm/bspcmd unhide + +;label =  +[module/maximize] +type = custom/text +content-foreground = ${colors.green} +content-padding = 1 +content =  +;click-left = bspc node -t {fullscreen} +click-left = bspc node -t ~floating +click-right = bspc desktop -l next +#bspc node -t \~{fullscreen}; + +[module/blur-toggle] +type = custom/ipc +hook-0 = echo  +hook-1 = echo  +click-left = ~/.local/bin/scripts/blurtoggle.sh +initial = 1 +format-foreground = ${colors.foreground} + + +[module/battery] +type = internal/battery +full-t = 99 +time-format = %H:%M +battery = BAT1 +adapter = ACAD +format-padding = 1 +format-charging = +format-charging-background = +label-charging = %percentage%% +format-discharging = +format-discharging-background = +label-discharging = %percentage%% +format-full = +format-full-prefix = " " +format-full-prefix-foreground = ${colors.green} +;format-foreground = ${colors.green} +ramp-capacity-0 =  +ramp-capacity-1 =  +ramp-capacity-2 =  +ramp-capacity-3 =  +ramp-capacity-4 =  +ramp-capacity-5 =  +ramp-capacity-6 =  +ramp-capacity-7 =  +ramp-capacity-8 =  +ramp-capacity-9 =  + +ramp-capacity-0-foreground = ${colors.red} +ramp-capacity-1-foreground = ${colors.red} +ramp-capacity-foreground = ${colors.green} +;ramp-capacity-foreground = ${colors.foreground} +bar-capacity-width = 10 + +animation-charging-0 =  +animation-charging-1 =  +animation-charging-2 =  +animation-charging-3 =  +animation-charging-4 =  +animation-charging-5 =  +animation-charging-6 =  +animation-charging-foreground = ${colors.green} + +animation-charging-framerate = 750 + +[module/xbacklight] +type = internal/xbacklight +enable-scroll = true + +[module/backlight] +inherit = module/xbacklight +type = internal/backlight +card = intel_backlight +format-backlight =