steal tray-expander from Omarchy 🤓
This commit is contained in:
@@ -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):
|
||||
|
||||
@@ -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(
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user