diff --git a/scripts/getvol b/scripts/getvol new file mode 100755 index 0000000..e1d5718 --- /dev/null +++ b/scripts/getvol @@ -0,0 +1,4 @@ +#!/bin/sh + +echo $(pamixer --get-volume-human) >> /tmp/vol + diff --git a/scripts/rofi-plasma-blur.sh b/scripts/rofi-plasma-blur.sh new file mode 100755 index 0000000..d67760c --- /dev/null +++ b/scripts/rofi-plasma-blur.sh @@ -0,0 +1,7 @@ +#!/bin/bash + +if [[ $(ps --no-header -p $PPID -o comm) =~ '^yakuake|dolphin$' ]]; then + for wid in $(xdotool search --pid $PPID); do + xprop -f _KDE_NET_WM_BLUR_BEHIND_REGION 32c -set _KDE_NET_WM_BLUR_BEHIND_REGION 0 -id $wid; + done +fi diff --git a/scripts/rofi-plasma-settings.sh b/scripts/rofi-plasma-settings.sh new file mode 100755 index 0000000..8b7a413 --- /dev/null +++ b/scripts/rofi-plasma-settings.sh @@ -0,0 +1,3 @@ +#!/bin/sh + +systemsettings5 --list | rg - | awk '{print $1}' | rofi -dmenu | xargs -r systemsettings5 diff --git a/scripts/rofiblur.sh b/scripts/rofiblur.sh new file mode 100644 index 0000000..784001a --- /dev/null +++ b/scripts/rofiblur.sh @@ -0,0 +1,11 @@ +#!/bin/bash + +# Wrapper to run rofi with blurred background + +/usr/bin/rofi -theme $HOME/.config/rofi/config.rasi $@ & +c=0 +while ! xprop -f _KDE_NET_WM_BLUR_BEHIND_REGION 32c -set _KDE_NET_WM_BLUR_BEHIND_REGION 0 -id $(xdotool search -class 'rofi') ; do + sleep .1 + c=$((c+1)) + [[ c = 50 ]] && exit; # stop script window didn't appear after 5 seconds +done