Install Waybar with dedicated role
This commit is contained in:
parent
829cef32d0
commit
7305399693
4 changed files with 130 additions and 202 deletions
|
@ -1,99 +0,0 @@
|
|||
{
|
||||
"layer": "top",
|
||||
"spacing":6,
|
||||
"disable-toolptips": true,
|
||||
"modules-left": ["sway/workspaces", "sway/mode"],
|
||||
"modules-center": [],
|
||||
"modules-right": [
|
||||
"network",
|
||||
"custom/sep",
|
||||
"temperature", "memory", "cpu",
|
||||
"custom/sep",
|
||||
"backlight", "battery",
|
||||
"custom/sep",
|
||||
"pulseaudio",
|
||||
"custom/sep",
|
||||
"clock",
|
||||
"custom/sep",
|
||||
"tray"
|
||||
],
|
||||
"sway/mode": {
|
||||
"format": "<span style=\"italic\">{}</span>"
|
||||
},
|
||||
"custom/sep": {
|
||||
"format": "|",
|
||||
"tooltip": false
|
||||
},
|
||||
"sway/workspace": {
|
||||
"disable-scroll": true
|
||||
},
|
||||
"idle_inhibitor": {
|
||||
"format": "{icon}",
|
||||
"format-icons": {
|
||||
"activated": "",
|
||||
"deactivated": ""
|
||||
}
|
||||
},
|
||||
"clock": {
|
||||
"tooltip": false,
|
||||
"timezone": "Europe/Paris",
|
||||
"format-alt": "{:%Y-%m-%d}"
|
||||
},
|
||||
"temperature": {
|
||||
"thermal-zone": 0,
|
||||
"critical-threshold": 80,
|
||||
"format": "{temperatureC}°C "
|
||||
},
|
||||
"cpu": {
|
||||
"format": "{usage}% {icon}",
|
||||
"tooltip": false,
|
||||
"format-icons": [""]
|
||||
},
|
||||
"backlight": {
|
||||
"format": "{percent}% {icon}",
|
||||
"format-icons": ["", "", "", "", "", "", "", "", "", "", ""],
|
||||
"tooltip": false
|
||||
},
|
||||
"battery": {
|
||||
"tooltip": false,
|
||||
"states": {
|
||||
"full": 100,
|
||||
"warning": 30,
|
||||
"critical": 15
|
||||
},
|
||||
"format": "{capacity}% {icon}",
|
||||
"format-charging": "{capacity}% ",
|
||||
"format-plugged": "{capacity}% ",
|
||||
"format-alt": "{time} {icon}",
|
||||
"format-icons": [" ", " ", " ", " ", " "]
|
||||
},
|
||||
"network": {
|
||||
"tooltip": false,
|
||||
"format-wifi": "{essid} ({signalStrength}%) ",
|
||||
"format-ethernet": "{ifname}: {ipaddr}/{cidr} ",
|
||||
"format-linked": "{ifname} (No IP) ",
|
||||
"format-disconnected": "Disconnected ⚠ ",
|
||||
"format-alt": "{ifname}: {ipaddr}/{cidr}"
|
||||
},
|
||||
"pulseaudio": {
|
||||
"tooltip": false,
|
||||
"format": "{format_source} {volume}% {icon}",
|
||||
"format-bluetooth": "{volume}% {icon}",
|
||||
"format-muted": "{format_source} 婢 ",
|
||||
"format-source": "{volume}% ",
|
||||
"format-source-muted": " ",
|
||||
"format-icons": {
|
||||
"headphones": " ",
|
||||
"handsfree": " ",
|
||||
"headset": " ",
|
||||
"phone": " ",
|
||||
"portable": " ",
|
||||
"car": " ",
|
||||
"default": "墳 "
|
||||
}
|
||||
},
|
||||
"memory": {
|
||||
"interval": 30,
|
||||
"format": "{used:0.1f}G/{total:0.1f}G "
|
||||
}
|
||||
}
|
|
@ -1,101 +0,0 @@
|
|||
|
||||
@define-color color-base-bg #323232;
|
||||
@define-color color-base-fg #ddd;
|
||||
|
||||
@define-color electric-magenta #f268b3;
|
||||
@define-color electric-green #1cd180;
|
||||
|
||||
* {
|
||||
border: none;
|
||||
border-radius: 0;
|
||||
min-height:0;
|
||||
}
|
||||
|
||||
window#waybar {
|
||||
background: @color-base-bg ;
|
||||
color: @color-base-fg;
|
||||
font-family: "Fira Code Nerd Font";
|
||||
font-size: 12px;
|
||||
}
|
||||
|
||||
button,
|
||||
button:disabled,label:disabled{
|
||||
color:inherit;
|
||||
}
|
||||
|
||||
button:hover{
|
||||
background:none;
|
||||
box-shadow:inherit;
|
||||
box-shadow:inherit;
|
||||
text-shadow:inherit;
|
||||
text-shadow:inherit;
|
||||
border-top:none;
|
||||
}
|
||||
#workspaces {
|
||||
color:#fff;
|
||||
}
|
||||
#workspaces button {
|
||||
margin:0 3px;
|
||||
padding:4px 4px;
|
||||
color:#9c9c9c;
|
||||
border-bottom: 1px solid transparent;
|
||||
}
|
||||
|
||||
#workspaces button:hover {
|
||||
box-shadow:inherit;
|
||||
text-shadow:inherit;
|
||||
color: @electric-magenta;
|
||||
border-bottom: 1px solid @electric-magenta;
|
||||
}
|
||||
|
||||
#workspaces button.focused {
|
||||
background:#1cd180 ;
|
||||
color:#000;
|
||||
}
|
||||
#workspaces button.visible:not(.focused) {
|
||||
color: @electric-green;
|
||||
border-color: @electric-green;
|
||||
}
|
||||
|
||||
#clock,
|
||||
#cpu,
|
||||
#memory,
|
||||
#backlight,
|
||||
#network,
|
||||
#tray,
|
||||
#mode,
|
||||
#battery,
|
||||
#idle_inhibitor {
|
||||
padding: 2px 4px;
|
||||
margin: 0;
|
||||
background-color: transparent;
|
||||
}
|
||||
|
||||
#mode{
|
||||
background:red;
|
||||
font-weight:bold;
|
||||
}
|
||||
#pulseaudio {}
|
||||
#pulseaudio.muted {
|
||||
color:#f268b3;
|
||||
}
|
||||
|
||||
#battery.discharging {
|
||||
color: @color-base-fg;
|
||||
border-bottom: none;
|
||||
}
|
||||
|
||||
#battery.charging, #battery.plugged {
|
||||
border-bottom: 1px solid @electric-green;
|
||||
color: @electric-green;
|
||||
}
|
||||
|
||||
#battery.critical:not(.charging) {
|
||||
border-color: @electric-magenta;
|
||||
color: @electric-magenta;
|
||||
}
|
||||
|
||||
#tray {
|
||||
font-family: "DejaVu Sans";
|
||||
font-size: 12px;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue