diff options
| author | David T. Sadler <davidtsadler@googlemail.com> | 2023-12-30 11:47:56 +0000 |
|---|---|---|
| committer | David T. Sadler <davidtsadler@googlemail.com> | 2023-12-30 11:47:56 +0000 |
| commit | 5d631bd3ad7f78e8ca69d7001cada582fcd8d18f (patch) | |
| tree | 0e1e87fc8c75eea323b31fe8b67e76241210d3b2 /bin | |
| parent | 82cd5a7b072b4060c6f6ce519a904772dd5f2a0d (diff) | |
Diffstat (limited to 'bin')
| -rwxr-xr-x | bin/.local/bin/remaps | 4 | ||||
| -rwxr-xr-x | bin/.local/bin/statusbar/battery | 11 | ||||
| -rwxr-xr-x | bin/.local/bin/statusbar/clock | 3 |
3 files changed, 18 insertions, 0 deletions
diff --git a/bin/.local/bin/remaps b/bin/.local/bin/remaps new file mode 100755 index 0000000..4cd25d4 --- /dev/null +++ b/bin/.local/bin/remaps @@ -0,0 +1,4 @@ +#!/bin/sh + +setxkbmap -layout gb +setxkbmap -option caps:super diff --git a/bin/.local/bin/statusbar/battery b/bin/.local/bin/statusbar/battery new file mode 100755 index 0000000..9373375 --- /dev/null +++ b/bin/.local/bin/statusbar/battery @@ -0,0 +1,11 @@ +#!/bin/sh + +for battery in /sys/class/power_supply/BAT? +do + # Get its remaining capacity and charge status. + capacity=$(cat "$battery"/capacity 2>/dev/null) || break + status=$(cat "$battery"/status 2>/dev/null) || break + + printf "[%s%%]%s " "$capacity" "$status" + unset warn +done diff --git a/bin/.local/bin/statusbar/clock b/bin/.local/bin/statusbar/clock new file mode 100755 index 0000000..d2b8a51 --- /dev/null +++ b/bin/.local/bin/statusbar/clock @@ -0,0 +1,3 @@ +#!/bin/sh + +date +"%d %B %Y %R" |
