Skip to content

Commit

Permalink
RiP no_gaps_when_only (Hyprland 0.45.)
Browse files Browse the repository at this point in the history
  • Loading branch information
nwg-piotr committed Nov 9, 2024
1 parent 0e866ce commit 4ab602c
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 18 deletions.
4 changes: 0 additions & 4 deletions nwg_shell_config/main_hyprland.py
Original file line number Diff line number Diff line change
Expand Up @@ -846,7 +846,6 @@ def save_includes():
includes.append(' smart_resizing = {}'.format(bool2lower(settings["dwindle-smart_resizing"])))
includes.append(' special_scale_factor = {}'.format(settings["dwindle-special_scale_factor"]))
includes.append(' split_width_multiplier = {}'.format(settings["dwindle-split_width_multiplier"]))
includes.append(' no_gaps_when_only = {}'.format(bool2lower(settings["dwindle-no_gaps_when_only"])))
includes.append(' use_active_for_splits = {}'.format(bool2lower(settings["dwindle-use_active_for_splits"])))
includes.append(' default_split_ratio = {}'.format(settings["dwindle-default_split_ratio"]))
includes.append('}')
Expand All @@ -859,7 +858,6 @@ def save_includes():
includes.append(' mfact = {}'.format(settings["master-mfact"]))
# includes.append(' new_is_master = {}'.format(bool2lower(settings["master-new_is_master"])))
includes.append(' new_on_top = {}'.format(bool2lower(settings["master-new_on_top"])))
includes.append(' no_gaps_when_only = {}'.format(bool2lower(settings["master-no_gaps_when_only"])))
includes.append(' orientation = {}'.format(settings["master-orientation"]))
includes.append(' inherit_fullscreen = {}'.format(bool2lower(settings["master-inherit_fullscreen"])))
includes.append(' always_center_master = {}'.format(bool2lower(settings["master-always_center_master"])))
Expand Down Expand Up @@ -1039,7 +1037,6 @@ def load_settings():
"dwindle-permanent_direction_override": False,
"dwindle-special_scale_factor": 0.8,
"dwindle-split_width_multiplier": 1.0,
"dwindle-no_gaps_when_only": False,
"dwindle-use_active_for_splits": True,
"dwindle-default_split_ratio": 1.0,

Expand All @@ -1049,7 +1046,6 @@ def load_settings():
"master-mfact": 0.55,
"master-new_is_master": True,
"master-new_on_top": False,
"master-no_gaps_when_only": False,
"master-orientation": "left",
"master-inherit_fullscreen": True,
"master-always_center_master": False,
Expand Down
2 changes: 0 additions & 2 deletions nwg_shell_config/shell/settings-hyprland
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@
"dwindle-permanent_direction_override": false,
"dwindle-special_scale_factor": 0.8,
"dwindle-split_width_multiplier": 1.0,
"dwindle-no_gaps_when_only": false,
"dwindle-use_active_for_splits": true,
"dwindle-default_split_ratio": 1.0,
"dwindle-preserve_split": true,
Expand All @@ -55,7 +54,6 @@
"master-mfact": 0.55,
"master-new_is_master": true,
"master-new_on_top": false,
"master-no_gaps_when_only": false,
"master-orientation": "left",
"master-inherit_fullscreen": true,
"master-always_center_master": false,
Expand Down
14 changes: 2 additions & 12 deletions nwg_shell_config/ui_components.py
Original file line number Diff line number Diff line change
Expand Up @@ -1190,12 +1190,7 @@ def h_dwindle_tab(settings, voc):
sb_swm.connect("value-changed", set_from_spinbutton, settings, "dwindle-split_width_multiplier", 2)
grid.attach(sb_swm, 3, 2, 1, 1)

cb_ngwo = Gtk.CheckButton.new_with_label(voc["no-gaps-when-only"])
cb_ngwo.set_property("halign", Gtk.Align.START)
cb_ngwo.set_tooltip_text(voc["no-gaps-when-only-tooltip"])
cb_ngwo.set_active(settings["dwindle-no_gaps_when_only"])
cb_ngwo.connect("toggled", set_from_checkbutton, settings, "dwindle-no_gaps_when_only")
grid.attach(cb_ngwo, 0, 3, 2, 1)
# RiP no_gaps_when_only

cb_uafs = Gtk.CheckButton.new_with_label(voc["use-active-for-splits"])
cb_uafs.set_property("halign", Gtk.Align.START)
Expand Down Expand Up @@ -1293,12 +1288,7 @@ def h_master_tab(settings, voc):
sb_ssf.connect("value-changed", set_from_spinbutton, settings, "master-special_scale_factor", 3)
grid.attach(sb_ssf, 3, 2, 1, 1)

cb_ngwo = Gtk.CheckButton.new_with_label(voc["no-gaps-when-only"])
cb_ngwo.set_property("halign", Gtk.Align.START)
cb_ngwo.set_tooltip_text(voc["no-gaps-when-only-tooltip"])
cb_ngwo.set_active(settings["master-no_gaps_when_only"])
cb_ngwo.connect("toggled", set_from_checkbutton, settings, "master-no_gaps_when_only")
grid.attach(cb_ngwo, 0, 3, 1, 1)
# RiP no_gaps_when_only

lbl = Gtk.Label.new("{}:".format(voc["master-orientation"]))
lbl.set_property("halign", Gtk.Align.END)
Expand Down

0 comments on commit 4ab602c

Please sign in to comment.