diff options
author | zachir <zachir@librem.one> | 2023-04-25 19:03:26 -0500 |
---|---|---|
committer | zachir <zachir@librem.one> | 2023-04-25 19:03:26 -0500 |
commit | 6ba97a85a6e1a117eb64d9f6020a970aef151d2c (patch) | |
tree | e073fa3f109d968ee1d1059bfb0ffbe7305b84a2 | |
parent | af3fc076ad07504ba6424c7c3d140156a47cfb59 (diff) |
make scratchpads spawn (almost) instantly in view with one command)
-rwxr-xr-x | spblue | 6 | ||||
-rwxr-xr-x | sphtop | 6 | ||||
-rwxr-xr-x | spirss | 6 | ||||
-rwxr-xr-x | spmutt | 6 | ||||
-rwxr-xr-x | spncmp | 6 | ||||
-rwxr-xr-x | sppmxr | 6 | ||||
-rwxr-xr-x | spprof | 6 | ||||
-rwxr-xr-x | spqpwg | 6 | ||||
-rwxr-xr-x | spterm | 6 | ||||
-rwxr-xr-x | sptodo | 6 | ||||
-rwxr-xr-x | sptrmc | 6 |
11 files changed, 55 insertions, 11 deletions
@@ -4,5 +4,9 @@ COUNT="$(pgrep -U "$(whoami)" -f "$(basename $0)" | wc -l)" echo "$COUNT" if [ "${COUNT:-0}" -lt "3" ]; then - exec foot -a "$(basename $0)" -w "960x540" bluetoothctl + hyprctl dispatch exec "[workspace special:spblue;float;noanim] foot -a \"$(basename $0)\" -w '960x540' bluetoothctl" + hyprctl dispatch togglespecialworkspace spblue + sleep 0.03 fi + +hyprctl dispatch togglespecialworkspace spblue @@ -3,5 +3,9 @@ COUNT="$(pgrep -U "$(whoami)" -f "$(basename $0)" | wc -l)" if [ "${COUNT:-0}" -lt "3" ]; then - exec foot -a "$(basename $0)" -w "960x540" htop + hyprctl dispatch exec "[workspace special:sphtop;float;noanim] foot -a \"$(basename $0)\" -w '960x540' htop" + hyprctl dispatch togglespecialworkspace sphtop + sleep 0.03 fi + +hyprctl dispatch togglespecialworkspace sphtop @@ -3,5 +3,9 @@ COUNT="$(pgrep -U "$(whoami)" -f "$(basename $0)" | wc -l)" if [ "${COUNT:-0}" -lt "3" ]; then - exec foot -a "$(basename $0)" -w "960x540" irssi + hyprctl dispatch exec "[workspace special:spirss;float;noanim] foot -a \"$(basename $0)\" -w '960x540' irssi" + hyprctl dispatch togglespecialworkspace spirss + sleep 0.03 fi + +hyprctl dispatch togglespecialworkspace spirss @@ -3,5 +3,9 @@ COUNT="$(pgrep -U "$(whoami)" -f "$(basename $0)" | wc -l)" if [ "${COUNT:-0}" -lt "3" ]; then - exec foot -a "$(basename $0)" -w "960x540" neomutt + hyprctl dispatch exec "[workspace special:spmutt;float;noanim] foot -a \"$(basename $0)\" -w '960x540' neomutt" + hyprctl dispatch togglespecialworkspace spmutt + sleep 0.03 fi + +hyprctl dispatch togglespecialworkspace spmutt @@ -3,5 +3,9 @@ COUNT="$(pgrep -U "$(whoami)" -f "$(basename $0)" | wc -l)" if [ "${COUNT:-0}" -lt "3" ]; then - exec foot -a "$(basename $0)" -w "960x540" ncmpcpp + hyprctl dispatch exec "[workspace special:spncmp;float;noanim] foot -a \"$(basename $0)\" -w '960x540' ncmpcpp" + hyprctl dispatch togglespecialworkspace spncmp + sleep 0.03 fi + +hyprctl dispatch togglespecialworkspace spncmp @@ -3,5 +3,9 @@ COUNT="$(pgrep -U "$(whoami)" -f "$(basename $0)" | wc -l)" if [ "${COUNT:-0}" -lt "3" ]; then - exec foot -a "$(basename $0)" -w "960x540" pulsemixer + hyprctl dispatch exec "[workspace special:sppmxr;float;noanim] foot -a \"$(basename $0)\" -w '960x540' pulsemixer" + hyprctl dispatch togglespecialworkspace sppmxr + sleep 0.03 fi + +hyprctl dispatch togglespecialworkspace sppmxr @@ -3,5 +3,9 @@ COUNT="$(pgrep -U "$(whoami)" -f "$(basename $0)" | wc -l)" if [ "${COUNT:-0}" -lt "3" ]; then - exec foot -a "$(basename $0)" -w "960x540" profanity + hyprctl dispatch exec "[workspace special:spprof;float;noanim] foot -a \"$(basename $0)\" -w '960x540' profanity" + hyprctl dispatch togglespecialworkspace spprof + sleep 0.03 fi + +hyprctl dispatch togglespecialworkspace spprof @@ -4,5 +4,9 @@ COUNT="$(pgrep -U "$(whoami)" -f qpwgraph | wc -l)" echo "$COUNT" if [ "${COUNT:-0}" -eq "0" ]; then - exec qpwgraph + hyprctl dispatch exec "[workspace special:spqpwg;float;noanim] qpwgraph" + hyprctl dispatch togglespecialworkspace spqpwg + sleep 0.03 fi + +hyprctl dispatch togglespecialworkspace spqpwg @@ -3,5 +3,9 @@ COUNT="$(pgrep -U "$(whoami)" -f "$(basename $0)" | wc -l)" if [ "${COUNT:-0}" -lt "3" ]; then - exec foot -a "$(basename $0)" -w "960x540" + hyprctl dispatch exec "[workspace special:spterm;float;noanim] foot -a \"$(basename $0)\" -w '960x540'" + hyprctl dispatch togglespecialworkspace spterm + sleep 0.03 fi + +hyprctl dispatch togglespecialworkspace spterm @@ -3,5 +3,9 @@ COUNT="$(pgrep -U "$(whoami)" -f "$(basename $0)" | wc -l)" if [ "${COUNT:-0}" -lt "3" ]; then - exec foot -a "$(basename $0)" -w "960x540" todo + hyprctl dispatch exec "[workspace special:sptodo;float;noanim] foot -a \"$(basename $0)\" -w '960x540' todo" + hyprctl dispatch togglespecialworkspace sptodo + sleep 0.03 fi + +hyprctl dispatch togglespecialworkspace sptodo @@ -3,5 +3,9 @@ COUNT="$(pgrep -U "$(whoami)" -f "$(basename $0)" | wc -l)" if [ "${COUNT:-0}" -lt "3" ]; then - exec foot -a "$(basename $0)" -w "960x540" tremc + hyprctl dispatch exec "[workspace special:sptrmc;float;noanim] foot -a \"$(basename $0)\" -w '960x540' tremc" + hyprctl dispatch togglespecialworkspace sptrmc + sleep 0.03 fi + +hyprctl dispatch togglespecialworkspace sptrmc |