diff --git a/polybar/.config/polybar/config b/polybar/.config/polybar/config index 5c9f53d..191d9b9 100644 --- a/polybar/.config/polybar/config +++ b/polybar/.config/polybar/config @@ -2,23 +2,21 @@ monitor = ${env:MONITOR} width = 100% height = 34 - background = #000000 foreground = #00c24a - line-color = ${bar/bottom.background} line-size = 16 - spacing = 2 padding-right = 5 module-margin = 4 - -font-0 = NotoSans-Regular:size=8;-1 -font-1 = MaterialIcons:size=10;0 -font-2 = Termsynu:size=8:antialias=false;-2 -font-3 = FontAwesome:size=10;0 -font-4 = Unifont:size=8;0 - +; Type font +font-0 = NotoSans-Regular:size=8;0 +; Symbols fonts +font-1 = Font Awesome 5 Free Regular:size=8;0 +font-2 = Font Awesome 5 Free Solid:size=8;0 +font-3 = Font Awesome 5 Brands Regular:size=8;0 +;font-4 = Unifont:size=8;0 +font-4 = MaterialIcons:size=10;0 modules-left = powermenu modules-center = ki3 modules-right = keyboard volume wired-network clock @@ -28,52 +26,48 @@ monitor = ${env:MONITOR} bottom = true width = 100% height = 27 - background = ${bar/top.background} foreground = ${bar/top.foreground} - line-color = ${bar/top.background} line-size = 2 - spacing = 3 padding-right = 4 module-margin-left = 0 module-margin-right = 6 - +; Typeface font font-0 = NotoSans-Regular:size=8;0 -font-1 = unifont:size=6;-3 -font-2 = FontAwesome:size=8;-2 -font-3 = NotoSans-Regular:size=8;-1 -font-4 = MaterialIcons:size=10;-1 -font-5 = Termsynu:size=8:antialias=false;0 - +; Symbols fonts +font-1 = Font Awesome 5 Free Regular:size=10;0 +font-2 = Font Awesome 5 Free Solid:size=10;0 +font-3 = Font Awesome 5 Brands Regular:size=10;0 +font-4 = unifont:size=6;0 +;font-0 = NotoSans-Regular:size=8;0 +;font-1 = unifont:size=6;0 +;font-2 = Font Awesome 5 Free Regular:size=10;0 +;font-3 = Font Awesome 5 Free Solid:size=10;0 +;font-4 = Font Awesome 5 Brands Regular:size=10;0 modules-left = temp-cpu cpu modules-center = network filesystem modules-right = temp-gpu memory [module/filesystem] type = internal/fs - ; Mountpoints to display mount-0 = / ;mount-1 = /home ;mount-2 = /var - ; Seconds to sleep between updates ; Default: 30 interval = 10 - ; Display fixed precision values ; Default: false fixed-values = true - ;Available tags: ; (default) ; ; ; format-mounted = - ; Available tokens: ; %mountpoint% ; %type% @@ -84,8 +78,7 @@ format-mounted = ; %free% ; %used% ; Default: %mountpoint% %percentage_free%% -label-mounted = root: %total% - +label-mounted = ๏‚  : %total% ; Spacing between entries ; Default: 2 spacing = 4 @@ -93,34 +86,27 @@ spacing = 4 [module/network] type = internal/network interface = enp0s31f6 - ; Available tags: ; (default) ; format-connected = - ; Available tags: ; (default) format-disconnected = - ; Available tags: ; (default) ; ; format-packetloss = - ; Default: %ifname% %local_ip% -label-connected = %ifname% %local_ip%: %upspeed% /%downspeed:9% %linkspeed% -label-connected-foreground = #eefafafa - +label-connected = ๏‚“%upspeed% / ๏€™ %downspeed:9% ๏ž– %linkspeed% %local_ip% +label-connected-foreground =#00c24a ; Default: (none) label-disconnected = not connected -label-disconnected-foreground = #66ffffff - +label-disconnected-foreground = #d00 ; Default: (none) ;label-packetloss = %essid% ;label-packetloss-foreground = #eefafafa - ; Only applies if is used ramp-signal-0 = ๐Ÿ˜ฑ ramp-signal-1 = ๐Ÿ˜  @@ -128,7 +114,6 @@ ramp-signal-2 = ๐Ÿ˜’ ramp-signal-3 = ๐Ÿ˜Š ramp-signal-4 = ๐Ÿ˜ƒ ramp-signal-5 = ๐Ÿ˜ˆ - ; Only applies if is used animation-packetloss-0 = โš  animation-packetloss-0-foreground = #ffa64c @@ -136,28 +121,22 @@ animation-packetloss-1 = ๐Ÿ“ถ animation-packetloss-1-foreground = #000000 ; Framerate in milliseconds animation-packetloss-framerate = 500 - - ; Seconds to sleep between updates ; Default: 1 interval = 3.0 - ; Test connectivity every Nth update ; A value of 0 disables the feature ; NOTE: Experimental (needs more testing) ; Default: 0 ;ping-interval = 3 - ; @deprecated: Define min width using token specifiers (%downspeed:min% and %upspeed:min%) ; Minimum output width of upload/download rate ; Default: 3 udspeed-minwidth = 5 - ; Accumulate values from all interfaces ; when querying for up/downspeed rate ; Default: false accumulate-stats = true - ; Consider an `UNKNOWN` interface state as up. ; Some devices like USB network adapters have ; an unknown state, even when they're running @@ -166,38 +145,31 @@ unknown-as-up = true [module/temp-cpu] type = internal/temperature - ; Seconds to sleep between updates ; Default: 1 interval = 0.5 - ; Thermal zone to use ; To list all the zone types, run ; $ for i in /sys/class/thermal/thermal_zone*; do echo "$i: $(<$i/type)"; done ; Default: 0 thermal-zone = 0 - ; Full path of temperature sysfs path ; Use `sensors` to find preferred temperature source, then run ; $ for i in /sys/class/hwmon/hwmon*/temp*_input; do echo "$(<$(dirname $i)/name): $(cat ${i%_*}_label 2>/dev/null || echo $(basename ${i%_*})) $(readlink -f $i)"; done ; to find path to desired file ; Default reverts to thermal zone setting hwmon-path = /sys/devices/platform/coretemp.0/hwmon/hwmon2/temp1_input - ; Base temperature for where to start the ramp (in degrees celsius) ; Default: 0 base-temperature = 20 - ; Threshold temperature to display warning label (in degrees celsius) ; Default: 80 warn-temperature = 60 - ; Available tokens: ; %temperature% (deprecated) ; %temperature-c% (default, temperature in ยฐC) ; %temperature-f% (temperature in ยฐF) -label = CPU: %temperature-f% - +label = ๏‹› %temperature-f% ; Available tokens: ; %temperature% (deprecated) ; %temperature-c% (default, temperature in ยฐC) @@ -207,38 +179,31 @@ label-warn-foreground = #f00 [module/temp-gpu] type = internal/temperature - ; Seconds to sleep between updates ; Default: 1 interval = 0.5 - ; Thermal zone to use ; To list all the zone types, run ; $ for i in /sys/class/thermal/thermal_zone*; do echo "$i: $(<$i/type)"; done ; Default: 0 thermal-zone = 2 - ; Full path of temperature sysfs path ; Use `sensors` to find preferred temperature source, then run ; $ for i in /sys/class/hwmon/hwmon*/temp*_input; do echo "$(<$(dirname $i)/name): $(cat ${i%_*}_label 2>/dev/null || echo $(basename ${i%_*})) $(readlink -f $i)"; done ; to find path to desired file ; Default reverts to thermal zone setting hwmon-path = /sys/devices/platform/coretemp.0/hwmon/hwmon2/temp1_input - ; Base temperature for where to start the ramp (in degrees celsius) ; Default: 0 base-temperature = 20 - ; Threshold temperature to display warning label (in degrees celsius) ; Default: 80 warn-temperature = 60 - ; Available tokens: ; %temperature% (deprecated) ; %temperature-c% (default, temperature in ยฐC) ; %temperature-f% (temperature in ยฐF) -label = GPU: %temperature-f% - +label = ๏›• %temperature-f% ; Available tokens: ; %temperature% (deprecated) ; %temperature-c% (default, temperature in ยฐC) @@ -246,50 +211,51 @@ label = GPU: %temperature-f% label-warn = %temperature-f% label-warn-foreground = #f00 - [module/keyboard] type = internal/xkeyboard ; List of indicators to ignore blacklist-1 = scroll lock -;label-indicator-on-capslock = -;label-indicator-off-capslock = -;label-indicator-on-numlock = -;label-indicator-off-numlock = +label-indicator-on-capslock = Caps ๏€ฃ +label-indicator-off-capslock = Caps ๏ +label-indicator-on-numlock = Num ๏€ฃ +label-indicator-off-numlock = Num ๏ format = - - +; layout-icon-[0-9]+ = layout;icon +; Assign each layout an icon that will be available as %icon% token for the +; tag. The part before ';' will try to match %layout% value. +label-layout = %name% %icon% +;layout-icon-default = ๏†ซ +;layout-icon-1 = us; [module/powermenu] type = custom/menu - format-padding = 5 format = -label-open = ไทก -label-close = "โ“ " - -menu-0-0 = "โ†ธ pkill poly " +;label-open = ไทก +label-open = ๏† +;label-open = ๏€‡ +;label-open = ๏Šฝ +;label-close = โ“ +label-close = ๏ +menu-0-0 = "๏‹ pkill poly " menu-0-0-foreground = #fba922 menu-0-0-exec = pkill -f polybar - -menu-0-1 = "โŠ’ i3 restart " +menu-0-1 = "๏‹’ i3 restart " menu-0-1-foreground = #fba922 +;menu-0-1-background = #141414 menu-0-1-exec = i3 restart - -menu-0-2 = "โฌก Reboot " +menu-0-2 = "๏€ž Reboot " menu-0-2-foreground = #fba922 menu-0-2-exec = sudo /sbin/reboot - -menu-0-3 = "โพ Power off " +menu-0-3 = ๏€‘ Power off menu-0-3-foreground = #fba922 menu-0-3-exec = sudo poweroff - menu-1-0 = Cancel menu-1-0-foreground = #fba922 menu-1-0-exec = menu_open-0 menu-1-1 = Reboot menu-1-1-foreground = #fff menu-1-1-exec = xterm - menu-2-0 = Power off menu-2-0-foreground = #fba922 menu-2-0-exec = sudo poweroff @@ -299,10 +265,9 @@ menu-2-1-exec = menu_open-0 [module/cpu] type = internal/cpu -interval = 0.5 +interval = 5 format =