Improve i3 configs

+ Use `pulsemixer` for audion volume control
+ Update polybar configs to not use sudo when running commands
+ Add Logout to polybar menu foor logging out of system user
+ Add brightness module to polybar to show backlight percentage 0-100
This commit is contained in:
2021-12-21 00:17:25 -05:00
parent 574cc7802a
commit b00f64def5
7 changed files with 73 additions and 66 deletions

View File

@@ -34,7 +34,7 @@ font-2 = Noto Sans Mono:size=10;0
; Modules
modules-left = powermenu weather
modules-center = ki3
modules-right = volume date
modules-right = brightness volume date
; Set the cursor to display pointer / resize is interaction available
cursor-click = pointer
@@ -114,6 +114,14 @@ exec = ~/.local/bin/i3scripts/weathermap
interval = 600
;label-font = Font Awesome 5 Free Solid:size=40;0
; Brightness
;;;;;;;;;;;;;;;;;;;;;;;;;;
[module/brightness]
type = custom/script
exec = echo " $(brightnessctl -P g)%"
tail = true
; Type Speed
;;;;;;;;;;;;;;;;;;;;;;;;;;
[module/info-hackspeed]
@@ -325,20 +333,20 @@ format-padding = 0
format = <label-toggle> <menu>
label-open = " "
label-close = " "
menu-0-0 = " pkill poly "
menu-0-0 = " Restart i3 |"
menu-0-0-foreground = #fba922
menu-0-0-exec = pkill -f polybar
menu-0-1 = " i3 restart "
;menu-0-0-background = #141414
menu-0-0-exec = i3 restart
menu-0-1 = " Logout |"
menu-0-1-foreground = #fba922
;menu-0-1-background = #141414
menu-0-1-exec = i3 restart
menu-0-2 = " Reboot "
menu-0-1-exec = pkill -KILL -u kapper
menu-0-2 = " Reboot |"
menu-0-2-foreground = #fba922
menu-0-2-exec = sudo reboot
menu-0-3 = " Power off "
menu-0-2-exec = reboot
menu-0-3 = " Power off |"
menu-0-3-foreground = #fba922
menu-0-3-exec = sudo poweroff
menu-0-4 = " Lock "
menu-0-3-exec = poweroff
menu-0-4 = " Lock |"
menu-0-4-foreground = #fba922
menu-0-4-exec = i3lock -c 000000