mirror of
https://github.com/end-4/dots-hyprland.git
synced 2026-06-24 01:37:30 -05:00
16 lines
427 B
Bash
Executable File
16 lines
427 B
Bash
Executable File
#!/bin/bash
|
|
|
|
state=$(hyprctl getoption decoration:rounding -j | gojq '.int')
|
|
|
|
if [[ "$state" != "0" || "$1" == "--enable" ]]; then
|
|
hyprctl keyword decoration:rounding 0
|
|
hyprctl keyword general:gaps_in 0
|
|
hyprctl keyword general:gaps_out 0
|
|
if [[ "$2" == "--border" ]]; then
|
|
hyprctl keyword general:border_size "$3"
|
|
else
|
|
hyprctl keyword general:border_size 1
|
|
fi
|
|
else
|
|
hyprctl reload
|
|
fi |