diff options
| -rw-r--r-- | .Xresources | 5 | ||||
| -rw-r--r-- | .bashrc | 8 | ||||
| -rw-r--r-- | .fvwm2rc | 5 | ||||
| -rwxr-xr-x | bin/status2 | 27 |
4 files changed, 38 insertions, 7 deletions
diff --git a/.Xresources b/.Xresources index 45d9f2d..8bbba51 100644 --- a/.Xresources +++ b/.Xresources @@ -24,8 +24,11 @@ URxvt.keysym.C-Next: font-size:decrease xterm*termName: xterm-256color xterm*internalBorder: 4 xterm*VT100.Translations: #override \ + <Key> F11: fullscreen(toggle) \n\ Ctrl <Key> minus: smaller-vt-font() \n\ - Ctrl <Key> equal: larger-vt-font() \n + Ctrl <Key> equal: larger-vt-font() \n\ + Shift Ctrl <Key> C: copy-selection(CLIPBOARD) \n\ + Shift Ctrl <Key> V: insert-selection(CLIPBOARD) \n ! Ctrl <Key> Next: smaller-vt-font() \n\ ! Ctrl <Key> Prior: larger-vt-font() \n ! Meta <Key> minus: smaller-vt-font() \n\ @@ -146,7 +146,7 @@ meteo() { eval "$(direnv hook bash)" #export GITHUB_TOKEN=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 -set -o vi -bind -m vi-command ".":insert-last-argument -bind -m vi-command 'Control-l: clear-screen' -bind -m vi-insert 'Control-l: clear-screen' +#set -o vi +#bind -m vi-command ".":insert-last-argument +#bind -m vi-command 'Control-l: clear-screen' +#bind -m vi-insert 'Control-l: clear-screen' @@ -42,8 +42,9 @@ Style "gkrellm" NoTitle, Sticky, WindowListSkip, CirculateSkip # AddToFunc "StartFunction" -+ "I" Module FvwmPager 0 0 -+ "I" Exec dunst ++ I Module FvwmPager 0 0 ++ I Exec status2 +#+ "I" Exec dunst #+ "I" Exec xsetroot -solid rgb:3/4/5 #+ "I" Exec setxkbmap fr #+ "I" Exec synclient VertScrollDelta=-114 diff --git a/bin/status2 b/bin/status2 new file mode 100755 index 0000000..f73bc87 --- /dev/null +++ b/bin/status2 @@ -0,0 +1,27 @@ +#!/bin/sh + +ip() { + while read -r w1 w2 w3; do + [ $w1 = /32 ] && [ $w2 = host ] && [ $ip != 127.0.0.1 ] && break + ip=$w2 + done < /proc/net/fib_trie +} + +power() { + while read -r line; do + case $line in POWER_SUPPLY_CAPACITY*) power=${line#*=}% && break;; esac + done < /sys/class/power_supply/macsmc-battery/uevent +} + +status() { + power + ip + sound="$(pamixer --get-volume-human)" + clock="$(date +'%a %d %b %H:%M')" +} + +while true; do + status && echo "$ip , power $power , sound $sound , $clock" + sleep 17 +done | +root-tail -g '800x24-80-0' -fn '-Sony-*-*-*-*-*-24-*-*-*-*-*-*-*' --color grey70 - |
