diff options
Diffstat (limited to '.config/waybar/custom')
-rwxr-xr-x | .config/waybar/custom/disk | 3 | ||||
-rwxr-xr-x | .config/waybar/custom/keyboard | 11 |
2 files changed, 14 insertions, 0 deletions
diff --git a/.config/waybar/custom/disk b/.config/waybar/custom/disk new file mode 100755 index 0000000..143e41c --- /dev/null +++ b/.config/waybar/custom/disk @@ -0,0 +1,3 @@ +#!/bin/sh + +df -BG | awk '$6 == "/" { print $3 }' diff --git a/.config/waybar/custom/keyboard b/.config/waybar/custom/keyboard new file mode 100755 index 0000000..eba7e61 --- /dev/null +++ b/.config/waybar/custom/keyboard @@ -0,0 +1,11 @@ +#!/bin/sh + +hyprctl devices | sed -En ' +/^\tKeyboard at/ { + :loop + n + /^\t\t\trules: /! b loop + s/.* l "([^"]+)", v "([^"]+)".*/\1(\2)/p + q +} +' |