From ddb7692a2f93dca1ebf39a8ea7a710363aea516a Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Tue, 6 Dec 2016 21:45:25 -0500 Subject: wmii: Support the rotate screen button on my x60 tablet --- .config/wmii-hg/config.sh | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to '.config/wmii-hg') diff --git a/.config/wmii-hg/config.sh b/.config/wmii-hg/config.sh index 1b48cc4..ffb5f20 100644 --- a/.config/wmii-hg/config.sh +++ b/.config/wmii-hg/config.sh @@ -263,6 +263,17 @@ Key() { sel=$(sed 1q $WMII_DIR/client/sel/ctl) tag=$(lstags | wimenu -h "${HIST}.tags" -n 50) || return echo "$tag" >> $WMII_DIR/client/$sel/tags;; + + ## Hardware keys + XF86RotateWindows) ## Rotate the screen + local old new + old="$(xrotate|cut -d $'\t' -f3|sort -u)" + case "$old" in + normal) new=right;; + *) new=normal;; + esac + xrotate "$new" + ;; esac } -- cgit v1.2.3-2-g168b From 07ec79433657e754965dd2eb7a324512d46a72ee Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Wed, 7 Dec 2016 19:57:05 -0500 Subject: rbar: be more compact --- .config/wmii-hg/rbar_acpi | 3 ++- .config/wmii-hg/rbar_clock | 2 +- .config/wmii-hg/rbar_wifi | 11 +---------- 3 files changed, 4 insertions(+), 12 deletions(-) (limited to '.config/wmii-hg') diff --git a/.config/wmii-hg/rbar_acpi b/.config/wmii-hg/rbar_acpi index 6e3e6e5..7c1d18b 100755 --- a/.config/wmii-hg/rbar_acpi +++ b/.config/wmii-hg/rbar_acpi @@ -15,7 +15,8 @@ update() { -e 's/\s*remaining//g' \ -e 's/\s*until charged//g' \ -e 's/charging at zero rate - will never fully charge./∞/g' \ - -e 's/\s*ok,\s*//g' | + -e 's/\s*ok,\s*//g' \ + -e 's/\s+//g' | cat -n | while read -r n line; do printf "label %s\n" "$line" | write "${id}.${n}" done diff --git a/.config/wmii-hg/rbar_clock b/.config/wmii-hg/rbar_clock index e84d5c3..c66b21e 100755 --- a/.config/wmii-hg/rbar_clock +++ b/.config/wmii-hg/rbar_clock @@ -7,7 +7,7 @@ update() { while true; do { printf 'label ' - date +'%a, %F %T %Z(%:::z)' + date +'%a %F %T %Z(%:::z)' } | write "$id" sleep .5 done diff --git a/.config/wmii-hg/rbar_wifi b/.config/wmii-hg/rbar_wifi index d201152..e740777 100755 --- a/.config/wmii-hg/rbar_wifi +++ b/.config/wmii-hg/rbar_wifi @@ -1,14 +1,5 @@ #!/usr/bin/env bash -iwinfo() { - local interface=$1 - iwconfig "$interface" | - sed -r 's/ {2,}/\n/g' | - sed -e '/^\s*$/d' -e 's/:\s*/=/' \ - -e '1s/^/Interface=/' \ - -e '2s/^/MAC Protocol=/' -} - update() { local iface=wlp2s0 @@ -18,7 +9,7 @@ update() { while true; do IFS=$'\n' lines=($( - iwinfo "$iface" | sed -rn 's@^(ESSID|Link Quality)=@@p' + iwdata "$iface" | sed -rn 's@^(ESSID|Link Quality)=@@p' ifdata -pa "$iface" )) IFS='|' -- cgit v1.2.3-2-g168b From 58f68e4899bd0b55c10b1f3322b1378d1e009030 Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Sat, 11 Feb 2017 19:10:49 -0500 Subject: wmii: Make it possible to move windows between columns w/ mouse --- .config/wmii-hg/config.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to '.config/wmii-hg') diff --git a/.config/wmii-hg/config.sh b/.config/wmii-hg/config.sh index ffb5f20..402ae52 100644 --- a/.config/wmii-hg/config.sh +++ b/.config/wmii-hg/config.sh @@ -123,13 +123,17 @@ Event() { 2) ;; 3) { - case $(wmii9menu Delete Fullscreen ToggleFloat) in + case $(wmii9menu Delete Fullscreen ToggleFloat SendLeft SendRight) in Delete) echo kill >> $WMII_DIR/client/$client/ctl;; Fullscreen) echo Fullscreen on >> $WMII_DIR/client/$client/ctl;; ToggleFloat) echo send $client toggle >> $WMII_DIR/tag/sel/ctl;; + SendLeft) + echo send sel left >> $WMII_DIR/tag/sel/ctl;; + SendRight) + echo send sel right >> $WMII_DIR/tag/sel/ctl;; esac }& ;; 4) ;; -- cgit v1.2.3-2-g168b From b9d017e5ae3de10c8aa7a213537f2ee0c0c4c45d Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Sat, 11 Feb 2017 19:11:19 -0500 Subject: wmii: better rotation support --- .config/wmii-hg/config.sh | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) (limited to '.config/wmii-hg') diff --git a/.config/wmii-hg/config.sh b/.config/wmii-hg/config.sh index 402ae52..ba40460 100644 --- a/.config/wmii-hg/config.sh +++ b/.config/wmii-hg/config.sh @@ -269,7 +269,7 @@ Key() { echo "$tag" >> $WMII_DIR/client/$sel/tags;; ## Hardware keys - XF86RotateWindows) ## Rotate the screen + XF86RotateWindows) ## Toggle between 'normal' an 'right' local old new old="$(xrotate|cut -d $'\t' -f3|sort -u)" case "$old" in @@ -278,6 +278,17 @@ Key() { esac xrotate "$new" ;; + $MODKEY-XF86RotateWindows) ## Rotate in 90° steps + local old new + old="$(xrotate|cut -d $'\t' -f3|sort -u)" + case "$old" in + normal) new=right;; + right) new=inverted;; + inverted) new=left;; + left) new=normal;; + esac + xrotate "$new" + ;; esac } -- cgit v1.2.3-2-g168b From 05b500a6688c7a7ff9a04fe748a091d33df654a9 Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Fri, 14 Apr 2017 12:14:51 -0400 Subject: wmii: don't expose WMII_ADDRESS to other units --- .config/wmii-hg/config.sh | 1 + 1 file changed, 1 insertion(+) (limited to '.config/wmii-hg') diff --git a/.config/wmii-hg/config.sh b/.config/wmii-hg/config.sh index ba40460..e56166e 100644 --- a/.config/wmii-hg/config.sh +++ b/.config/wmii-hg/config.sh @@ -296,6 +296,7 @@ runcmd() ( PATH=$_PATH unset NOTIFY_SOCKET # systemd unset WMII_CONFPATH # wmii + unset WMII_ADDRESS # wmii unset _PATH WMII_NAMESPACE WMII_DIR # wmiirc exec 8>&- # xinit/systemd handshake exec systemd-run --user --scope -- sh -c "$*" -- cgit v1.2.3-2-g168b