Add brightness toggle and polybar
This commit is contained in:
@@ -170,8 +170,8 @@ new_window 1pixel
|
||||
bindsym --release $mod+Shift+p exec"import ~/Screenshot-$(date '+%Y%m%d-%H%M%S').png"
|
||||
|
||||
# Audio and Screen
|
||||
bindsym XF86MonBrightnessUp exec xbacklight -inc 20 # increase screen brightness
|
||||
bindsym XF86MonBrightnessDown exec xbacklight -dec 20 # decrease screen brightness
|
||||
bindsym XF86MonBrightnessUp exec light -A 5 # increase screen brightness
|
||||
bindsym XF86MonBrightnessDown exec light -U 5 # decrease screen brightness
|
||||
|
||||
# Workspace Cycle
|
||||
bindsym $mod+n workspace next
|
||||
|
||||
@@ -32,7 +32,7 @@ module-margin = 1
|
||||
|
||||
modules-left = i3tabs title
|
||||
modules-center = date
|
||||
modules-right = network volume battery
|
||||
modules-right = backlight network volume battery
|
||||
separator =
|
||||
|
||||
dim-value = 1.0
|
||||
@@ -67,7 +67,7 @@ module-margin = 1
|
||||
|
||||
modules-left = i3tabs title
|
||||
modules-center = date
|
||||
modules-right = network volume battery
|
||||
modules-right = network volume
|
||||
separator =
|
||||
|
||||
dim-value = 1.0
|
||||
@@ -193,8 +193,24 @@ interval = 10.0
|
||||
format-connected = <label-connected>
|
||||
format-disconnectded = <label-disconnected>
|
||||
|
||||
label-connected = WIFI %essid%
|
||||
label-connected = %essid%
|
||||
label-connected-foreground = #fff
|
||||
|
||||
label-disconnected = NO WIFI
|
||||
label-disconnected =
|
||||
label-disconnected-foreground = #fff
|
||||
|
||||
###############################################################################
|
||||
[module/backlight]
|
||||
type = internal/backlight
|
||||
# ls -1 /sys/class/backlight
|
||||
card = amdgpu_bl0
|
||||
enable-scroll = true
|
||||
|
||||
format = <bar>
|
||||
format-foreground = #fff
|
||||
label = BRIGHT %percentage%%
|
||||
|
||||
bar-width = 10
|
||||
bar-indicator = |
|
||||
bar-fill = -
|
||||
bar-empty = -
|
||||
|
||||
Reference in New Issue
Block a user