diff --git a/.config/sxhkd/sxhkdrc b/.config/sxhkd/sxhkdrc index a882163..e655f12 100644 --- a/.config/sxhkd/sxhkdrc +++ b/.config/sxhkd/sxhkdrc @@ -58,5 +58,5 @@ alt + shift + w ctrl + t dash $SCRIPTS/telegram-reply.sh -alt + h +alt + shift + h dash $TSCRIPTS/run-on-terminal.sh "htop" diff --git a/.gitignore b/.gitignore index a55c39e..97899ce 100644 --- a/.gitignore +++ b/.gitignore @@ -8,3 +8,4 @@ termscripts/test.sh .config/tox .vim/plugged *.o +.vim/.netrwhist diff --git a/.vim/.netrwhist b/.vim/.netrwhist deleted file mode 100644 index f4673b8..0000000 --- a/.vim/.netrwhist +++ /dev/null @@ -1,8 +0,0 @@ -let g:netrw_dirhistmax =10 -let g:netrw_dirhist_cnt =6 -let g:netrw_dirhist_1='/opt/lampp/htdocs/ws19t06' -let g:netrw_dirhist_2='/opt/lampp/htdocs/ws19t06/php' -let g:netrw_dirhist_3='/opt/lampp/htdocs/ws19t06' -let g:netrw_dirhist_4='/opt/lampp/htdocs/ws19t06/php' -let g:netrw_dirhist_5='/home/initega/Documents/infor4/WS/Lab1' -let g:netrw_dirhist_6='/opt/lampp/htdocs/ws19t06/js' diff --git a/scripts/reset-dwmbar.sh b/scripts/reset-dwmbar.sh index 0b6ffc9..dafeb9f 100644 --- a/scripts/reset-dwmbar.sh +++ b/scripts/reset-dwmbar.sh @@ -2,4 +2,4 @@ p_num=$(ps -C dash | sed '2q;d' | awk '{print $1}') echo "$p_num" -kill -s TRAP $p_num +kill -s 5 $p_num diff --git a/scripts/set-random-wallpaper-non-explicit.sh b/scripts/set-random-wallpaper-non-explicit.sh new file mode 100644 index 0000000..044597e --- /dev/null +++ b/scripts/set-random-wallpaper-non-explicit.sh @@ -0,0 +1,22 @@ +#!/usr/bin/env sh + +day="$(date "+%d %m")" + +case "$day" in + "31 10") + folder="$HALLOWEEN_WALLPAPERS" + ;; + *) + folder="$WALLPAPERS/non-explicit" + ;; +esac + +list=$(find "$folder" -type f -not -regex ".*\.md") + +num_lines=$(printf "%b\n" "$list" | wc -l) + +num=$(shuf -i "1-$num_lines" -n 1) + +file=$(printf "%b\n" "$list" | sed "$num q;d") + +feh --bg-fill "$file"