sway: add wlogout, waybar power button, layer effects

This commit is contained in:
Fabio Scotto di Santolo
2026-05-17 15:32:26 +02:00
parent e2ea8edd9b
commit 901bd46a2e
8 changed files with 84 additions and 15 deletions

View File

@@ -0,0 +1,3 @@
{"label": "logout", "action": "swaymsg exit", "text": "Logout", "keybind": "l"}
{"label": "reboot", "action": "loginctl reboot", "text": "Reboot", "keybind": "r"}
{"label": "shutdown", "action": "loginctl poweroff", "text": "Shutdown", "keybind": "s"}

View File

@@ -0,0 +1,42 @@
* {
background-image: none;
box-shadow: none;
font-family: "LiterationMono Nerd Font", "Symbols Nerd Font Mono", monospace;
font-size: 14pt;
}
window {
background-color: rgba(31, 31, 40, 0.85);
}
button {
color: #d0d0d0;
background-color: #2b2b36;
border: 2px solid #3a3a46;
border-radius: 8px;
margin: 12px;
background-repeat: no-repeat;
background-position: center;
background-size: 25%;
}
button:focus,
button:active,
button:hover {
color: #ffffff;
background-color: #4a90d9;
border-color: #4a90d9;
outline-style: none;
}
#logout {
background-image: image(url("/usr/share/wlogout/icons/logout.png"));
}
#reboot {
background-image: image(url("/usr/share/wlogout/icons/reboot.png"));
}
#shutdown {
background-image: image(url("/usr/share/wlogout/icons/shutdown.png"));
}