adding some better rofi usage in plasma
This commit is contained in:
parent
38e0f2f923
commit
c134490230
4
scripts/getvol
Executable file
4
scripts/getvol
Executable file
|
@ -0,0 +1,4 @@
|
|||
#!/bin/sh
|
||||
|
||||
echo $(pamixer --get-volume-human) >> /tmp/vol
|
||||
|
7
scripts/rofi-plasma-blur.sh
Executable file
7
scripts/rofi-plasma-blur.sh
Executable file
|
@ -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
|
3
scripts/rofi-plasma-settings.sh
Executable file
3
scripts/rofi-plasma-settings.sh
Executable file
|
@ -0,0 +1,3 @@
|
|||
#!/bin/sh
|
||||
|
||||
systemsettings5 --list | rg - | awk '{print $1}' | rofi -dmenu | xargs -r systemsettings5
|
11
scripts/rofiblur.sh
Normal file
11
scripts/rofiblur.sh
Normal file
|
@ -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
|
Loading…
Reference in a new issue