diff options
Diffstat (limited to '.local/bin/desktop')
-rwxr-xr-x | .local/bin/desktop/dmenu-file-history | 6 | ||||
-rwxr-xr-x | .local/bin/desktop/dmenu-sound | 6 | ||||
-rwxr-xr-x | .local/bin/desktop/dmenu-unicode | 2 |
3 files changed, 13 insertions, 1 deletions
diff --git a/.local/bin/desktop/dmenu-file-history b/.local/bin/desktop/dmenu-file-history new file mode 100755 index 0000000..0997c76 --- /dev/null +++ b/.local/bin/desktop/dmenu-file-history @@ -0,0 +1,6 @@ +#!/bin/sh + +[ -n "$OPEN_HISTFILE" ] || + export OPEN_HISTFILE="${XDG_STATE_HOME:-$HOME/.local/state}/open_history" + +tac "$OPEN_HISTFILE" | dmenu -i -l 30 | xargs -I{} "${OPENER:-xdg-open}" "{}" diff --git a/.local/bin/desktop/dmenu-sound b/.local/bin/desktop/dmenu-sound new file mode 100755 index 0000000..967e9fa --- /dev/null +++ b/.local/bin/desktop/dmenu-sound @@ -0,0 +1,6 @@ +#!/bin/sh + +node="$(wpctl status | grep vol: | cut -c5- | dmenu -i -l 30 | + sed -E "s/^[ *]*([0-9]{2}).*$/\1/")" + +[ -n "$node" ] && wpctl set-default "$node" diff --git a/.local/bin/desktop/dmenu-unicode b/.local/bin/desktop/dmenu-unicode index 16e1cfc..5a3a0f5 100755 --- a/.local/bin/desktop/dmenu-unicode +++ b/.local/bin/desktop/dmenu-unicode @@ -1,6 +1,6 @@ #!/bin/sh -chosen=$(cat ~/.local/share/chars/* | dmenu -i -l 25 -fn :size=20) +chosen=$(cat ~/.local/share/chars/* | dmenu -i -l 25) [ -z "$chosen" ] && exit |