From f1a1d837c3b0a4fc2cf050b2db9c2ec748b184a6 Mon Sep 17 00:00:00 2001 From: Sravan Balaji Date: Sun, 23 May 2021 15:50:19 -0400 Subject: [PATCH] Replace Polybar Modules w/ System Tray Applications - Replace battery module with xfce-power-manager tray app - Replace pulseaudio module with volctl tray app - Remove extra powermenu, battery, and pulseaudio colors & intervals - Change dunst module color to red - Re-order modules in README - Change user/kernel module to initialize with kernel --- README.org | 973 +++++++++++++++++---------------------------- polybar/config.ini | 633 ++++++++++------------------- 2 files changed, 586 insertions(+), 1020 deletions(-) diff --git a/README.org b/README.org index c958552..c359de8 100644 --- a/README.org +++ b/README.org @@ -581,14 +581,6 @@ To learn more about how to configure Polybar go to https://github.com/polybar/po ; left powermenu = ${self.blue} - powermenu-close = ${self.blue} - powermenu-logout = ${self.orange} - powermenu-lock = ${self.purple} - powermenu-sleep = ${self.yellow} - powermenu-reboot = ${self.green} - powermenu-power-off = ${self.red} - powermenu-hibernate = ${self.pink} - powermenu-cancel = ${self.white} xmonad-focused-foreground = ${self.background} xmonad-focused-background = ${self.primary} @@ -611,15 +603,7 @@ To learn more about how to configure Polybar go to https://github.com/polybar/po cpu = ${self.yellow} memory = ${self.pink} filesystem = ${self.blue} - - ; right (laptop only) - backlight = ${self.yellow} - battery = ${self.green} - - ; right (continued) - pulseaudio-volume = ${self.red} - pulseaudio-muted = ${self.lighter-gray} - dunst-notification-status = ${self.purple} + dunst-notification-status = ${self.red} #+end_src **** Sizes @@ -640,13 +624,11 @@ Define module update intervals in seconds. #+begin_src conf :tangle polybar/config.ini [intervals] - battery = 30 cpu = 1 date = 1 time = 1 filesystem = 900 memory = 1 - pulseaudio = 5 updates = 900 media-playing = 1 dunst-notification-status = 1 @@ -789,7 +771,7 @@ Define module update intervals in seconds. ; modules-right = ipc clock modules-left = powermenu ewmh media-playing modules-center = date time - modules-right = user-kernel updates cpu memory filesystem backlight battery pulseaudio dunst-notification-status + modules-right = user-kernel updates cpu memory filesystem dunst-notification-status ; The separator will be inserted between the output of each module separator = " " @@ -893,6 +875,30 @@ Define module update intervals in seconds. *** Modules +**** Power Menu + +#+begin_src conf :tangle polybar/config.ini + [module/powermenu] + type = custom/text + content = " " + + ; "content" has the same properties as "format-NAME" + ; content-background = #000 + content-foreground = ${colors.powermenu} + content-padding = ${bar/mybar.module-margin} + + ; "click-(left|middle|right)" will be executed using "/bin/sh -c $COMMAND" + ; click-left = notify-send left + ; click-middle = notify-send middle + ; click-right = notify-send right + click-left = "rofi -show combi" + click-right = "/home/sravan/.scripts/control-center.sh --rofi" + + ; "scroll-(up|down)" will be executed using "/bin/sh -c $COMMAND" + ; scroll-up = notify-send scroll up + ; scroll-down = notify-send scroll down +#+end_src + **** EWMH #+begin_src conf :tangle polybar/config.ini @@ -992,524 +998,6 @@ Define module update intervals in seconds. label-empty-padding = ${sizes.module-padding} #+end_src -**** Backlight - -#+begin_src conf :tangle polybar/config.ini - [module/backlight] - type = internal/backlight - - ; Use the following command to list available cards: - ; $ ls -1 /sys/class/backlight/ - card = intel_backlight - - ; Enable changing the backlight with the scroll wheel (unreleased) - ; NOTE: This may require additional configuration on some systems. Polybar will - ; write to `/sys/class/backlight/${self.card}/brightness` which requires polybar - ; to have write access to that file. - ; DO NOT RUN POLYBAR AS ROOT. - ; The recommended way is to add the user to the - ; `video` group and give that group write-privileges for the `brightness` file. - ; See the ArchWiki for more information: - ; https://wiki.archlinux.org/index.php/Backlight#ACPI - ; Default: false - enable-scroll = true - - ; Available tags: - ;