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_dist = copy_template(waybar_template, Path.home().joinpath('.config', 'waybar'))
replace_placeholders(waybar_dist, palette, flavor)
os.system('waybar-toggle.sh')
os.system('waybar-toggle')
def _change_ohmyposh(palette: dict[str, str], flavor: str):

View File

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

View File

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

View File

@@ -17,7 +17,7 @@
"custom/mediaplayer"
],
"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
// -------------------------------------------------------------------------
@@ -226,6 +226,20 @@
"on-scroll-up": "playerctl next",
"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": {
"icon-size": 15,
"spacing": 5

View File

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

View File

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