summaryrefslogtreecommitdiffstats
path: root/.local/bin
diff options
context:
space:
mode:
Diffstat (limited to '.local/bin')
-rwxr-xr-x.local/bin/b-ws-util6
-rwxr-xr-x.local/bin/my-bar20
-rwxr-xr-x.local/bin/passmenu4
3 files changed, 25 insertions, 5 deletions
diff --git a/.local/bin/b-ws-util b/.local/bin/b-ws-util
index df921f7..6ca5fe9 100755
--- a/.local/bin/b-ws-util
+++ b/.local/bin/b-ws-util
@@ -31,10 +31,10 @@ else
fi
if [ "$op" = "switch" ]; then
- i3 workspace "$dest_ws"
+ "$1" workspace number "$dest_ws"
elif [ "$op" = "move" ]; then
- i3 move container to workspace "$dest_ws"
+ "$1" move container to workspace number "$dest_ws"
if [ "$4" = "follow" ]; then
- i3 workspace "$dest_ws"
+ "$1" workspace number "$dest_ws"
fi
fi
diff --git a/.local/bin/my-bar b/.local/bin/my-bar
new file mode 100755
index 0000000..18f8a92
--- /dev/null
+++ b/.local/bin/my-bar
@@ -0,0 +1,20 @@
+#!/bin/sh
+while true
+do
+ b0="/sys/class/power_supply/BAT0"
+ bat="$(cat $b0/capacity)"
+ # batl="$(cat $b0/capacity_level)"
+ pm="pamixer --get-volume"
+ pmm="pamixer --get-mute"
+ vol="$($pm)"
+ [ "$($pmm)" = "true" ] && volm='-' || volm='+'
+ volmic="$($pm --default-source)"
+ [ "$($pmm --default-source)" = "true" ] && volmicm='-' || volmicm='+'
+ load="$(cat /proc/loadavg | cut -d' ' -f1)"
+ time="$(date +'%a, %-d %b %Y %R %z')"
+ printf "%s%% | %s%s,%s%s | %s | %s\n" \
+ "$bat" \
+ "$vol" "$volm" "$volmic" "$volmicm" \
+ "$load" "$time"
+ sleep 5
+done
diff --git a/.local/bin/passmenu b/.local/bin/passmenu
index d3e7c75..777c5db 100755
--- a/.local/bin/passmenu
+++ b/.local/bin/passmenu
@@ -24,8 +24,8 @@ if [[ $1 == "--type" ]]; then
fi
if [[ -n $WAYLAND_DISPLAY ]]; then
- dmenu=dmenu-wl
- xdotool="ydotool type --file -"
+ dmenu=wmenu
+ xdotool="wtype -"
elif [[ -n $DISPLAY ]]; then
dmenu=dmenu
xdotool="xdotool type --clearmodifiers --file -"