switch to nwg-bar
This commit is contained in:
parent
1954edcae1
commit
819e682918
22
sway/.config/nwg-bar/bar.json
Normal file
22
sway/.config/nwg-bar/bar.json
Normal file
|
@ -0,0 +1,22 @@
|
|||
[
|
||||
{
|
||||
"label": "Lock",
|
||||
"exec": "swaylock -f -c 000000",
|
||||
"icon": "/usr/share/nwg-bar/images/system-lock-screen.svg"
|
||||
},
|
||||
{
|
||||
"label": "Logout",
|
||||
"exec": "swaymsg exit",
|
||||
"icon": "/usr/share/nwg-bar/images/system-log-out.svg"
|
||||
},
|
||||
{
|
||||
"label": "Reboot",
|
||||
"exec": "systemctl reboot",
|
||||
"icon": "/usr/share/nwg-bar/images/system-reboot.svg"
|
||||
},
|
||||
{
|
||||
"label": "Shutdown",
|
||||
"exec": "systemctl -i poweroff",
|
||||
"icon": "/usr/share/nwg-bar/images/system-shutdown.svg"
|
||||
}
|
||||
]
|
35
sway/.config/nwg-bar/style.css
Normal file
35
sway/.config/nwg-bar/style.css
Normal file
|
@ -0,0 +1,35 @@
|
|||
window {
|
||||
background-color: rgba (0, 0, 0, 0.0)
|
||||
}
|
||||
|
||||
/* Outer bar container, takes all the window width/height */
|
||||
#outer-box {
|
||||
margin: 0px
|
||||
}
|
||||
|
||||
/* Inner bar container, surrounds buttons */
|
||||
#inner-box {
|
||||
background-color: rgba (0, 0, 0, 0.85);
|
||||
border-radius: 10px;
|
||||
border-style: none;
|
||||
border-width: 1px;
|
||||
border-color: rgba (156, 142, 122, 0.7);
|
||||
padding: 5px;
|
||||
margin: 5px
|
||||
}
|
||||
|
||||
button, image {
|
||||
background: none;
|
||||
border: none;
|
||||
box-shadow: none
|
||||
}
|
||||
|
||||
button {
|
||||
padding-left: 10px;
|
||||
padding-right: 10px;
|
||||
margin: 5px
|
||||
}
|
||||
|
||||
button:hover {
|
||||
background-color: rgba (255, 255, 255, 0.1)
|
||||
}
|
|
@ -37,7 +37,7 @@
|
|||
},
|
||||
"custom/power": {
|
||||
"format": "",
|
||||
"on-click": "nwgbar -o 0.7"
|
||||
"on-click": "nwg-bar"
|
||||
},
|
||||
"custom/weather": {
|
||||
"format": "{}",
|
||||
|
|
Loading…
Reference in a new issue