mirror of
https://gitea.blesmrt.net/mikaela/shell-things.git
synced 2024-11-22 03:09:22 +01:00
conf/{sway,waybar}: add WIP waybar config
This commit is contained in:
parent
439786a2fd
commit
cfc5b266dd
3
conf/sway/config.d/waybar.conf
Normal file
3
conf/sway/config.d/waybar.conf
Normal file
@ -0,0 +1,3 @@
|
||||
bar {
|
||||
swaybar_command waybar
|
||||
}
|
16
conf/waybar/config
Normal file
16
conf/waybar/config
Normal file
@ -0,0 +1,16 @@
|
||||
{
|
||||
"layer": "top",
|
||||
"position": "left",
|
||||
"modules-left": ["sway/workspaces", "sway/mode"],
|
||||
"modules-right": ["battery", "clock"],
|
||||
"sway/window": {
|
||||
"max-length": 50
|
||||
},
|
||||
"battery": {
|
||||
"format": "{capacity}% {icon}",
|
||||
"format-icons": ["", "", "", "", ""]
|
||||
},
|
||||
"clock": {
|
||||
"format-alt": "{:%a, %d. %b %H:%M}"
|
||||
}
|
||||
}
|
16
conf/waybar/config.json
Normal file
16
conf/waybar/config.json
Normal file
@ -0,0 +1,16 @@
|
||||
{
|
||||
"layer": "top",
|
||||
"position": "left",
|
||||
"modules-left": ["sway/workspaces", "sway/mode"],
|
||||
"modules-right": ["battery", "clock"],
|
||||
"sway/window": {
|
||||
"max-length": 50
|
||||
},
|
||||
"battery": {
|
||||
"format": "{capacity}% {icon}",
|
||||
"format-icons": ["", "", "", "", ""]
|
||||
},
|
||||
"clock": {
|
||||
"format-alt": "{:%a, %d. %b %H:%M}"
|
||||
}
|
||||
}
|
75
conf/waybar/style.css
Normal file
75
conf/waybar/style.css
Normal file
@ -0,0 +1,75 @@
|
||||
/* https://github.com/jan-warchol/selenized/blob/master/other-apps/wofi/selenized-dark.css */
|
||||
|
||||
* {
|
||||
border: none;
|
||||
border-radius: 0;
|
||||
font-family: OpenDyslexic, sans-serif;
|
||||
font-size: 9px;
|
||||
min-height: 0;
|
||||
}
|
||||
|
||||
window#waybar {
|
||||
background: #103c48;
|
||||
border-bottom: 3px solid rgba(100, 114, 125, 0.5);
|
||||
color: white;
|
||||
}
|
||||
|
||||
tooltip {
|
||||
background: rgba(43, 48, 59, 0.5);
|
||||
border: 1px solid rgba(100, 114, 125, 0.5);
|
||||
}
|
||||
tooltip label {
|
||||
color: white;
|
||||
}
|
||||
|
||||
#workspaces button {
|
||||
padding: 0 5px;
|
||||
background: #103c48;
|
||||
color: white;
|
||||
border-bottom: 3px solid #103c48;
|
||||
}
|
||||
|
||||
#workspaces button.focused {
|
||||
background: #64727D;
|
||||
border-bottom: 3px solid white;
|
||||
}
|
||||
|
||||
#mode, #clock, #battery {
|
||||
padding: 0 10px;
|
||||
}
|
||||
|
||||
#mode {
|
||||
background: #103c48;
|
||||
border-bottom: 3px solid white;
|
||||
}
|
||||
|
||||
#clock {
|
||||
background-color: #103c48;
|
||||
}
|
||||
|
||||
#battery {
|
||||
background-color: #103c48;
|
||||
color: black;
|
||||
}
|
||||
|
||||
#battery.charging {
|
||||
color: white;
|
||||
background-color: #103c48;
|
||||
}
|
||||
|
||||
@keyframes blink {
|
||||
to {
|
||||
background-color: #103c48;
|
||||
color: black;
|
||||
}
|
||||
}
|
||||
|
||||
#battery.warning:not(.charging) {
|
||||
background: #f53c3c;
|
||||
color: white;
|
||||
animation-name: blink;
|
||||
animation-duration: 0.5s;
|
||||
animation-timing-function: linear;
|
||||
animation-iteration-count: infinite;
|
||||
animation-direction: alternate;
|
||||
}
|
Loading…
Reference in New Issue
Block a user