first commit
This commit is contained in:
commit
58a3f28118
72 changed files with 3082 additions and 0 deletions
19
modules/home/scripts/toggle_layout
Executable file
19
modules/home/scripts/toggle_layout
Executable file
|
@ -0,0 +1,19 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
current_layout=$(hyprctl getoption general:layout)
|
||||
|
||||
for word in $current_layout
|
||||
do
|
||||
temp="${word%\"}"
|
||||
temp="${temp#\"}"
|
||||
if [ $temp == "dwindle" ]; then
|
||||
rm -rf ~/.local/bin/env/layout
|
||||
echo "hyprctl --batch 'keyword general:layout master;'" > ~/.local/bin/env/layout
|
||||
hyprctl --batch "keyword general:layout master;"
|
||||
fi
|
||||
if [ $temp == "master" ]; then
|
||||
rm -rf ~/.local/bin/env/layout
|
||||
echo "hyprctl --batch 'keyword general:layout dwindle;'" > ~/.local/bin/env/layout
|
||||
hyprctl --batch "keyword general:layout dwindle;"
|
||||
fi
|
||||
done
|
Loading…
Add table
Add a link
Reference in a new issue