steal tray-expander from Omarchy 🤓

This commit is contained in:
2025-09-27 19:50:46 +02:00
parent 5aec24f542
commit 509abb1d5d
6 changed files with 32 additions and 9 deletions

View File

@@ -162,7 +162,7 @@ def _change_waybar(palette: dict[str, str], flavor: str):
waybar_template = Path.home().joinpath('.config', 'waybar', 'style.css.template') waybar_template = Path.home().joinpath('.config', 'waybar', 'style.css.template')
waybar_dist = copy_template(waybar_template, Path.home().joinpath('.config', 'waybar')) waybar_dist = copy_template(waybar_template, Path.home().joinpath('.config', 'waybar'))
replace_placeholders(waybar_dist, palette, flavor) replace_placeholders(waybar_dist, palette, flavor)
os.system('waybar-toggle.sh') os.system('waybar-toggle')
def _change_ohmyposh(palette: dict[str, str], flavor: str): def _change_ohmyposh(palette: dict[str, str], flavor: str):

View File

@@ -77,7 +77,7 @@ if __name__ == "__main__":
# notification # notification
Notify.init("Screenshot Utility") Notify.init("Screenshot Utility")
n = Notify.Notification.new( n = Notify.Notification.new(
"Screenshot Taken", "Screenshot taken",
"Click to edit" "Click to edit"
) )
n.add_action( n.add_action(

View File

@@ -2,6 +2,7 @@ input {
# Keyboard: Add a layout and uncomment kb_options for Win+Space switching shortcut # Keyboard: Add a layout and uncomment kb_options for Win+Space switching shortcut
kb_layout = de kb_layout = de
# kb_options = grp:win_space_toggle # kb_options = grp:win_space_toggle
# kb_options = caps:swapescape
numlock_by_default = true numlock_by_default = true
repeat_delay = 250 repeat_delay = 250
repeat_rate = 35 repeat_rate = 35

View File

@@ -17,7 +17,7 @@
"custom/mediaplayer" "custom/mediaplayer"
], ],
"modules-center": ["clock"], "modules-center": ["clock"],
"modules-right": ["group/monitors", "custom/separator", "tray", "custom/separator", "idle_inhibitor", "custom/power"], "modules-right": ["group/monitors", "custom/separator", "group/tray-expander", "idle_inhibitor", "custom/power"],
// ------------------------------------------------------------------------- // -------------------------------------------------------------------------
// Modules // Modules
// ------------------------------------------------------------------------- // -------------------------------------------------------------------------
@@ -226,6 +226,20 @@
"on-scroll-up": "playerctl next", "on-scroll-up": "playerctl next",
"on-scroll-down": "playerctl previous" "on-scroll-down": "playerctl previous"
}, },
"group/tray-expander": {
"orientation": "inherit",
"drawer": {
"transition-duration": 600,
"children-class": "tray-group-item"
},
"modules": ["custom/expand-icon", "tray", "custom/separator"]
},
"custom/expand-icon": {
"format": "",
"tooltip": false,
"min-length": 2,
"max-length": 2
},
"tray": { "tray": {
"icon-size": 15, "icon-size": 15,
"spacing": 5 "spacing": 5

View File

@@ -56,9 +56,9 @@ tooltip {
#custom-rofi, #custom-rofi,
#idle_inhibitor, #idle_inhibitor,
#custom-power { #custom-power,
padding-left: 6px; #custom-expand-icon {
padding-right: 6px; padding: 0px 6px;
font-size: 18px; font-size: 18px;
} }
@@ -164,6 +164,10 @@ window#waybar.empty #window {
background-color: alpha(@archlinux, 0.3); background-color: alpha(@archlinux, 0.3);
} }
#custom-expand-icon {
color: @green;
}
#idle_inhibitor { #idle_inhibitor {
color: @yellow; color: @yellow;
} }

View File

@@ -56,9 +56,9 @@ tooltip {
#custom-rofi, #custom-rofi,
#idle_inhibitor, #idle_inhibitor,
#custom-power { #custom-power,
padding-left: 6px; #custom-expand-icon {
padding-right: 6px; padding: 0px 6px;
font-size: 18px; font-size: 18px;
} }
@@ -164,6 +164,10 @@ window#waybar.empty #window {
background-color: alpha(@archlinux, 0.3); background-color: alpha(@archlinux, 0.3);
} }
#custom-expand-icon {
color: @green;
}
#idle_inhibitor { #idle_inhibitor {
color: @yellow; color: @yellow;
} }