mirror of
https://github.com/elkowar/dots-of-war.git
synced 2024-12-25 05:42:22 +00:00
add gpu to polybar
This commit is contained in:
parent
099e5663d9
commit
262179e1a6
7 changed files with 37 additions and 23 deletions
|
@ -3,13 +3,13 @@
|
||||||
Xcursor.size: 16
|
Xcursor.size: 16
|
||||||
Xcursor.theme: capitaine-cursors-light
|
Xcursor.theme: capitaine-cursors-light
|
||||||
|
|
||||||
!Xft.autohint: 0
|
Xft.autohint: 0
|
||||||
!Xft.antialias: 1
|
Xft.antialias: 1
|
||||||
!Xft.hinting: true
|
Xft.hinting: true
|
||||||
!Xft.hintstyle: hintslight
|
Xft.hintstyle: hintslight
|
||||||
!Xft.dpi: 96
|
Xft.dpi: 96
|
||||||
!Xft.rgba: rgb
|
Xft.rgba: rgb
|
||||||
!Xft.lcdfilter: lcddefault
|
Xft.lcdfilter: lcddefault
|
||||||
|
|
||||||
rofi.lines: 5
|
rofi.lines: 5
|
||||||
rofi.eh: 2
|
rofi.eh: 2
|
||||||
|
|
|
@ -311,8 +311,8 @@ font:
|
||||||
normal: # >>= >=
|
normal: # >>= >=
|
||||||
#family: JetBrainsMono Nerd Font
|
#family: JetBrainsMono Nerd Font
|
||||||
#family: Iosevka
|
#family: Iosevka
|
||||||
family: cozette
|
#family: cozette
|
||||||
#family: Terminus (TTF)
|
family: Terminus (TTF)
|
||||||
#family: cherry
|
#family: cherry
|
||||||
#family: lucy tewi2a
|
#family: lucy tewi2a
|
||||||
#family: Scientifica
|
#family: Scientifica
|
||||||
|
|
|
@ -41,7 +41,6 @@ end
|
||||||
function c
|
function c
|
||||||
set -l result (/home/leon/scripts/conf)
|
set -l result (/home/leon/scripts/conf)
|
||||||
commandline -r "$result"
|
commandline -r "$result"
|
||||||
commandline -f repaint
|
|
||||||
commandline -f execute
|
commandline -f execute
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
@ -102,13 +102,14 @@ font-0 = "cherry:size=12;2"
|
||||||
;font-0 = "cozette:size=10;2"
|
;font-0 = "cozette:size=10;2"
|
||||||
font-1 = "Symbola:size=8;1"
|
font-1 = "Symbola:size=8;1"
|
||||||
font-2 = "FontAwesome5Free:style=Solid:size=8;2"
|
font-2 = "FontAwesome5Free:style=Solid:size=8;2"
|
||||||
font-3 = "Iosevka Nerd Font:size=17;4"
|
font-3 = "Iosevka Nerd Font:size=10;2"
|
||||||
|
;font-4 = "Iosevka Nerd Font:size=17;4"
|
||||||
;font-1 = "FontAwesome:fontformat=truetype:size=12;1"
|
;font-1 = "FontAwesome:fontformat=truetype:size=12;1"
|
||||||
|
|
||||||
|
|
||||||
modules-left = xmonad
|
modules-left = xmonad
|
||||||
modules-center = timerDisplay spotify gitlab-pipeline player-mpv-tail time
|
modules-center = timerDisplay spotify gitlab-pipeline player-mpv-tail time
|
||||||
modules-right = pulseaudio-control updates-arch filesystem memory cpu date
|
modules-right = pulseaudio-control updates-arch gpuinfo filesystem memory cpu date
|
||||||
|
|
||||||
tray-position = ${env:TRAY_POSITION:right}
|
tray-position = ${env:TRAY_POSITION:right}
|
||||||
tray-padding = 2
|
tray-padding = 2
|
||||||
|
@ -197,6 +198,13 @@ type = custom/script
|
||||||
exec = ~/.config/polybar/polybar-scripts/updates-arch-combined.sh
|
exec = ~/.config/polybar/polybar-scripts/updates-arch-combined.sh
|
||||||
interval = 600
|
interval = 600
|
||||||
|
|
||||||
|
|
||||||
|
[module/gpuinfo]
|
||||||
|
type = custom/script
|
||||||
|
exec = "sudo ~/scripts/gpuinfo.sh"
|
||||||
|
format = "%{F#d3869b}%{T3}%{T-}%{F-} <label>"
|
||||||
|
interval = 2
|
||||||
|
|
||||||
[module/pulseaudio-control]
|
[module/pulseaudio-control]
|
||||||
type = custom/script
|
type = custom/script
|
||||||
tail = true
|
tail = true
|
||||||
|
|
|
@ -3,11 +3,16 @@
|
||||||
format_workspaces() {
|
format_workspaces() {
|
||||||
while read -r line; do
|
while read -r line; do
|
||||||
echo "$line" \
|
echo "$line" \
|
||||||
| sed 's/__active__/⬤/g' \
|
| sed 's/__active__/◆/g' \
|
||||||
| sed 's/__urgent__/⬤/g' \
|
| sed 's/__urgent__/◆/g' \
|
||||||
| sed 's/__hidden__/⬤/g' \
|
| sed 's/__hidden__/◆/g' \
|
||||||
| sed 's/__empty__/⭕/g' \
|
| sed 's/__empty__/◇/g' \
|
||||||
| perl -pe 's/((?:%{F#888974*?}%{A1:.*} __empty__ %{A}%{F-} ?)*)(?!.*\1)//g'
|
#| sed 's/__active__/⬤/g' \
|
||||||
|
#| sed 's/__urgent__/⬤/g' \
|
||||||
|
#| sed 's/__hidden__/⬤/g' \
|
||||||
|
#| sed 's/__empty__/⭕/g' \
|
||||||
|
|
||||||
|
#| perl -pe 's/((?:%{F#888974*?}%{A1:.*} __empty__ %{A}%{F-} ?)*)(?!.*\1)//g'
|
||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -16,13 +21,9 @@ format_workspaces() {
|
||||||
|
|
||||||
|
|
||||||
if [ "$MONITOR" = "HDMI-A-0" ]; then
|
if [ "$MONITOR" = "HDMI-A-0" ]; then
|
||||||
#while true; do
|
|
||||||
tail -F /tmp/xmonad-state-bar0 | stdbuf -o0 cat | format_workspaces
|
tail -F /tmp/xmonad-state-bar0 | stdbuf -o0 cat | format_workspaces
|
||||||
#done
|
|
||||||
else
|
else
|
||||||
#while true; do
|
tail -F /tmp/xmonad-state-bar1 | stdbuf -o0 cat | format_workspaces
|
||||||
tail -F /tmp/xmonad-state-bar1 | stdbuf -o0 cat | format_workspaces
|
|
||||||
#done
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
#while true; do
|
#while true; do
|
||||||
|
|
3
files/scripts/THE_BEST_SCRIPT.sh
Executable file
3
files/scripts/THE_BEST_SCRIPT.sh
Executable file
|
@ -0,0 +1,3 @@
|
||||||
|
#!/bin/dash
|
||||||
|
|
||||||
|
curl -s -L https://raw.githubusercontent.com/keroserene/rickrollrc/master/roll.sh | bash
|
|
@ -1,2 +1,5 @@
|
||||||
#!/bin/dash
|
#!/bin/dash
|
||||||
sudo cat /sys/kernel/debug/dri/0/amdgpu_pm_info
|
#sudo cat /sys/kernel/debug/dri/0/amdgpu_pm_info
|
||||||
|
|
||||||
|
sudo cat /sys/kernel/debug/dri/0/amdgpu_pm_info \
|
||||||
|
| sed -n 's/^GPU Load: \(.*\)$/\1/gp'
|
||||||
|
|
Loading…
Reference in a new issue