diff options
author | davidovski <david@davidovski.xyz> | 2024-05-04 01:15:19 +0100 |
---|---|---|
committer | davidovski <david@davidovski.xyz> | 2024-05-04 01:15:19 +0100 |
commit | 416cb1a8dd5bf3ed6f426048843c95c2e2550f27 (patch) | |
tree | 023a75cf0b5926fa25c62f6be923e589bfab0d57 /scripts | |
parent | 2596f818e085ed724597ecb0028ec2536392203b (diff) |
add more transparency
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/bg.sh | 2 | ||||
-rwxr-xr-x | scripts/calculator | 2 | ||||
-rwxr-xr-x | scripts/gamma.sh | 2 | ||||
-rwxr-xr-x | scripts/mpc_add_query.sh | 6 | ||||
-rwxr-xr-x | scripts/mpc_add_recent.sh | 4 | ||||
-rwxr-xr-x | scripts/record_window.sh | 2 | ||||
-rwxr-xr-x | scripts/reload_gtk_theme | 5 |
7 files changed, 15 insertions, 8 deletions
diff --git a/scripts/bg.sh b/scripts/bg.sh index 06793e9..c6aaa61 100755 --- a/scripts/bg.sh +++ b/scripts/bg.sh @@ -1,6 +1,6 @@ #!/bin/sh -feh --bg-fill ~/.config/bg.png +feh --no-xinerama --bg-fill ~/.config/bg.png exit setbg="feh --force-aliasing --bg-tile " diff --git a/scripts/calculator b/scripts/calculator index 31998cc..af0033c 100755 --- a/scripts/calculator +++ b/scripts/calculator @@ -1,2 +1,2 @@ #!/bin/sh -bspc rule -a \* -o state=floating && $TERMINAL -e bc -l +bspc rule -a \* -o state=floating && $TERMINAL -e bc -lq diff --git a/scripts/gamma.sh b/scripts/gamma.sh index 8de1b80..0f39291 100755 --- a/scripts/gamma.sh +++ b/scripts/gamma.sh @@ -6,5 +6,5 @@ v=$1 if [ $# -ne 0 ]; then xrandr --output $MAIN_DP --gamma $(paste -d" " <(xrandr | grep " connected" | cut -f1 -d " ") <(xrandr --current --verbose | grep "Gamma" | cut -f7 -d" " | cut -f1 -d":" | xargs -I % echo "1/%") | grep $MAIN_DP | cut -d" " -f2 | xargs -I % echo "%*$v" | bc -l) else - xrandr --output $MAIN_DP --gamma 1.1 + xrandr --output $MAIN_DP --gamma 1 fi diff --git a/scripts/mpc_add_query.sh b/scripts/mpc_add_query.sh index 08a1c20..03e39e0 100755 --- a/scripts/mpc_add_query.sh +++ b/scripts/mpc_add_query.sh @@ -1,5 +1,7 @@ #!/bin/sh query=${1} -cd ~/music -find . -iname "*$query*" -type f | while read -r line; do echo "$line"; mpc insert "${line#./}"; done +mpc -f "%title%[\t\t%artist%][\t\t%album%]\t\t%file%" listall | grep -i "${query}" | rev | cut -f1 -d' ' | rev | while read -r track; do + echo "$track" + mpc insert "$track" +done diff --git a/scripts/mpc_add_recent.sh b/scripts/mpc_add_recent.sh index 356ad6f..e025eb5 100755 --- a/scripts/mpc_add_recent.sh +++ b/scripts/mpc_add_recent.sh @@ -1,7 +1,7 @@ #!/bin/sh # add recently added files to the playlist -count=${1:-25} +count=${1:-10} cd ~/music -find . -type f -print0 | xargs -0 stat -c"%Y %n" | sort -n | tail -${count} |cut -d' ' -f2- | while read -r line; do mpc insert "${line#./}"; done +find . -type f -print0 | xargs -0 stat -c"%Y %n" | sort -n | tail -${count} |cut -d' ' -f2- | while read -r line; do printf "%s\n" "$line" ; mpc insert "${line#./}"; done diff --git a/scripts/record_window.sh b/scripts/record_window.sh index 841b756..f732fb7 100755 --- a/scripts/record_window.sh +++ b/scripts/record_window.sh @@ -14,6 +14,6 @@ position=+$(echo $geom | cut -d'+' -f2- | sed "s/+/,/g") filename=$(date +"$HOME/pics/screenshot/%F_%T.mp4") echo $size and $position -ffmpeg -y -f x11grab -video_size $size -i $position $filename +ffmpeg -y -f x11grab -video_size $size -i $position -f pulse -i default $filename rm $info diff --git a/scripts/reload_gtk_theme b/scripts/reload_gtk_theme new file mode 100755 index 0000000..6d17f65 --- /dev/null +++ b/scripts/reload_gtk_theme @@ -0,0 +1,5 @@ +#!/bin/sh +theme=$(gsettings get org.gnome.desktop.interface gtk-theme) +gsettings set org.gnome.desktop.interface gtk-theme '' +sleep 1 +gsettings set org.gnome.desktop.interface gtk-theme $theme |