add: polybar custom scripts
add: git aliases fix. bspwm split_ration madness
This commit is contained in:
parent
c33047354e
commit
1a0ffb4924
7 changed files with 44 additions and 3 deletions
.config/polybar
|
@ -51,7 +51,7 @@
|
|||
|
||||
modules-left = bspwm i3
|
||||
modules-center = mpd
|
||||
modules-right = memory cpu fan-speed eth temperature date powermenu
|
||||
modules-right = memory cpu fan-speed temperature eth arch-updates date powermenu
|
||||
|
||||
eth-interface = enp0s31f6
|
||||
|
||||
|
@ -74,7 +74,7 @@
|
|||
|
||||
modules-left = bspwm i3
|
||||
modules-center =
|
||||
modules-right = pulseaudio battery xbacklight memory cpu temperature wlan eth date powermenu
|
||||
modules-right = pulseaudio battery xbacklight memory cpu temperature wlan eth arch-updates date powermenu
|
||||
|
||||
eth-interface = enp2s0f1
|
||||
wlan-interface = wlp3s0
|
||||
|
|
23
.config/polybar/custom.ini
Normal file
23
.config/polybar/custom.ini
Normal file
|
@ -0,0 +1,23 @@
|
|||
[module/fan-speed]
|
||||
type = custom/script
|
||||
exec = $HOME/.config/polybar/scripts/fan-speed.sh
|
||||
interval = 1
|
||||
|
||||
format-prefix = " "
|
||||
format-prefix-foreground = ${colors.foreground-alt}
|
||||
format-underline = #8bf
|
||||
format = <label>
|
||||
|
||||
label = %output:4%
|
||||
|
||||
[module/arch-updates]
|
||||
type = custom/script
|
||||
exec = $HOME/.config/polybar/scripts/arch-updates.sh
|
||||
interval = 10
|
||||
|
||||
format-prefix = " "
|
||||
format-prefix-foreground = ${colors.foreground-alt}
|
||||
format-underline = #1794D1
|
||||
format = <label>
|
||||
|
||||
label = %output%
|
3
.config/polybar/scripts/arch-updates.sh
Executable file
3
.config/polybar/scripts/arch-updates.sh
Executable file
|
@ -0,0 +1,3 @@
|
|||
#!/bin/sh
|
||||
|
||||
echo $(pacman -Qu | wc -l)
|
10
.config/polybar/scripts/fan-speed.sh
Executable file
10
.config/polybar/scripts/fan-speed.sh
Executable file
|
@ -0,0 +1,10 @@
|
|||
#!/bin/sh
|
||||
|
||||
speed=$(sensors | grep fan1 | sed -e 's/fan1: *//' -e 's/ RPM.*$//')
|
||||
|
||||
if [ "$speed" != "" ]; then
|
||||
echo "$speed RPM"
|
||||
else
|
||||
echo "FAN ERROR"
|
||||
fi
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue