Add brightness toggle and polybar

This commit is contained in:
CramMK
2020-03-20 14:56:01 +01:00
parent c2a21b81a4
commit 5083780a5a
2 changed files with 22 additions and 6 deletions

View File

@@ -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

View File

@@ -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 = -