add logout option to waybar

This commit is contained in:
2026-01-25 17:45:08 +01:00
parent 6013417cd5
commit c3e6cd99a0
4 changed files with 12 additions and 2 deletions

View File

@@ -26,7 +26,7 @@ x = 0
y = 0
[window]
opacity = 0.9
opacity = 0.95
[general]
import = ["~/.cache/wal/colors-alacritty.toml"]

View File

@@ -240,6 +240,7 @@
"menu-actions": {
"shutdown": "shutdown",
"reboot": "reboot",
"logout": "loginctl terminate-session \"$XDG_SESSION_ID\"",
"suspend": "systemctl suspend",
"hibernate": "systemctl hibernate"
}

View File

@@ -14,6 +14,11 @@
<child>
<object class="GtkSeparatorMenuItem" id="delimiter1"/>
</child>
<child>
<object class="GtkMenuItem" id="logout">
<property name="label">Logout</property>
</object>
</child>
<child>
<object class="GtkMenuItem" id="suspend">
<property name="label">Suspend</property>

View File

@@ -350,3 +350,7 @@ label:focus {
#privacy-item.audio-out {
background-color: #0069d4;
}
#custom-power {
padding: 0px 8px;
}