snap: add option to respect gaps (#10524)
This commit is contained in:
parent
5cc6cb4945
commit
9bf1b49144
3 changed files with 37 additions and 18 deletions
|
|
@ -128,6 +128,12 @@ inline static const std::vector<SConfigOptionDescription> CONFIG_OPTIONS = {
|
|||
.type = CONFIG_OPTION_BOOL,
|
||||
.data = SConfigOptionDescription::SBoolData{false},
|
||||
},
|
||||
SConfigOptionDescription{
|
||||
.value = "general:snap:respect_gaps",
|
||||
.description = "if true, snapping will respect gaps between windows",
|
||||
.type = CONFIG_OPTION_BOOL,
|
||||
.data = SConfigOptionDescription::SBoolData{false},
|
||||
},
|
||||
|
||||
/*
|
||||
* decoration:
|
||||
|
|
|
|||
|
|
@ -456,6 +456,7 @@ CConfigManager::CConfigManager() {
|
|||
registerConfigVar("general:snap:window_gap", Hyprlang::INT{10});
|
||||
registerConfigVar("general:snap:monitor_gap", Hyprlang::INT{10});
|
||||
registerConfigVar("general:snap:border_overlap", Hyprlang::INT{0});
|
||||
registerConfigVar("general:snap:respect_gaps", Hyprlang::INT{0});
|
||||
registerConfigVar("general:col.active_border", Hyprlang::CConfigCustomValueType{&configHandleGradientSet, configHandleGradientDestroy, "0xffffffff"});
|
||||
registerConfigVar("general:col.inactive_border", Hyprlang::CConfigCustomValueType{&configHandleGradientSet, configHandleGradientDestroy, "0xff444444"});
|
||||
registerConfigVar("general:col.nogroup_border", Hyprlang::CConfigCustomValueType{&configHandleGradientSet, configHandleGradientDestroy, "0xffffaaff"});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue