mirror of
https://github.com/fscotto/infra.git
synced 2026-05-30 23:49:56 +00:00
sway: add wlogout, waybar power button, layer effects
This commit is contained in:
@@ -6,7 +6,7 @@
|
||||
|
||||
"modules-left": ["sway/workspaces"],
|
||||
"modules-center": [],
|
||||
"modules-right": ["cpu", "memory", "disk", "temperature", "backlight", "network", "pulseaudio", "battery", "tray", "clock"],
|
||||
"modules-right": ["cpu", "memory", "disk", "temperature", "backlight", "network", "pulseaudio", "battery", "tray", "clock", "custom/power"],
|
||||
|
||||
"sway/workspaces": {
|
||||
"disable-scroll": true,
|
||||
@@ -97,5 +97,11 @@
|
||||
"tray": {
|
||||
"icon-size": 16,
|
||||
"spacing": 6
|
||||
},
|
||||
|
||||
"custom/power": {
|
||||
"format": "⏻",
|
||||
"tooltip": false,
|
||||
"on-click": "wlogout -b 3 -c 0 -r 0"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
}
|
||||
|
||||
window#waybar {
|
||||
background-color: #1f1f28;
|
||||
background-color: rgba(31, 31, 40, 0.55);
|
||||
color: #d0d0d0;
|
||||
border: none;
|
||||
}
|
||||
@@ -43,7 +43,8 @@ window#waybar {
|
||||
#network,
|
||||
#pulseaudio,
|
||||
#battery,
|
||||
#tray {
|
||||
#tray,
|
||||
#custom-power {
|
||||
padding: 0 8px;
|
||||
}
|
||||
|
||||
@@ -65,3 +66,12 @@ window#waybar {
|
||||
#battery.full { color: #9ec07c; }
|
||||
|
||||
#tray { padding: 0 6px; }
|
||||
|
||||
#custom-power {
|
||||
color: #c7162b;
|
||||
padding: 0 10px;
|
||||
font-size: 12pt;
|
||||
}
|
||||
#custom-power:hover {
|
||||
background-color: rgba(199, 22, 43, 0.15);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user