add waybar config for thonkpad
This commit is contained in:
parent
95c29fff71
commit
9748b315ed
0
.config/waybar/conf
Normal file
0
.config/waybar/conf
Normal file
@ -1,28 +1,39 @@
|
|||||||
|
[
|
||||||
|
/*{
|
||||||
|
"name": "secondary",
|
||||||
|
"layer": "top",
|
||||||
|
"height": 16,
|
||||||
|
"width": 1050,
|
||||||
|
"output": "",
|
||||||
|
"modules-left": ["sway/workspaces", "sway/mode"],
|
||||||
|
"modules-center": ["sway/window"],
|
||||||
|
"modules-right": ["clock#date", "clock#time"],
|
||||||
|
|
||||||
|
// Modules for portrait bar
|
||||||
|
|
||||||
|
"clock#time": {
|
||||||
|
"interval": 1,
|
||||||
|
"format": "{:%H:%M:%S}",
|
||||||
|
"tooltip": false
|
||||||
|
},
|
||||||
|
"clock#date": {
|
||||||
|
"interval": 10,
|
||||||
|
"format": "{:%a %b %e %Y}",
|
||||||
|
"tooltip": false
|
||||||
|
}
|
||||||
|
},*/
|
||||||
{
|
{
|
||||||
|
"output": "eDP-1",
|
||||||
"layer": "top", // Waybar at top layer
|
"layer": "top", // Waybar at top layer
|
||||||
"position": "top", // Waybar position (top|bottom|left|right)
|
"position": "top", // Waybar position (top|bottom|left|right)
|
||||||
"height": 16, // Waybar height (to be removed for auto height)
|
"height": 16, // Waybar height (to be removed for auto height)
|
||||||
// "width": 1280, // Waybar width
|
"width": 1920, // Waybar width
|
||||||
// Choose the order of the modules
|
// Choose the order of the modules
|
||||||
"modules-left": ["sway/workspaces", "sway/mode"],
|
"modules-left": ["sway/workspaces", "sway/mode"],
|
||||||
"modules-center": ["sway/window"],
|
"modules-center": ["sway/window"],
|
||||||
"modules-right": ["tray", "pulseaudio", "network", "cpu", "memory", "temperature", "clock#date", "clock#time"],
|
"modules-right": ["tray", "pulseaudio", "network", "cpu", "memory", "temperature", "backlight", "battery", "battery#bat2", "clock#date", "clock#time"],
|
||||||
|
|
||||||
// Modules configuration
|
// Modules configuration
|
||||||
// "sway/workspaces": {
|
|
||||||
// "disable-scroll": true,
|
|
||||||
// "all-outputs": true,
|
|
||||||
// "format": "{name} {icon}",
|
|
||||||
// "format-icons": {
|
|
||||||
// "1": "",
|
|
||||||
// "2": "",
|
|
||||||
// "3": "",
|
|
||||||
// "4": "",
|
|
||||||
// "5": "",
|
|
||||||
// "urgent": "",
|
|
||||||
// "focused": "",
|
|
||||||
// "default": ""
|
|
||||||
// }
|
|
||||||
// },
|
|
||||||
"sway/mode": {
|
"sway/mode": {
|
||||||
"format": "<span style=\"italic\">{}</span>"
|
"format": "<span style=\"italic\">{}</span>"
|
||||||
},
|
},
|
||||||
@ -60,76 +71,87 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"tray": {
|
"tray": {
|
||||||
// "icon-size": 21,
|
"icon-size": 16,
|
||||||
"spacing": 10
|
"spacing": 10
|
||||||
},
|
},
|
||||||
//"clock": {
|
|
||||||
// // "timezone": "America/New_York",
|
|
||||||
// "tooltip-format": "<big>{:%Y %B}</big>\n<tt><small>{calendar}</small></tt>",
|
|
||||||
// "format-alt": "{:%Y-%m-%d}"
|
|
||||||
//},
|
|
||||||
"clock#time": {
|
"clock#time": {
|
||||||
"interval": 1,
|
"interval": 1,
|
||||||
"format": "{:%H:%M:%S}",
|
"format": "{:%H:%M:%S}",
|
||||||
"tooltip": false
|
"tooltip": false
|
||||||
},
|
},
|
||||||
"clock#date": {
|
"clock#date": {
|
||||||
"interval": 10,
|
"interval": 10,
|
||||||
"format": "{:%a %b %e %Y}",
|
"format": "{:%a %b %e}",
|
||||||
"tooltip": false
|
"tooltip": true,
|
||||||
|
"tooltip-format": "{:%a %b %e %Y}"
|
||||||
},
|
},
|
||||||
"cpu": {
|
"cpu": {
|
||||||
"format": " {usage}%",
|
"format": " {usage}%",
|
||||||
"tooltip": false
|
"tooltip": true,
|
||||||
|
"interval": 2
|
||||||
},
|
},
|
||||||
"memory": {
|
"memory": {
|
||||||
"format": "{}%",
|
"format": "{:2}%",
|
||||||
"on-click": "exec kitty htop"
|
"on-click": "exec kitty htop"
|
||||||
},
|
},
|
||||||
"temperature": {
|
"temperature": {
|
||||||
// "thermal-zone": 2,
|
// "thermal-zone": 2,
|
||||||
// "hwmon-path": "/sys/class/hwmon/hwmon2/temp1_input",
|
// "hwmon-path": "/sys/class/hwmon/hwmon2/temp1_input",
|
||||||
"critical-threshold": 80,
|
"critical-threshold": 80,
|
||||||
// "format-critical": "{temperatureC}°C {icon}",
|
|
||||||
"format": "{icon} {temperatureC}°C",
|
"format": "{icon} {temperatureC}°C",
|
||||||
"format-icons": ["", "", ""],
|
"format-icons": ["", "", ""],
|
||||||
"on-click": "exec kitty watch -n 5 sensors"
|
"on-click": "exec kitty watch -n 5 sensors",
|
||||||
|
"tooltip": true
|
||||||
},
|
},
|
||||||
"backlight": {
|
"backlight": {
|
||||||
// "device": "acpi_video1",
|
// "device": "acpi_video1",
|
||||||
"interval": 5,
|
"format": "{icon}{percent}",
|
||||||
"format": "{icon} {percent}%",
|
"format-icons": [""]
|
||||||
"format-icons": ["", ""]
|
|
||||||
},
|
},
|
||||||
"battery": {
|
"battery": {
|
||||||
|
"bat": "BAT0",
|
||||||
"states": {
|
"states": {
|
||||||
// "good": 95,
|
"good": 95,
|
||||||
"warning": 30,
|
"warning": 30,
|
||||||
"critical": 15
|
"critical": 15
|
||||||
},
|
},
|
||||||
"format": "{capacity}% {icon}",
|
"format": "{icon}{capacity}%",
|
||||||
"format-charging": " {capacity}%",
|
"format-charging": "{capacity:3}%",
|
||||||
"format-plugged": " {capacity}%",
|
"format-plugged": "{capacity:3}%",
|
||||||
"format-alt": "{icon}{time}",
|
"format-alt": "{icon}{time}",
|
||||||
// "format-good": "", // An empty format will hide the module
|
"format-good": "", // An empty format will hide the module
|
||||||
// "format-full": "",
|
"format-full": "",
|
||||||
"format-icons": ["", "", "", "", ""]
|
"format-icons": ["", "", "", "", ""]
|
||||||
},
|
},
|
||||||
"battery#bat2": {
|
"battery#bat2": {
|
||||||
"bat": "BAT2"
|
"bat": "BAT1",
|
||||||
|
"states": {
|
||||||
|
"good": 95,
|
||||||
|
"warning": 30,
|
||||||
|
"critical": 15
|
||||||
|
},
|
||||||
|
"format": "{icon}{capacity}%",
|
||||||
|
"format-charging": "{capacity:3}%",
|
||||||
|
"format-plugged": "{capacity:3}%",
|
||||||
|
"format-alt": "{icon}{time}",
|
||||||
|
"format-good": "", // An empty format will hide the module
|
||||||
|
"format-full": "",
|
||||||
|
"format-icons": ["", "", "", "", ""]
|
||||||
},
|
},
|
||||||
"network": {
|
"network": {
|
||||||
// "interface": "wlp2*", // (Optional) To force the use of this interface
|
// "interface": "wlp2*", // (Optional) To force the use of this interface
|
||||||
"format-wifi": " {essid} ({signalStrength}%)",
|
"format-wifi": " {essid} ({signalStrength}%)",
|
||||||
//"format-ethernet": "{ifname}: {ipaddr}/{cidr} ",
|
"format-ethernet": "",
|
||||||
"format-ethernet": " {ipaddr}/{cidr}",
|
|
||||||
"format-linked": " {ifname} (No IP)",
|
"format-linked": " {ifname} (No IP)",
|
||||||
"format-disconnected": "Disconnected ⚠",
|
"format-disconnected": "Disconnected ⚠",
|
||||||
"format-alt": "{ifname}"
|
"format-alt": "{ifname} {ipaddr}/{cidr} ▲{bandwidthUpBits}▼{bandwidthDownBits}",
|
||||||
|
"on-click-right": "exec kitty nmtui",
|
||||||
|
"interval": 1,
|
||||||
|
"tooltip-format": "{ifname} {ipaddr}/{cidr} ▲{bandwidthUpBits}▼{bandwidthDownBits}"
|
||||||
},
|
},
|
||||||
"pulseaudio": {
|
"pulseaudio": {
|
||||||
// "scroll-step": 1, // %, can be a float
|
// "scroll-step": 1, // %, can be a float
|
||||||
"format": "{icon} {volume}% {format_source}",
|
"format": "{icon}{volume:3}% {format_source}",
|
||||||
"format-bluetooth": "{volume}% {icon} {format_source}",
|
"format-bluetooth": "{volume}% {icon} {format_source}",
|
||||||
"format-bluetooth-muted": " {icon} {format_source}",
|
"format-bluetooth-muted": " {icon} {format_source}",
|
||||||
"format-muted": " {format_source}",
|
"format-muted": " {format_source}",
|
||||||
@ -158,4 +180,4 @@
|
|||||||
"exec": "$HOME/.config/waybar/mediaplayer.py 2> /dev/null" // Script in resources folder
|
"exec": "$HOME/.config/waybar/mediaplayer.py 2> /dev/null" // Script in resources folder
|
||||||
// "exec": "$HOME/.config/waybar/mediaplayer.py --player spotify 2> /dev/null" // Filter player based on name
|
// "exec": "$HOME/.config/waybar/mediaplayer.py --player spotify 2> /dev/null" // Filter player based on name
|
||||||
}
|
}
|
||||||
}
|
}]
|
||||||
|
@ -1,17 +1,16 @@
|
|||||||
* {
|
* {
|
||||||
border: none;
|
|
||||||
border-radius: 0;
|
border-radius: 0;
|
||||||
/* `otf-font-awesome` is required to be installed for icons */
|
/* `otf-font-awesome` is required to be installed for icons */
|
||||||
font-family: Cantarell;/*Roboto, Helvetica, Arial, sans-serif; */
|
font-family: 'Anka/Coder';/*Roboto, Helvetica, Arial, sans-serif; */
|
||||||
font-size: 14px;
|
font-size: 14px;
|
||||||
|
font-weight: bold;
|
||||||
min-height: 0;
|
min-height: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
window#waybar {
|
window#waybar {
|
||||||
background-color: transparent;
|
background-color: transparent;
|
||||||
/*background-color: rgba(43, 48, 59, 0.5);*/
|
/* background-color: #002b36; */
|
||||||
/* border-bottom: 3px solid rgba(100, 114, 125, 0.5); */
|
color: #839496;
|
||||||
color: #ffffff;
|
|
||||||
transition-property: background-color;
|
transition-property: background-color;
|
||||||
transition-duration: .5s;
|
transition-duration: .5s;
|
||||||
}
|
}
|
||||||
@ -20,42 +19,23 @@ window#waybar.hidden {
|
|||||||
opacity: 0.2;
|
opacity: 0.2;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
|
||||||
window#waybar.empty {
|
|
||||||
background-color: transparent;
|
|
||||||
}
|
|
||||||
window#waybar.solo {
|
|
||||||
background-color: #FFFFFF;
|
|
||||||
}
|
|
||||||
*/
|
|
||||||
|
|
||||||
window#waybar.termite {
|
|
||||||
background-color: #3F3F3F;
|
|
||||||
}
|
|
||||||
|
|
||||||
window#waybar.chromium {
|
|
||||||
background-color: #000000;
|
|
||||||
border: none;
|
|
||||||
}
|
|
||||||
|
|
||||||
#workspaces button {
|
#workspaces button {
|
||||||
padding: 0 5px;
|
padding: 1px 5px 0px;
|
||||||
background-color: transparent;
|
background-color: transparent;
|
||||||
color: #ffffff;
|
color: #839496;
|
||||||
/* border-bottom: 3px solid transparent; */
|
border-top: 2px solid transparent;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* https://github.com/Alexays/Waybar/wiki/FAQ#the-workspace-buttons-have-a-strange-hover-effect */
|
/* https://github.com/Alexays/Waybar/wiki/FAQ#the-workspace-buttons-have-a-strange-hover-effect */
|
||||||
#workspaces button:hover {
|
#workspaces button:hover {
|
||||||
background: rgba(0, 0, 0, 0.2);
|
background: rgba(0, 0, 0, 0.2);
|
||||||
box-shadow: inherit;
|
box-shadow: inherit;
|
||||||
/* border-bottom: 3px solid #ffffff; */
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#workspaces button.focused {
|
#workspaces button.focused {
|
||||||
background-color: #64727D;
|
background-color: #073642; /*#64727D;*/
|
||||||
/* border-bottom: 3px solid #ffffff; */
|
border-top: 2px solid #839496;
|
||||||
padding: 0 2px;
|
padding: 1px 5px 0px;
|
||||||
}
|
}
|
||||||
|
|
||||||
#workspaces button.urgent {
|
#workspaces button.urgent {
|
||||||
@ -63,8 +43,8 @@ window#waybar.chromium {
|
|||||||
}
|
}
|
||||||
|
|
||||||
#mode {
|
#mode {
|
||||||
background-color: #64727D;
|
padding: 1px 5px 0px;
|
||||||
/* border-bottom: 3px solid #ffffff; */
|
background-color: #073642;
|
||||||
}
|
}
|
||||||
|
|
||||||
#clock,
|
#clock,
|
||||||
@ -75,33 +55,25 @@ window#waybar.chromium {
|
|||||||
#backlight,
|
#backlight,
|
||||||
#network,
|
#network,
|
||||||
#pulseaudio,
|
#pulseaudio,
|
||||||
#custom-media,
|
|
||||||
#tray,
|
#tray,
|
||||||
#idle_inhibitor,
|
#idle_inhibitor,
|
||||||
#mpd {
|
#mpd {
|
||||||
padding: 0 10px;
|
padding: 0 1px 0;
|
||||||
margin: 0 4px;
|
margin: 0 4px 0;
|
||||||
color: #ffffff;
|
color: #839496;
|
||||||
|
background-color: transparent;
|
||||||
}
|
}
|
||||||
|
|
||||||
#clock {
|
#clock {
|
||||||
padding: 0 0px;
|
padding: 0 0 0;
|
||||||
background-color: transparent;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#clock.time {
|
#clock.time {
|
||||||
background-color: transparent;
|
|
||||||
min-width: 60px;
|
min-width: 60px;
|
||||||
}
|
}
|
||||||
#battery {
|
|
||||||
padding: 1px;
|
|
||||||
background-color: transparent;
|
|
||||||
color: #ffffff;
|
|
||||||
}
|
|
||||||
|
|
||||||
#battery.charging {
|
#battery.charging {
|
||||||
color: #26A65B;
|
color: #26A65B;
|
||||||
/* background-color: #26A65B; */
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@keyframes blink {
|
@keyframes blink {
|
||||||
@ -121,99 +93,10 @@ window#waybar.chromium {
|
|||||||
animation-direction: alternate;
|
animation-direction: alternate;
|
||||||
}
|
}
|
||||||
|
|
||||||
label:focus {
|
|
||||||
background-color: #000000;
|
|
||||||
}
|
|
||||||
|
|
||||||
#cpu {
|
|
||||||
padding: 1px;
|
|
||||||
/* background-color: #2ecc71; */
|
|
||||||
color: #fff;
|
|
||||||
}
|
|
||||||
|
|
||||||
#memory {
|
|
||||||
padding: 1px;
|
|
||||||
/* background-color: #9b59b6; */
|
|
||||||
}
|
|
||||||
|
|
||||||
#backlight {
|
|
||||||
padding: 1px;
|
|
||||||
/* background-color: #90b1b1; */
|
|
||||||
}
|
|
||||||
|
|
||||||
#network {
|
|
||||||
padding: 1px;
|
|
||||||
/* background-color: #2980b9; */
|
|
||||||
}
|
|
||||||
|
|
||||||
#network.disconnected {
|
#network.disconnected {
|
||||||
/* background-color: #f53c3c; */
|
color: #f53c3c;
|
||||||
}
|
|
||||||
|
|
||||||
#pulseaudio {
|
|
||||||
padding: 1px;
|
|
||||||
/* background-color: #f1c40f; */
|
|
||||||
/* color: #000000; */
|
|
||||||
}
|
|
||||||
|
|
||||||
#pulseaudio.muted {
|
|
||||||
/* background-color: #90b1b1; */
|
|
||||||
/* color: #2a5c45; */
|
|
||||||
}
|
|
||||||
|
|
||||||
#custom-media {
|
|
||||||
padding: 1px;
|
|
||||||
/* background-color: #66cc99; */
|
|
||||||
/* color: #2a5c45; */
|
|
||||||
/* min-width: 100px; */
|
|
||||||
}
|
|
||||||
|
|
||||||
#custom-media.custom-spotify {
|
|
||||||
background-color: #66cc99;
|
|
||||||
}
|
|
||||||
|
|
||||||
#custom-media.custom-vlc {
|
|
||||||
background-color: #ffa000;
|
|
||||||
}
|
|
||||||
|
|
||||||
#temperature {
|
|
||||||
padding: 1px;
|
|
||||||
/* background-color: #f0932b; */
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#temperature.critical {
|
#temperature.critical {
|
||||||
background-color: #eb4d4b;
|
background-color: #eb4d4b;
|
||||||
}
|
}
|
||||||
|
|
||||||
#tray {
|
|
||||||
padding: 1px;
|
|
||||||
/* background-color: #2980b9; */
|
|
||||||
}
|
|
||||||
|
|
||||||
#idle_inhibitor {
|
|
||||||
padding: 1px;
|
|
||||||
/* background-color: #2d3436; */
|
|
||||||
}
|
|
||||||
|
|
||||||
#idle_inhibitor.activated {
|
|
||||||
/* background-color: #ecf0f1; */
|
|
||||||
/* color: #2d3436; */
|
|
||||||
}
|
|
||||||
|
|
||||||
#mpd {
|
|
||||||
padding: 1px;
|
|
||||||
/* background-color: #66cc99; */
|
|
||||||
/* color: #2a5c45; */
|
|
||||||
}
|
|
||||||
|
|
||||||
#mpd.disconnected {
|
|
||||||
/* background-color: #f53c3c; */
|
|
||||||
}
|
|
||||||
|
|
||||||
#mpd.stopped {
|
|
||||||
/* background-color: #90b1b1; */
|
|
||||||
}
|
|
||||||
|
|
||||||
#mpd.paused {
|
|
||||||
/* background-color: #51a37a; */
|
|
||||||
}
|
|
||||||
|
Loading…
Reference in New Issue
Block a user