Browse Source

polybar: ++xsmartlight

Maxim Likhachev 5 years ago
parent
commit
26f9682085
  1. 35
      etc/soft/polybar/config

35
etc/soft/polybar/config

@ -71,8 +71,8 @@ font-1 = NotoMono Nerd Font:size=12 @@ -71,8 +71,8 @@ font-1 = NotoMono Nerd Font:size=12
font-2 = NotoMono Nerd Font:size=12
modules-left = desktop
modules-center = filesystem
modules-right = bdays webcheck rss mail battery backlight alsa xkeyboard date
modules-center = filesystem
modules-right = bdays webcheck rss mail battery xbacklight xsmartlight alsa xkeyboard date
separator = |
@ -81,8 +81,8 @@ tray-padding = 2 @@ -81,8 +81,8 @@ tray-padding = 2
;tray-transparent = true
;tray-background = #0063ff
cursor-click = pointer
cursor-scroll = ns-resize
cursor-click = pointer
cursor-scroll = pointer
[module/desktop]
;type = internal/xworkspaces
@ -146,6 +146,10 @@ format-underline = ${colors.green} @@ -146,6 +146,10 @@ format-underline = ${colors.green}
[module/xkeyboard]
type = internal/xkeyboard
blacklist-0 = num lock
blacklist-1 = scroll lock
format = <label-layout>
format-spacing = 0
format-prefix =
format-prefix-foreground = ${colors.foreground-alt}
@ -154,11 +158,6 @@ format-prefix-underline = ${colors.secondary} @@ -154,11 +158,6 @@ format-prefix-underline = ${colors.secondary}
label-layout = [ %layout% ]
label-layout-underline = ${colors.secondary}
label-indicator-padding = 2
label-indicator-margin = 1
label-indicator-background = ${colors.secondary}
label-indicator-underline = ${colors.secondary}
[module/filesystem]
type = internal/fs
@ -238,9 +237,9 @@ animation-charging-2 = @@ -238,9 +237,9 @@ animation-charging-2 = 
animation-charging-foreground = ${colors.green}
animation-charging-framerate = 750
[module/backlight]
type = internal/backlight
card = intel_backlight
[module/xbacklight]
type = internal/xbacklight
#card = intel_backlight
enable-scroll = true
@ -250,4 +249,16 @@ label = %percentage%% @@ -250,4 +249,16 @@ label =  %percentage%%
;label-margin = 1
label-underline = ${colors.cyan}
[module/xsmartlight]
type = custom/script
exec = "cat /tmp/smartscreen_brightness_level; echo %"
interval = 0
format-prefix = " "
format-underline = ${colors.alert}
click-left = "xsmartlight -set"
scroll-up = "xsmartlight -inc 5"
scroll-down = "xsmartlight -dec 5"
; vim:ft=dosini

Loading…
Cancel
Save