✨ feat(waybar): use css margin instead of waybar's, add shadows
This commit is contained in:
+8
-17
@@ -1,24 +1,15 @@
|
|||||||
@keyframes blink {
|
@keyframes workspace-pick-attention {
|
||||||
0% {
|
|
||||||
background: @color3;
|
|
||||||
}
|
|
||||||
|
|
||||||
100% {
|
|
||||||
background: @color2;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
@keyframes pick-attention {
|
|
||||||
25% {
|
|
||||||
background: @color6;
|
|
||||||
}
|
|
||||||
|
|
||||||
50% {
|
50% {
|
||||||
|
background: @color4;
|
||||||
|
padding: 0 18px;
|
||||||
|
}
|
||||||
|
|
||||||
|
60% {
|
||||||
background: @color1;
|
background: @color1;
|
||||||
}
|
}
|
||||||
|
|
||||||
75% {
|
80% {
|
||||||
background: @color6;
|
background: @color4;
|
||||||
}
|
}
|
||||||
|
|
||||||
100% {
|
100% {
|
||||||
|
|||||||
+5
-8
@@ -2,7 +2,7 @@
|
|||||||
"position": "top",
|
"position": "top",
|
||||||
"layer": "top",
|
"layer": "top",
|
||||||
"spacing": 0,
|
"spacing": 0,
|
||||||
"margin": 5,
|
"margin": 0,
|
||||||
"reload_style_on_change": true,
|
"reload_style_on_change": true,
|
||||||
"modules-left": [
|
"modules-left": [
|
||||||
"custom/logo",
|
"custom/logo",
|
||||||
@@ -132,17 +132,14 @@
|
|||||||
},
|
},
|
||||||
|
|
||||||
"cpu": {
|
"cpu": {
|
||||||
"format": " {usage}%",
|
"format": " {usage}%",
|
||||||
"tooltip": true,
|
"tooltip": true,
|
||||||
"escape": true
|
"escape": true
|
||||||
},
|
},
|
||||||
"memory": {
|
"memory": {
|
||||||
"format": " {}%"
|
"format": " {}%"
|
||||||
},
|
},
|
||||||
"temperature": {
|
"temperature": {
|
||||||
// "thermal-zone": 2,
|
|
||||||
// "hwmon-path": "/sys/class/hwmon/hwmon2/temp1_input",
|
|
||||||
// "format-critical": "{temperatureC}°C {icon}",
|
|
||||||
"critical-threshold": 80,
|
"critical-threshold": 80,
|
||||||
"format": "{icon} {temperatureC}°C",
|
"format": "{icon} {temperatureC}°C",
|
||||||
"format-icons": ["", "", ""]
|
"format-icons": ["", "", ""]
|
||||||
@@ -190,8 +187,8 @@
|
|||||||
"format-icons": [ "", "", "", "", "" ]
|
"format-icons": [ "", "", "", "", "" ]
|
||||||
},
|
},
|
||||||
"pulseaudio": {
|
"pulseaudio": {
|
||||||
"format": "{volume}% {icon}",
|
"format": "{icon} {volume}%",
|
||||||
"format-bluetooth": "{volume}% {icon}",
|
"format-bluetooth": "{icon} {volume}%",
|
||||||
"format-muted": "",
|
"format-muted": "",
|
||||||
"format-icons": {
|
"format-icons": {
|
||||||
"headphone": "",
|
"headphone": "",
|
||||||
|
|||||||
+19
-12
@@ -13,45 +13,47 @@
|
|||||||
|
|
||||||
/* Workspace Indicator */
|
/* Workspace Indicator */
|
||||||
#workspaces {
|
#workspaces {
|
||||||
padding: 4px;
|
padding: 5px 0;
|
||||||
|
margin: 0 4px;
|
||||||
}
|
}
|
||||||
|
|
||||||
#workspaces button {
|
#workspaces > button {
|
||||||
|
border: none;
|
||||||
|
box-shadow: none;
|
||||||
background: @color1;
|
background: @color1;
|
||||||
border-radius: 14px;
|
border-radius: 14px;
|
||||||
padding: 0 4px;
|
padding: 0 4px;
|
||||||
margin: 0 2px;
|
margin: 0 2px;
|
||||||
}
|
}
|
||||||
|
|
||||||
#workspaces button.active {
|
#workspaces > button.active {
|
||||||
background: @foreground;
|
background: @foreground;
|
||||||
padding-left: 14px;
|
padding-left: 14px;
|
||||||
padding-right: 14px;
|
padding-right: 14px;
|
||||||
}
|
}
|
||||||
|
|
||||||
#workspaces button.urgent {
|
#workspaces > button.urgent {
|
||||||
animation: pick-attention;
|
animation: workspace-pick-attention;
|
||||||
animation-duration: 2s;
|
animation-duration: 2s;
|
||||||
}
|
}
|
||||||
|
|
||||||
#workspace button.special {
|
#workspace > button.special {
|
||||||
background: @color3;
|
background: @color3;
|
||||||
}
|
}
|
||||||
|
|
||||||
#workspaces button:first-child {
|
#workspaces > button:first-child {
|
||||||
margin-left: 0px;
|
margin-left: 0px;
|
||||||
}
|
}
|
||||||
|
|
||||||
#workspaces button:last-child {
|
#workspaces > button:last-child {
|
||||||
margin-right: 0px;
|
margin-right: 0px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/* Notifications */
|
/* Notifications */
|
||||||
widget #custom-notifications {
|
widget #custom-notifications {
|
||||||
font-size: 16px;
|
font-size: 16px;
|
||||||
padding-left: 10px;
|
padding-left: 12px;
|
||||||
padding-right: 12px;
|
padding-right: 14px;
|
||||||
}
|
}
|
||||||
|
|
||||||
widget #custom-notifications.cc-open {
|
widget #custom-notifications.cc-open {
|
||||||
@@ -108,9 +110,14 @@ window.empty #window {
|
|||||||
/* Pulse Audio */
|
/* Pulse Audio */
|
||||||
#pulseaudio {
|
#pulseaudio {
|
||||||
padding-left: 8px;
|
padding-left: 8px;
|
||||||
padding-right: 8px;
|
padding-right: 16px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#pulseaudio.bluetooth {
|
||||||
|
padding: 0 8px;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
/* Media Player Info */
|
/* Media Player Info */
|
||||||
#custom-media {
|
#custom-media {
|
||||||
box-shadow: none;
|
box-shadow: none;
|
||||||
|
|||||||
+7
-6
@@ -15,19 +15,18 @@ window#waybar {
|
|||||||
background: transparent;
|
background: transparent;
|
||||||
}
|
}
|
||||||
|
|
||||||
window#waybar.hidden {
|
|
||||||
opacity: 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
window > * > * {
|
window > * > * {
|
||||||
padding: 4px;
|
padding: 4px;
|
||||||
|
margin-bottom: 8px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.modules-left,
|
.modules-left,
|
||||||
.modules-center,
|
.modules-center,
|
||||||
.modules-right {
|
.modules-right {
|
||||||
background: alpha(@background, .80);
|
background: alpha(@background, .74);
|
||||||
border-radius: 14px;
|
border-radius: 16px;
|
||||||
|
margin: 6px;
|
||||||
|
box-shadow: 0 0 2px 0 black;
|
||||||
}
|
}
|
||||||
|
|
||||||
.module {
|
.module {
|
||||||
@@ -57,10 +56,12 @@ menu {
|
|||||||
|
|
||||||
menu > separator {
|
menu > separator {
|
||||||
padding: 0px;
|
padding: 0px;
|
||||||
|
margin: 2px 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
menu > * {
|
menu > * {
|
||||||
border-radius: 2px;
|
border-radius: 2px;
|
||||||
|
margin: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
menu > *:first-child {
|
menu > *:first-child {
|
||||||
|
|||||||
Reference in New Issue
Block a user