dotfiles/home/programs/hypr/files/gapsmode.sh
2024-02-27 00:29:21 +03:00

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