Update polybar cpu load module with fix from https://forum.archlabslinux.com/t/2018-07-testing-release/1196/13
This commit is contained in:
parent
97cd43914d
commit
790e251a34
@ -19,7 +19,7 @@ monitor =
|
|||||||
|
|
||||||
modules-left = jgmenu workspaces
|
modules-left = jgmenu workspaces
|
||||||
modules-center = window_switch clock
|
modules-center = window_switch clock
|
||||||
modules-right = pkg memory temperature coreuse network volume
|
modules-right = coreuse temperature memory pkg network volume
|
||||||
|
|
||||||
|
|
||||||
;=====================================================
|
;=====================================================
|
||||||
@ -34,7 +34,7 @@ monitor =
|
|||||||
|
|
||||||
modules-left = jgmenu i3 menu
|
modules-left = jgmenu i3 menu
|
||||||
modules-center = clock
|
modules-center = clock
|
||||||
modules-right = pkg memory temperature coreuse network volume
|
modules-right = coreuse temperature memory pkg network volume
|
||||||
|
|
||||||
|
|
||||||
;=====================================================
|
;=====================================================
|
||||||
@ -49,4 +49,4 @@ monitor =
|
|||||||
|
|
||||||
modules-left = bspwm menu
|
modules-left = bspwm menu
|
||||||
modules-center = clock
|
modules-center = clock
|
||||||
modules-right = pkg memory temperature coreuse network volume
|
modules-right = coreuse temperature memory pkg network volume
|
||||||
|
@ -61,7 +61,7 @@ separator = │
|
|||||||
; shows which modules have click actions
|
; shows which modules have click actions
|
||||||
cursor-click = pointer
|
cursor-click = pointer
|
||||||
|
|
||||||
; with the above these cause the entire bar to have click actions
|
; with cursor-click = pointer' these cause the entire bar to have click actions
|
||||||
; essentially defeating the purpose, so they are commented out
|
; essentially defeating the purpose, so they are commented out
|
||||||
|
|
||||||
; scroll-up = pamixer -i 2
|
; scroll-up = pamixer -i 2
|
||||||
|
@ -171,7 +171,7 @@ type = internal/cpu
|
|||||||
interval = 3
|
interval = 3
|
||||||
format-padding = 1
|
format-padding = 1
|
||||||
format = <label> <ramp-coreload>
|
format = <label> <ramp-coreload>
|
||||||
label = %{A1:st -e htop -s PERCENT_CPU & disown:} %percentage%% %{A}
|
label = %{A1:st -e htop -s PERCENT_CPU & disown:} %percentage:2%% %{A}
|
||||||
ramp-coreload-0 = ▂
|
ramp-coreload-0 = ▂
|
||||||
ramp-coreload-1 = ▃
|
ramp-coreload-1 = ▃
|
||||||
ramp-coreload-2 = ▄
|
ramp-coreload-2 = ▄
|
||||||
@ -252,7 +252,7 @@ type = internal/volume
|
|||||||
master-mixer = Master
|
master-mixer = Master
|
||||||
format-volume-padding = 1
|
format-volume-padding = 1
|
||||||
label-volume-foreground = ${colors.foreground}
|
label-volume-foreground = ${colors.foreground}
|
||||||
label-volume = %{A3:pavucontrol & disown:}%percentage%% %{A}
|
label-volume = %{A3:pavucontrol & disown:}%percentage:2%% %{A}
|
||||||
format-volume = <ramp-volume> <label-volume>
|
format-volume = <ramp-volume> <label-volume>
|
||||||
label-muted = " muted "
|
label-muted = " muted "
|
||||||
ramp-volume-0 =
|
ramp-volume-0 =
|
||||||
@ -367,17 +367,7 @@ type = internal/xkeyboard
|
|||||||
blacklist-0 = scroll lock
|
blacklist-0 = scroll lock
|
||||||
format = <label-layout> <label-indicator>
|
format = <label-layout> <label-indicator>
|
||||||
format-spacing = 0
|
format-spacing = 0
|
||||||
|
label-layout = %layout%
|
||||||
; Available tokens:
|
|
||||||
; %layout%
|
|
||||||
; %name%
|
|
||||||
; %number%
|
|
||||||
; Default: %layout%
|
|
||||||
label-layout = %{A1:mintlocale & disown:} %{A3:mintlocale & disown:} %layout%%{A} %{A}
|
|
||||||
|
|
||||||
; Available tokens:
|
|
||||||
; %name%
|
|
||||||
; Default: %name%
|
|
||||||
label-indicator = %name%
|
label-indicator = %name%
|
||||||
label-indicator-padding = 2
|
label-indicator-padding = 2
|
||||||
label-indicator-background = #8139e8
|
label-indicator-background = #8139e8
|
||||||
@ -474,7 +464,7 @@ ramp-signal-3-foreground = ${colors.purple}
|
|||||||
ramp-signal-4-foreground = ${colors.purple}
|
ramp-signal-4-foreground = ${colors.purple}
|
||||||
ramp-signal-5-foreground = ${colors.purple}
|
ramp-signal-5-foreground = ${colors.purple}
|
||||||
animation-packetloss-0 = ⚠
|
animation-packetloss-0 = ⚠
|
||||||
animation-packetloss-1 = 📶
|
animation-packetloss-1 = !
|
||||||
animation-packetloss-0-foreground = #ffa64c
|
animation-packetloss-0-foreground = #ffa64c
|
||||||
animation-packetloss-1-foreground = #000000
|
animation-packetloss-1-foreground = #000000
|
||||||
animation-packetloss-framerate = 500
|
animation-packetloss-framerate = 500
|
||||||
|
@ -73,8 +73,7 @@ for arg in "$@"; do
|
|||||||
rofi -hide-scrollbar -kb-row-select 'Tab' \
|
rofi -hide-scrollbar -kb-row-select 'Tab' \
|
||||||
-kb-row-tab 'Control+space' -dmenu \
|
-kb-row-tab 'Control+space' -dmenu \
|
||||||
-mesg 'Tab for Autocomplete' -i -p 'Web Search' \
|
-mesg 'Tab for Autocomplete' -i -p 'Web Search' \
|
||||||
-padding 50 -line-padding 4)
|
-padding 50 -line-padding 4) ;;
|
||||||
;;
|
|
||||||
-l|--logout)
|
-l|--logout)
|
||||||
ANS="$(rofi -sep "|" -dmenu -i -p 'System' -width 20 \
|
ANS="$(rofi -sep "|" -dmenu -i -p 'System' -width 20 \
|
||||||
-hide-scrollbar -line-padding 4 -padding 20 \
|
-hide-scrollbar -line-padding 4 -padding 20 \
|
||||||
@ -84,13 +83,11 @@ for arg in "$@"; do
|
|||||||
*Logout) session-logout || pkill -15 -t tty"$XDG_VTNR" Xorg ;;
|
*Logout) session-logout || pkill -15 -t tty"$XDG_VTNR" Xorg ;;
|
||||||
*Reboot) systemctl reboot ;;
|
*Reboot) systemctl reboot ;;
|
||||||
*Shutdown) systemctl -i poweroff
|
*Shutdown) systemctl -i poweroff
|
||||||
esac
|
esac ;;
|
||||||
;;
|
*) echo; echo "Option does not exist: $arg"; echo; exit 2
|
||||||
*)
|
|
||||||
echo -e "Option does not exist: $arg"
|
|
||||||
usage
|
|
||||||
exit 1
|
|
||||||
esac
|
esac
|
||||||
done
|
done
|
||||||
|
|
||||||
|
(( $# == 0 )) && "$0" -r
|
||||||
|
|
||||||
exit 0
|
exit 0
|
||||||
|
Reference in New Issue
Block a user