diff options
author | HimbeerserverDE <himbeerserverde@gmail.com> | 2023-09-10 23:37:50 +0200 |
---|---|---|
committer | HimbeerserverDE <himbeerserverde@gmail.com> | 2023-09-10 23:37:50 +0200 |
commit | d111af82c6a728d473d9f709eeb6bc6eb9c0584e (patch) | |
tree | 20543e532b40a932a1b5b387e1f60ecbda1cd7ea /bin | |
parent | 7e076127814ccff931b35d8f5efb81457f82754f (diff) |
delete window automation scripts
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/wmdanger | 31 | ||||
-rwxr-xr-x | bin/wmintro | 50 | ||||
-rwxr-xr-x | bin/wmnormal | 8 | ||||
-rwxr-xr-x | bin/wmunsafe | 8 |
4 files changed, 0 insertions, 97 deletions
diff --git a/bin/wmdanger b/bin/wmdanger deleted file mode 100755 index a814f99..0000000 --- a/bin/wmdanger +++ /dev/null @@ -1,31 +0,0 @@ -#! /bin/bash - -~/bin/wmnormal - -SAFE_DESKTOP_MONITOR_1=$(bspc query -D -m 1 -d '.!occupied' | head -n 1) -if [ -z "${SAFE_DESKTOP_MONITOR_1}" ]; then - SAFE_DESKTOP_MONITOR_1=$(bspc query -D -d '1:^8') -fi - -SAFE_DESKTOP_MONITOR_2=$(bspc query -D -m 2 -d '.!occupied' | head -n 1) -if [ -z "${SAFE_DESKTOP_MONITOR_2}" ]; then - SAFE_DESKTOP_MONITOR_2=$(bspc query -D -d '2:^8') -fi - -bspc desktop -f ${SAFE_DESKTOP_MONITOR_1} -bspc desktop -f ${SAFE_DESKTOP_MONITOR_2} - -pactl set-sink-mute @DEFAULT_SINK@ 1 -pactl set-source-mute @DEFAULT_SOURCE@ 1 - -for KILL in $(bspc query -N -d ${SAFE_DESKTOP_MONITOR_1}); do - bspc node -f ${KILL} - bspc node -c -done - -for KILL in $(bspc query -N -d ${SAFE_DESKTOP_MONITOR_2}); do - bspc node -f ${KILL} - bspc node -c -done - -killall -s SIGHUP musikbox diff --git a/bin/wmintro b/bin/wmintro deleted file mode 100755 index d32860b..0000000 --- a/bin/wmintro +++ /dev/null @@ -1,50 +0,0 @@ -#! /bin/bash - -# real windows? (there is always a pidless phantom window) -if [ "$(xdo pid $(bspc query -N) | wc -l)" -gt 0 ]; then - notify-send "BSPWM Intro" "Please close all windows first." - exit 1 -fi - -MONITORS=$(xrandr -q | grep ' connected' | wc -l) - -ls ~/.config/bspwm/intro_${MONITORS}_monitors.canvas ~/.config/bspwm/intro_${MONITORS}_monitors.rules -if [ "$?" != "0" ]; then - echo "Your number of monitors is not supported." - exit 1 -fi - -bspc wm -l ~/.config/bspwm/intro_${MONITORS}_monitors.canvas -~/.config/bspwm/intro_${MONITORS}_monitors.rules - -WINIT_X11_SCALE_FACTOR=1.0 alacritty -e musikbox -e -n -v 0.4 -p ~/.wmintro_audio & -sleep 0.25 -MUSIKBOX_PID=$(pidof musikbox | tail -n 1) - -WINIT_X11_SCALE_FACTOR=1.0 alacritty -e sh -c 'cava | lolcat' & -TERM_PIDS="${TERM_PIDS}$! " -sleep 0.25 - -WINIT_X11_SCALE_FACTOR=1.0 alacritty -e neo-matrix -D & -TERM_PIDS="${TERM_PIDS}$! " -sleep 0.25 - -PATH="${PATH}:${HOME}/bin" WINIT_X11_SCALE_FACTOR=1.0 alacritty -e slw & -TERM_PIDS="${TERM_PIDS}$! " -sleep 0.25 - -WINIT_X11_SCALE_FACTOR=1.0 alacritty -e tty-clock -srDB & -TERM_PIDS="${TERM_PIDS}$! " -sleep 0.25 - -# we want the fun stuff to be visible, it's more important than the player -if [ "${MONITORS}" -eq "1" ]; then - bspc desktop -f 2 -fi - -while [ -n "$(ps -p ${MUSIKBOX_PID} | tail -n +2)" ]; do sleep 1; done - -bspc rule -r * -kill ${TERM_PIDS} - -bspc desktop -f 1 diff --git a/bin/wmnormal b/bin/wmnormal deleted file mode 100755 index ff05b69..0000000 --- a/bin/wmnormal +++ /dev/null @@ -1,8 +0,0 @@ -#! /bin/bash - -feh --no-fehbg --bg-fill ~/.config/bspwm/wallpaper - -cp -p ${HOME}/.config/alacritty/normal.yml ${HOME}/.config/alacritty/alacritty.yml - -ln -snf ${HOME}/.config/polybar.d/normal ${HOME}/.config/polybar -polybar-msg cmd restart diff --git a/bin/wmunsafe b/bin/wmunsafe deleted file mode 100755 index 4d8b7f8..0000000 --- a/bin/wmunsafe +++ /dev/null @@ -1,8 +0,0 @@ -#! /bin/bash - -feh --no-fehbg --bg-fill ~/.config/bspwm/unsafe_wallpaper - -cp -p ${HOME}/.config/alacritty/unsafe.yml ${HOME}/.config/alacritty/alacritty.yml - -ln -snf ${HOME}/.config/polybar.d/unsafe ${HOME}/.config/polybar -polybar-msg cmd restart |