sway: updates
This commit is contained in:
@@ -16,7 +16,7 @@
|
||||
"position": "top",
|
||||
|
||||
// If height property would be not present, it'd be calculated dynamically
|
||||
"height": 30,
|
||||
"height": 25,
|
||||
|
||||
"modules-left": [
|
||||
"sway/workspaces",
|
||||
@@ -26,20 +26,20 @@
|
||||
"modules-center": [
|
||||
],
|
||||
"modules-right": [
|
||||
"tray",
|
||||
// "network",
|
||||
// "pulseaudio",
|
||||
// "memory",
|
||||
// "cpu",
|
||||
// "temperature",
|
||||
"custom/weather",
|
||||
"backlight",
|
||||
// "custom/keyboard-layout",
|
||||
"battery",
|
||||
"custom/conservation",
|
||||
"custom/power",
|
||||
// "custom/conservation",
|
||||
// "custom/power",
|
||||
"clock#date",
|
||||
"clock#time"
|
||||
"clock#time",
|
||||
"custom/sep",
|
||||
"tray"
|
||||
],
|
||||
|
||||
|
||||
@@ -54,32 +54,37 @@
|
||||
"critical": 15
|
||||
},
|
||||
// Connected to AC
|
||||
// "format": " {capacity}%", // Icon: bolt
|
||||
"format": "⚡ {capacity}%", // Icon: bolt
|
||||
"format": "{capacity}% ", // Icon: bolt
|
||||
// "format": "⚡ {capacity}%", // Icon: bolt
|
||||
// "format": "C {capacity}%", // Icon: bolt
|
||||
// Not connected to AC
|
||||
// "format-discharging": "{icon} {capacity}%",
|
||||
"format-discharging": "🔋 {capacity}%",
|
||||
"format-discharging": "{capacity}% {icon}",
|
||||
// "format-discharging": "🔋 {capacity}%",
|
||||
// "format-discharging": "{capacity}%",
|
||||
"format-icons": [
|
||||
"", // Icon: battery-full
|
||||
"", // Icon: battery-three-quarters
|
||||
"", // Icon: battery-half
|
||||
"", // Icon: battery-quarter
|
||||
"" // Icon: battery-empty
|
||||
"", // Icon: battery-empty
|
||||
"", // Icon: battery-quarter
|
||||
"", // Icon: battery-half
|
||||
"", // Icon: battery-three-quarters
|
||||
"" // Icon: battery-full
|
||||
],
|
||||
"tooltip": true
|
||||
"tooltip": true,
|
||||
"on-click": "~/.config/waybar/conservation-toggle.sh"
|
||||
},
|
||||
|
||||
"backlight": {
|
||||
"device": "intel_backlight",
|
||||
"format": "{icon} {percent}%",
|
||||
"device": "intel_backligt",
|
||||
"format": "{percent} {icon}",
|
||||
// "format": "{percent}%",
|
||||
"format-icons": ["🔅", "🔆"]
|
||||
// "format-icons": ["🔅", "🔆"]
|
||||
"format-icons": ["", "", "", "", ""]
|
||||
},
|
||||
|
||||
|
||||
"clock#time": {
|
||||
"interval": 1,
|
||||
"format": "🕒 {:%H:%M}",
|
||||
// "format": "🕒 {:%H:%M}",
|
||||
"format": "{:%H:%M}",
|
||||
"tooltip": false,
|
||||
"on-click": "gnome-clocks"
|
||||
},
|
||||
@@ -87,23 +92,15 @@
|
||||
"clock#date": {
|
||||
"interval": 10,
|
||||
// "format": " {:%e %b %Y}", // Icon: calendar-alt
|
||||
"format": "🗓️ {:%e. %b %Y (%a)}", // Icon: calendar-alt
|
||||
// "format": "🗓️ {:%e. %b %Y (%a)}", // Icon: calendar-alt
|
||||
"format": "{:%a, %e.%b}", // Icon: calendar-alt
|
||||
"tooltip-format": "{:%e %B %Y}",
|
||||
"on-click": "gnome-calendar"
|
||||
},
|
||||
|
||||
// https://github.com/bjesus/wttrbar
|
||||
"custom/weather": {
|
||||
"format": "{}°C",
|
||||
"tooltip": true,
|
||||
"interval": 3600,
|
||||
"exec": "wttrbar --location Munich",
|
||||
"return-type": "json"
|
||||
},
|
||||
|
||||
"cpu": {
|
||||
"interval": 30,
|
||||
"format": "🧮 {usage}% ({load})", // Icon: microchip
|
||||
"format": "🧮 {usage}% ({load})", // Icon: microcip
|
||||
"states": {
|
||||
"warning": 70,
|
||||
"critical": 90
|
||||
@@ -144,13 +141,15 @@
|
||||
|
||||
"sway/window": {
|
||||
"format": "{}",
|
||||
"max-length": 120
|
||||
"max-length": 100,
|
||||
"icon": true,
|
||||
"icon-size": 18
|
||||
},
|
||||
|
||||
"sway/workspaces": {
|
||||
"all-outputs": false,
|
||||
"disable-scroll": true,
|
||||
"format": "{icon}",
|
||||
"disable-scroll": false,
|
||||
"format": "{name}",
|
||||
"format-icons": {
|
||||
"1": "一",
|
||||
"2": "二",
|
||||
@@ -200,8 +199,8 @@
|
||||
},
|
||||
|
||||
"tray": {
|
||||
"icon-size": 15,
|
||||
"spacing": 20
|
||||
"icon-size": 13,
|
||||
"spacing": 15
|
||||
},
|
||||
|
||||
"custom/conservation": {
|
||||
@@ -214,6 +213,9 @@
|
||||
"exec": "echo 💻 $(cat /sys/firmware/acpi/platform_profile)",
|
||||
"interval": 10,
|
||||
"on-click": "kitty -e 'htop'"
|
||||
}
|
||||
},
|
||||
|
||||
"custom/sep": {
|
||||
"format": "|",
|
||||
},
|
||||
}
|
||||
|
||||
@@ -16,8 +16,7 @@
|
||||
}
|
||||
|
||||
to {
|
||||
color: white;
|
||||
background-color: orange;
|
||||
color: orange;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -27,8 +26,7 @@
|
||||
}
|
||||
|
||||
to {
|
||||
color: white;
|
||||
background-color: red;
|
||||
color: red;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -48,10 +46,11 @@
|
||||
|
||||
/* The whole bar */
|
||||
#waybar {
|
||||
background: #2D353B;
|
||||
/* background: #2D353B; */
|
||||
background: #000000;
|
||||
color: white;
|
||||
/* font-family: Cantarell, Noto Sans, sans-serif; */
|
||||
font-family: JetBrainsMono Nerd Font Mono;
|
||||
font-family: JetBrainsMono Nerd Font;
|
||||
font-size: 12px;
|
||||
}
|
||||
|
||||
@@ -107,7 +106,7 @@
|
||||
}
|
||||
|
||||
#clock {
|
||||
font-weight: bold;
|
||||
/* font-weight: bold; */
|
||||
}
|
||||
|
||||
#cpu {
|
||||
@@ -178,7 +177,7 @@
|
||||
}
|
||||
|
||||
#window {
|
||||
font-weight: bold;
|
||||
/* font-weight: bold; */
|
||||
padding-left: 10px;
|
||||
}
|
||||
|
||||
@@ -186,8 +185,8 @@
|
||||
border-top: 2px solid transparent;
|
||||
/* To compensate for the top border and still have vertical centering */
|
||||
padding-bottom: 2px;
|
||||
padding-left: 10px;
|
||||
padding-right: 10px;
|
||||
padding-left: 5px;
|
||||
padding-right: 5px;
|
||||
color: #888888;
|
||||
}
|
||||
|
||||
@@ -200,4 +199,11 @@
|
||||
#workspaces button.urgent {
|
||||
border-color: #c9545d;
|
||||
color: #c9545d;
|
||||
}
|
||||
|
||||
#workspaces button:hover {
|
||||
box-shadow: none; /* Remove predefined box-shadow */
|
||||
text-shadow: none; /* Remove predefined text-shadow */
|
||||
background: none; /* Remove predefined background color (white) */
|
||||
transition: none; /* Disable predefined animations */
|
||||
}
|
||||
Reference in New Issue
Block a user