added wlogout (needs work) + fixed/added some waybar stuff

This commit is contained in:
opal
2023-11-07 21:46:59 -08:00
parent ab0a20e75f
commit cfb6d28b76
10 changed files with 222 additions and 47 deletions
+60 -17
View File
@@ -3,8 +3,8 @@
"position": "top",
"height": 35,
"modules-left": ["sway/workspaces"],
"modules-center": ["clock", "custom/wlsunset"],
"modules-right": ["idle_inhibitor", "pulseaudio", "network", "battery", "tray"],
"modules-center": ["clock"],
"modules-right": ["custom/l_end","custom/wlsunset","custom/padd","pulseaudio", "custom/padd","network", "custom/padd","battery", "tray", "custom/power","custom/padd"],
"sway/workspaces": {
"disable-scroll": true,
"all-outputs": true,
@@ -39,14 +39,14 @@
"format-charging": "<span size='large' rise='-1600'></span> {capacity}% "
},
"custom/wlsunset": {
"format": "",
"format-icons": ["", ""],
"format": "<span size='large'></span>",
"format-icons": ["", ""],
"on-click": "wlsunset -l 47.6 -L -122.3 -t 3000 -T 6500"
},
"network": {
"interval": 5,
"format-wifi": "<span size='large' rise='-1000'></span> {essid}",
"format-ethernet": "<span size='large' rise='-1000'></span> {ifname}",
"format-wifi": " {essid}",
"format-ethernet": "󰈀 {ifname}",
"format-disconnected": "",
"tooltip-format-wifi": "{essid}:{signalStrength}\nSpeed:{bandwidthDownBits} \n{ipaddr}"
@@ -57,19 +57,62 @@
"on-click": "pavucontrol",
"on-scroll-down": "amixer set Master 3%-",
"format": "",
"format": "Vol: {volume}%",
"format": "<span size='large'>{icon}</span> {volume}%",
"format-muted": "Muted",
//"format-icons": {
// "headset": "",
// "headphone": "",
// "default": ["", "", " "]
// },
},
"idle_inhibitor": {
"format": "<span rise='-4000' size='large'>{icon}</span>",
"format-icons": {
"activated": "Idle Inhibit: On",
"deactivated": "Idle Inhibit: Off",
"headset": "",
"headphone": "",
"default": ["", "", " "]
},
},
"custom/power": {
"format": "⏻{}",
//"exec": "echo ; echo  logout",
"on-click": "wlogout -p layer-shell",
"interval" : 86400, // once every day
"tooltip": true
},
"custom/l_end": {
"format": " ",
"interval" : "once",
"tooltip": false
},
"custom/r_end": {
"format": " ",
"interval" : "once",
"tooltip": false
},
"custom/sl_end": {
"format": " ",
"interval" : "once",
"tooltip": false
},
"custom/sr_end": {
"format": " ",
"interval" : "once",
"tooltip": false
},
"custom/rl_end": {
"format": " ",
"interval" : "once",
"tooltip": false
},
"custom/rr_end": {
"format": " ",
"interval" : "once",
"tooltip": false
},
"custom/padd": {
"format": " ",
"interval" : "once",
"tooltip": false
}
}
+14 -6
View File
@@ -53,11 +53,19 @@ window#waybar {
}
#network {
color: #bebebe;
margin:7px 4px 4px 4px;
font-size: 16.5px;
border-radius: 6px;
/* padding: 0px 5px 0px 5px; */
}
#custom-power {
color: #bebebe;
margin:7px 4px 0 4px;
font-size: 16.5px;
border-radius: 6px;
padding: 0px 5px 0px 5px;
/*padding: 0px 0px 0px 0px;*/
}
@keyframes critical {
@@ -106,7 +114,7 @@ window#waybar {
color: #bebebe;
border: none;
border-radius: 0;
padding: 0px 0px 5px 0px;
/* padding: 0px px 5px 0px; */
}
#custom-wlsunset:hover {
@@ -120,15 +128,15 @@ window#waybar {
margin:7px 4px 0 4px;
font-size: 16.5px;
color: #bebebe;
border-radius: 5px;
padding: 0px 5px 0px 5px;
/* border-radius: 5px; */
/* padding: 0px 5px 0px 5px; */
}
#tray {
margin: 7px 15px 0 4px;
margin: 7px 15px 3px 4px;
background: rgba(40,40,40, .65);
border-radius: 6px;
padding: 0px 5px 0px 5px;
padding: 5px 3px 5px 5px;
}
#idle_inhibitor {