🔧 refactor(config, notification_utils): remove music_player visibility management

This commit is contained in:
sankalp committed 2025-06-29 12:23:14 +05:45
1 parent 02c148a12a
commit 3ec4c6229d
14 files changed
+450 -1533

No files matched your search

-36
View File
@@ -1,36 +0,0 @@
[general]
bars = 24
sensitivity = 100
framerate = 60
lower_cutoff_freq = 50
higher_cutoff_freq = 8000
autosens = 1
# these parameters should not be changed
# bar width and spacing goes wrong with raw output
bar_width = 1
bar_spacing = 0
[output]
method = raw
raw_target = /tmp/cava.fifo
bit_format = 16bit
channels = stereo
[smoothing]
gravity = 200
integral = 70
ignore = 0
monstercat = 1
[eq]
1 = 1.00
2 = 1.00
3 = 1.00
4 = 1.00
5 = 1.00
6 = 1.00
7 = 1.00
8 = 1.00
9 = 1.00
-2
View File
@@ -83,7 +83,6 @@ if os.path.exists(CONFIG_FILE):
"notifications": config.get("dock_notifications_visible", True),
"systray": config.get("dock_tray_visible", True),
"applications": config.get("dock_applications_visible", True),
"music_player": config.get("dock_music_player_visible", True),
"language": config.get("dock_language_visible", True),
}
@@ -116,7 +115,6 @@ else:
"notifications": True,
"systray": True,
"applications": True,
"music_player": True,
"language": True,
}
+17 -17
View File
@@ -1,27 +1,27 @@
$wallpaper = /home/sankalp/Pictures/wallpapers/97.jpg
$background = 101417
$foreground = dfe3e7
$wallpaper = /home/sankalp/Pictures/wallpapers/-13.webp
$background = 191114
$foreground = eedfe3
$primary = 93cdf6
$secondary = b6c9d8
$tertiary = cdc0e9
$surface = 101417
$surface_bright = 353a3d
$outline = 8b9198
$primary = fdb0d4
$secondary = e0bdcb
$tertiary = f2bb9a
$surface = 191114
$surface_bright = 40373a
$outline = 9d8d92
$error = ff5945
$shadow = 000000
$red = ffb2b9
$green = 95d5a7
$yellow = b8cf84
$blue = afc6ff
$magenta = e4b7f3
$green = b7d085
$yellow = dec56e
$blue = cebdfe
$magenta = f7b1de
$cyan = 82d3e2
$white = 82d3e0
$red_dim = ff4c5c
$green_dim = 4cb86a
$yellow_dim = 8baa43
$blue_dim = 497dff
$magenta_dim = c360e4
$green_dim = 89ad42
$yellow_dim = bb9b2b
$blue_dim = 8359fc
$magenta_dim = ee54b7
$cyan_dim = 30b5ce
-1
View File
@@ -61,7 +61,6 @@ DEFAULTS = {
"workspace_nums": False,
"workspace_use_chinese_numerals": False,
"workspace_dots": False,
"dock_music_player": True,
"window_switcher_items_per_row": 13,
"metrics_visible": {
"cpu": True,
+16 -8
View File
@@ -40,14 +40,14 @@ class HyprConfGUI(Window):
root_box = Box(orientation="v", spacing=10, style="margin: 10px;")
self.add(root_box)
main_content_box = Box(orientation="h", spacing=6, v_expand=True, h_expand=True)
main_content_box = Box(orientation="h", spacing=6, v_expand=False, h_expand=False)
root_box.add(main_content_box)
self.tab_stack = Stack(
transition_type="slide-up-down",
transition_duration=250,
v_expand=True,
h_expand=True,
v_expand=False,
h_expand=False,
)
self.key_bindings_tab_content = self.create_key_bindings_tab()
@@ -79,15 +79,24 @@ class HyprConfGUI(Window):
button_box.add(accept_btn)
root_box.add(button_box)
# Force window size after all content is added
self.connect("realize", self._force_window_size)
def _force_window_size(self, widget):
"""Force the window to respect the declared size"""
self.resize(640, 640)
self.set_size_request(640, 640)
def create_key_bindings_tab(self):
scrolled_window = ScrolledWindow(
h_scrollbar_policy="never",
v_scrollbar_policy="automatic",
h_expand=True,
v_expand=True,
propagate_width=False,
propagate_height=False,
h_expand=False,
v_expand=False,
propagate_width=True,
propagate_height=True,
)
scrolled_window.set_size_request(620, 580) # Set explicit size for content area
main_vbox = Box(orientation="v", spacing=10, style="margin: 15px;")
scrolled_window.add(main_vbox)
@@ -516,7 +525,6 @@ class HyprConfGUI(Window):
"indicators": "Indicators",
"applications": "Taskbar",
"language": "Language Indicator",
"music_player": "Music Player",
}
self.corners_switch = Gtk.Switch(active=bind_vars.get("corners_visible", True))