mirror of
https://github.com/deltathetawastaken/dotfiles.git
synced 2025-12-06 07:16:37 +03:00
17 lines
395 B
Bash
Executable file
17 lines
395 B
Bash
Executable file
#!/usr/bin/env sh
|
|
HYPRGAPSMODE=$(hyprctl getoption general:gaps_in | awk 'NR==2{print$2}')
|
|
|
|
# Check if the environment variable exists and has a value
|
|
if [ "$HYPRGAPSMODE" != "0" ]; then
|
|
hyprctl --batch "\
|
|
keyword general:gaps_in 0;\
|
|
keyword general:gaps_out 0;"
|
|
else
|
|
hyprctl --batch "\
|
|
keyword general:gaps_in 10;\
|
|
keyword general:gaps_out 3;"
|
|
fi
|
|
|
|
exit
|
|
|