diff options
author | davidovski <david@davidovski.xyz> | 2025-03-17 22:54:39 +0000 |
---|---|---|
committer | davidovski <david@davidovski.xyz> | 2025-03-17 22:54:39 +0000 |
commit | b3b4975df588e7c71bebb3cd7f4e83fd7a70b983 (patch) | |
tree | ae01e2115993946c5841aaf0c810a26476c2fa8e /scripts | |
parent | 6c1de1e807d39883c975933c4c35b91f1df88fd6 (diff) |
floating little bars and rounded borders
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/a | 10 | ||||
-rwxr-xr-x | scripts/aa | 10 | ||||
-rwxr-xr-x | scripts/color-test.sh | 19 | ||||
-rwxr-xr-x | scripts/dmenukaomoji | 7 | ||||
-rwxr-xr-x | scripts/memeselector | 6 | ||||
-rwxr-xr-x | scripts/mpd-zscroll | 5 | ||||
-rw-r--r-- | scripts/record_window_hd.sh | 19 | ||||
-rwxr-xr-x | scripts/toggle-gap.sh | 2 | ||||
-rwxr-xr-x | scripts/z | 10 |
9 files changed, 78 insertions, 10 deletions
diff --git a/scripts/a b/scripts/a new file mode 100755 index 0000000..37a384f --- /dev/null +++ b/scripts/a @@ -0,0 +1,10 @@ +#!/bin/sh + +printf " + ╱|、 +(˚ˎ。7 +|、˜〵 +じしˍ,)ノ + +" + diff --git a/scripts/aa b/scripts/aa new file mode 100755 index 0000000..fa2b8ed --- /dev/null +++ b/scripts/aa @@ -0,0 +1,10 @@ +#!/bin/sh + +printf " + へ ♡ ╱|、 + ૮ - ՛) (\` - 7 + / ៸| |、⁻〵 +乀(ˍ,ل ل じしˍ,)ノ + +" + diff --git a/scripts/color-test.sh b/scripts/color-test.sh new file mode 100755 index 0000000..5c21fa1 --- /dev/null +++ b/scripts/color-test.sh @@ -0,0 +1,19 @@ +#!/bin/bash +# +# This file echoes a bunch of color codes to the terminal to demonstrate +# what's available. Each line is the color code of one forground color, +# out of 17 (default + 16 escapes), followed by a test use of that color +# on all nine background colors (default + 8 escapes). +# +T='gYw' # The test text +echo -e "\n 40m 41m 42m 43m 44m 45m 46m 47m"; +for FGs in ' m' ' 1m' ' 30m' '1;30m' ' 31m' '1;31m' ' 32m' '1;32m' ' 33m' '1;33m' ' 34m' '1;34m' ' 35m' '1;35m' ' 36m' '1;36m' ' 37m' '1;37m'; + do FG=${FGs// /} + echo -en " $FGs \033[$FG $T " + for BG in 40m 41m 42m 43m 44m 45m 46m 47m; + do echo -en "$EINS \033[$FG\033[$BG $T \033[0m\033[$BG \033[0m"; + done + echo; +done +echo + diff --git a/scripts/dmenukaomoji b/scripts/dmenukaomoji index 8af99b3..90cd3ec 100755 --- a/scripts/dmenukaomoji +++ b/scripts/dmenukaomoji @@ -12,13 +12,14 @@ if [ -n "$1" ]; then if [[ "$WINDOW" =~ .*"$SUB".* ]]; then xdotool key "ctrl+v" else - xdotool key Shift+Insert + xdotool key "ctrl+v" + #xdotool key Shift+Insert fi -# xdotool type --delay 1 $chosen +#xdotool type --delay 1 $chosen # VAR=$(xclip -o) -# xdotool type $chosen + #xdotool type $chosen else notify-send "'$chosen' copied to clipboard." & fi diff --git a/scripts/memeselector b/scripts/memeselector deleted file mode 100755 index d6121a1..0000000 --- a/scripts/memeselector +++ /dev/null @@ -1,6 +0,0 @@ -#!/bin/sh - -FOLDER=/home/david/docs/proj/davidovski.xyz/f/meme -cd $FOLDER -xdotool type "https://davidovski.xyz/f/meme/$(ls -1 | dmenu)" - diff --git a/scripts/mpd-zscroll b/scripts/mpd-zscroll new file mode 100755 index 0000000..eba586b --- /dev/null +++ b/scripts/mpd-zscroll @@ -0,0 +1,5 @@ +#!/bin/sh + +zscroll -l 17 --before-text "♪ " --delay 0.3 \ + --update-check true "mpc current" & +wait diff --git a/scripts/record_window_hd.sh b/scripts/record_window_hd.sh new file mode 100644 index 0000000..f732fb7 --- /dev/null +++ b/scripts/record_window_hd.sh @@ -0,0 +1,19 @@ +#!/bin/sh +info=/tmp/wminfo + +xwininfo > /tmp/wminfo + +geom=$(cat $info | grep "geometry" | cut -d' ' -f4) + +width=$(cat $info | grep Width | cut -d' ' -f4) +height=$(cat $info | grep Height | cut -d' ' -f4) + +size="${width}x${height}" +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 -f pulse -i default $filename + +rm $info diff --git a/scripts/toggle-gap.sh b/scripts/toggle-gap.sh index fbdb992..4216af5 100755 --- a/scripts/toggle-gap.sh +++ b/scripts/toggle-gap.sh @@ -1,3 +1,3 @@ #!/bin/sh -GAP=25; bspc config window_gap | grep -q $GAP && bspc config window_gap 0 || bspc config window_gap $GAP +GAP=32; bspc config window_gap | grep -q $GAP && bspc config window_gap 0 || bspc config window_gap $GAP diff --git a/scripts/z b/scripts/z new file mode 100755 index 0000000..25957aa --- /dev/null +++ b/scripts/z @@ -0,0 +1,10 @@ +#!/bin/sh + +printf " +\e[1;36mZzzzz \e[0;33m|\ _,,,--,,_ + /\e[1;37m,\e[0;33m \`.-'\`' ._ \-;;, + |\e[1;37m,3\e[0;33m- \e[0;33m) )_ .;.( \e[0;33m\`'-' + \e[0;33m '---''(_/._)-'(_\_) \e[0;m + +" + |