Initial commit
This commit is contained in:
commit
ff8fa55617
Binary file not shown.
After Width: | Height: | Size: 7.8 KiB |
|
@ -0,0 +1,274 @@
|
||||||
|
{ //
|
||||||
|
// "layer": "top", // Waybar at top layer
|
||||||
|
"position": "bottom", // Waybar position (top|bottom|left|right)
|
||||||
|
"height": 24, // Waybar height (to be removed for auto height)
|
||||||
|
// "width": 1280, // Waybar width
|
||||||
|
|
||||||
|
// Choose the order of the modules
|
||||||
|
"modules-left": [
|
||||||
|
"sway/workspaces",
|
||||||
|
// "sway/language",
|
||||||
|
"sway/mode",
|
||||||
|
"mpd"
|
||||||
|
//"custom/media",
|
||||||
|
],
|
||||||
|
"modules-center": [
|
||||||
|
"tray", "idle_inhibitor"
|
||||||
|
//"sway/window",
|
||||||
|
],
|
||||||
|
"modules-right": [
|
||||||
|
"network#bridge",
|
||||||
|
"network#wifi", "temperature#wifi",
|
||||||
|
"cpu", "temperature#cpu",
|
||||||
|
// "custom/gpu-usage", "temperature#igpu",
|
||||||
|
"custom/gpu-usage",
|
||||||
|
"memory",
|
||||||
|
"disk", "temperature#nvme",
|
||||||
|
"pulseaudio", "clock"
|
||||||
|
],
|
||||||
|
|
||||||
|
// Modules configuration
|
||||||
|
"sway/workspaces": {
|
||||||
|
"disable-scroll": false,
|
||||||
|
"disable-scroll-wraparound": true,
|
||||||
|
"enable-bar-scroll": true,
|
||||||
|
"all-outputs": false,
|
||||||
|
"format": "{icon} {name}",
|
||||||
|
"format-icons": {"urgent": "", "focused": "", "default": ""}
|
||||||
|
//"format-icons": {"1": "", "2": "", "3": "", "4": "", "5": "", "urgent": "", "focused": "", "default": ""}
|
||||||
|
},
|
||||||
|
"sway/mode": {
|
||||||
|
"format": "<span style=\"italic\">{}</span>"
|
||||||
|
},
|
||||||
|
"mpd": {
|
||||||
|
"format": "{stateIcon} {consumeIcon}{randomIcon}{repeatIcon}{singleIcon}{filename} ({elapsedTime:%M:%S}/{totalTime:%M:%S}) ⸨{songPosition}|{queueLength}⸩", //
|
||||||
|
"format-disconnected": "Disconnected", //
|
||||||
|
"format-stopped": "{consumeIcon}{randomIcon}{repeatIcon}{singleIcon}Stopped", //
|
||||||
|
"unknown-tag": "",
|
||||||
|
"max-length": 70,
|
||||||
|
"interval": 2,
|
||||||
|
"consume-icons": {"on": " "},
|
||||||
|
"random-icons": {
|
||||||
|
"off": "<span color=\"#f53c3c\"></span> ",
|
||||||
|
"on": " "
|
||||||
|
},
|
||||||
|
"repeat-icons": {"on": " "},
|
||||||
|
"single-icons": {"on": "1 "},
|
||||||
|
"state-icons": {
|
||||||
|
"paused": "",
|
||||||
|
"playing": ""
|
||||||
|
},
|
||||||
|
"tooltip-format": "MPD (connected)",
|
||||||
|
"tooltip-format-disconnected": "MPD (disconnected)"
|
||||||
|
},
|
||||||
|
"idle_inhibitor": {
|
||||||
|
"format": "{icon}",
|
||||||
|
"format-icons": {
|
||||||
|
"activated": "",
|
||||||
|
"deactivated": ""
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"tray": {
|
||||||
|
// "icon-size": 21,
|
||||||
|
"spacing": 5
|
||||||
|
},
|
||||||
|
"clock": {
|
||||||
|
// "timezone": "America/New_York",
|
||||||
|
// "timezone": "",
|
||||||
|
"locale": "ja_JP.utf8",
|
||||||
|
"tooltip-format": "<big>{:%Y %B}</big>\n<tt><small>{calendar}</small></tt>",
|
||||||
|
"format": "{:%A %d %B %H:%M:%S %Z}",
|
||||||
|
"format-alt": "{:%c}",
|
||||||
|
"interval": 1
|
||||||
|
},
|
||||||
|
"cpu": {
|
||||||
|
// "format": "{usage:3}%", //
|
||||||
|
"format": " {usage:3}%",
|
||||||
|
// "min-length": 5,
|
||||||
|
// "max-length": 5,
|
||||||
|
"tooltip": true,
|
||||||
|
"interval": 1
|
||||||
|
},
|
||||||
|
"custom/gpu-usage": {
|
||||||
|
//"exec": "cat /sys/class/hwmon/hwmon1/device/gpu_busy_percent",
|
||||||
|
// "exec": "cat /sys/class/drm/card0/device/gpu_busy_percent",
|
||||||
|
// "exec": "sed -e :a -e 's/^.\\{1,3\\}$/ &/;ta' /sys/class/drm/card*/device/gpu_busy_percent",
|
||||||
|
// // "format": "GPU: {}%",
|
||||||
|
// "format": "{}%",
|
||||||
|
//"return-type": "",
|
||||||
|
// "min-length": 5,
|
||||||
|
// "max-length": 5,
|
||||||
|
"exec": "/home/luke/.config/waybar/gpu_monitor",
|
||||||
|
"interval": 1
|
||||||
|
},
|
||||||
|
"memory": {
|
||||||
|
"format": " {avail:0.1f} GiB free", // when fontawesome updates to 5.0.13, otherwise
|
||||||
|
"format-alt": " {used:0.1f}/{total:0.1f} GiB",
|
||||||
|
"interval": 5
|
||||||
|
},
|
||||||
|
"disk": {
|
||||||
|
"interval": 15,
|
||||||
|
"format": " {free} free", //
|
||||||
|
"format-alt": " {used} used, {free} free",
|
||||||
|
"path": "/"
|
||||||
|
},
|
||||||
|
"temperature": {
|
||||||
|
//k10temp-pci-00c3
|
||||||
|
// "thermal-zone": 2,
|
||||||
|
// "hwmon-path": "/sys/class/hwmon/hwmon2/temp1_input",
|
||||||
|
"hwmon-path": "/sys/class/drm/card0/device/hwmon/hwmon1/temp1_input",
|
||||||
|
"critical-threshold": 80,
|
||||||
|
// "format-critical": "{temperatureC}°C {icon}",
|
||||||
|
//"format": "{icon} {temperatureC} °C",
|
||||||
|
"format": " {temperatureC}°C",
|
||||||
|
"format-icons": ["", "", ""],
|
||||||
|
"interval": 1
|
||||||
|
},
|
||||||
|
"temperature#cpu": {
|
||||||
|
//k10temp-pci-00c3
|
||||||
|
// "hwmon-path": "/sys/class/hwmon/hwmon2/temp1_input",
|
||||||
|
"hwmon-path-abs": "/sys/devices/pci0000:00/0000:00:18.3/hwmon",
|
||||||
|
"input-filename": "temp1_input",
|
||||||
|
"critical-threshold": 92,
|
||||||
|
//°C
|
||||||
|
"format": " {temperatureC}℃",
|
||||||
|
"format-icons": ["", "", ""],
|
||||||
|
"interval": 1
|
||||||
|
},
|
||||||
|
"temperature#igpu": {
|
||||||
|
// "hwmon-path": "/sys/class/drm/card0/device/hwmon/hwmon1/temp1_input",
|
||||||
|
"hwmon-path-abs": "/sys/devices/pci0000:00/0000:00:08.1/0000:08:00.0/hwmon",
|
||||||
|
"input-filename": "temp1_input",
|
||||||
|
"critical-threshold": 80,
|
||||||
|
"format": " {temperatureC}℃",
|
||||||
|
"format-icons": ["", "", ""],
|
||||||
|
"interval": 1
|
||||||
|
},
|
||||||
|
"temperature#dgpu": {
|
||||||
|
// "hwmon-path": "/sys/class/drm/card1/device/hwmon/hwmon1/temp1_input",
|
||||||
|
"hwmon-path-abs": "/sys/devices/pci0000:00/0000:00:02.3/0000:05:00.0/0000:06:00.0/0000:07:00.0/hwmon",
|
||||||
|
"input-filename": "temp1_input",
|
||||||
|
"critical-threshold": 80,
|
||||||
|
"format": " {temperatureC}℃",
|
||||||
|
"format-icons": ["", "", ""],
|
||||||
|
"interval": 1
|
||||||
|
},
|
||||||
|
"temperature#nvme": {
|
||||||
|
//nvme-pci-0100
|
||||||
|
"hwmon-path": "/sys/class/nvme/nvme0/hwmon0/temp1_input",
|
||||||
|
"critical-threshold": 80,
|
||||||
|
"format": " {temperatureC}℃",
|
||||||
|
"format-icons": ["", "", ""],
|
||||||
|
"interval": 1
|
||||||
|
},
|
||||||
|
"temperature#wifi": {
|
||||||
|
//iwlwifi_1-virtual-0
|
||||||
|
// "hwmon-path": "/sys/class/hwmon/hwmon3/temp1_input",
|
||||||
|
"hwmon-path": "/sys/class/hwmon/hwmon4/temp1_input",
|
||||||
|
// "hwmon-path-abs": "/sys/devices/virtual/thermal/thermal_zone0/",
|
||||||
|
// "input-filename": "temp1_input",
|
||||||
|
"critical-threshold": 80,
|
||||||
|
"format": " {temperatureC}℃",
|
||||||
|
"format-icons": ["", "", ""],
|
||||||
|
"interval": 1
|
||||||
|
},
|
||||||
|
"backlight": {
|
||||||
|
// "device": "acpi_video1",
|
||||||
|
"format": "{percent}% {icon}",
|
||||||
|
"format-icons": ["", ""]
|
||||||
|
},
|
||||||
|
"battery": {
|
||||||
|
"states": {
|
||||||
|
// "good": 95,
|
||||||
|
"warning": 30,
|
||||||
|
"critical": 15
|
||||||
|
},
|
||||||
|
"format": "{capacity}% {icon}",
|
||||||
|
"format-charging": "{capacity}% ",
|
||||||
|
"format-plugged": "{capacity}% ",
|
||||||
|
"format-alt": "{time} {icon}",
|
||||||
|
// "format-good": "", // An empty format will hide the module
|
||||||
|
// "format-full": "",
|
||||||
|
"format-icons": ["", "", "", "", ""]
|
||||||
|
},
|
||||||
|
"battery#bat2": {
|
||||||
|
"bat": "BAT2"
|
||||||
|
},
|
||||||
|
"network": {
|
||||||
|
// "interface": "wlp2*", // (Optional) To force the use of this interface
|
||||||
|
"format-wifi": " {essid} ({signalStrength}%)",
|
||||||
|
"format-ethernet": " {ifname}: {ipaddr}/{cidr} ",
|
||||||
|
"format-linked": "{ifname} (No IP) ",
|
||||||
|
"format-disconnected": "Disconnected ⚠",
|
||||||
|
"format-alt": "{ifname}: {ipaddr}/{cidr}"
|
||||||
|
},
|
||||||
|
"network#bridge": {
|
||||||
|
"interface": "bridge_wired", // (Optional) To force the use of this interface
|
||||||
|
"format-wifi": " {essid} ({signalStrength}%)",
|
||||||
|
"format-ethernet": " br: {ipaddr} ",
|
||||||
|
"format-linked": "br (No IP) ",
|
||||||
|
"format-disconnected": "Disconnected ⚠",
|
||||||
|
"format-alt": "br: {ipaddr}/{cidr}"
|
||||||
|
},
|
||||||
|
"network#GBE": {
|
||||||
|
"interface": "enp3s0", // (Optional) To force the use of this interface
|
||||||
|
"format-wifi": " {essid} ({signalStrength}%)",
|
||||||
|
"format-ethernet": " {ifname}: {ipaddr} ",
|
||||||
|
"format-linked": "{ifname} (No IP) ",
|
||||||
|
"format-disconnected": "Disconnected ⚠",
|
||||||
|
"format-alt": "{ifname}: {ipaddr}/{cidr}"
|
||||||
|
},
|
||||||
|
"network#2.5GBE": {
|
||||||
|
"interface": "eno1", // (Optional) To force the use of this interface
|
||||||
|
"format-wifi": " {essid} ({signalStrength}%)",
|
||||||
|
"format-ethernet": " {ifname}: {ipaddr} ",
|
||||||
|
"format-linked": "{ifname} (No IP) ",
|
||||||
|
"format-disconnected": "Disconnected ⚠",
|
||||||
|
"format-alt": "{ifname}: {ipaddr}/{cidr}"
|
||||||
|
},
|
||||||
|
"network#wifi": {
|
||||||
|
"interface": "wlp*", // (Optional) To force the use of this interface
|
||||||
|
"format-wifi": " {essid} ({signalStrength}%)",
|
||||||
|
"format-disconnected": "Disconnected ⚠",
|
||||||
|
"format-alt": "{ifname}: {ipaddr}/{cidr}"
|
||||||
|
},
|
||||||
|
"pulseaudio": {
|
||||||
|
// "scroll-step": 1, // %, can be a float
|
||||||
|
"format": "{volume}% {icon} {format_source}",
|
||||||
|
"format-bluetooth": "{volume}% {icon} {format_source}",
|
||||||
|
"format-bluetooth-muted": " {icon} {format_source}",
|
||||||
|
"format-muted": " {format_source}",
|
||||||
|
"format-source": "{volume}% ",
|
||||||
|
"format-source-muted": "",
|
||||||
|
"format-icons": {
|
||||||
|
"headphone": "",
|
||||||
|
"hands-free": "",
|
||||||
|
"headset": "",
|
||||||
|
"phone": "",
|
||||||
|
"portable": "",
|
||||||
|
"car": "",
|
||||||
|
"default": ["", "", ""]
|
||||||
|
},
|
||||||
|
"on-click": "pavucontrol"
|
||||||
|
},
|
||||||
|
"custom/media": {
|
||||||
|
"format": "{icon}{}",
|
||||||
|
"return-type": "json",
|
||||||
|
"format-icons": {"Playing": " ", "Paused": " "},
|
||||||
|
"max-length":70,
|
||||||
|
"exec": "playerctl metadata --format '{\"text\": \"{{title}}\", \"tooltip\": \"{{playerName}} : {{title}}\", \"alt\": \"{{status}}\", \"class\": \"{{status}}\"}' -F",
|
||||||
|
"on-click": "playerctl play-pause",
|
||||||
|
}
|
||||||
|
//"custom/media": {
|
||||||
|
// "format": "{icon} {}",
|
||||||
|
// "return-type": "json",
|
||||||
|
// "max-length": 40,
|
||||||
|
// "format-icons": {
|
||||||
|
// "spotify": "",
|
||||||
|
// "default": "🎜"
|
||||||
|
// },
|
||||||
|
// "escape": true,
|
||||||
|
// "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
|
||||||
|
//}
|
||||||
|
}
|
File diff suppressed because one or more lines are too long
After Width: | Height: | Size: 20 KiB |
|
@ -0,0 +1,217 @@
|
||||||
|
* {
|
||||||
|
border: none;
|
||||||
|
border-radius: 0;
|
||||||
|
/* `otf-font-awesome` is required to be installed for icons */
|
||||||
|
/*font-family: Roboto, Helvetica, Arial, sans-serif;*/
|
||||||
|
font-family: Ubuntu, Noto, Helvetica, Arial, sans-serif;
|
||||||
|
font-size: 14px;
|
||||||
|
min-height: 0;
|
||||||
|
margin-right: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
window#waybar {
|
||||||
|
background-color: rgba(43, 48, 59, 0.35);
|
||||||
|
border-bottom: 3px solid rgba(100, 114, 125, 0.35);
|
||||||
|
color: #ffffff;
|
||||||
|
transition-property: background-color;
|
||||||
|
transition-duration: .5s;
|
||||||
|
}
|
||||||
|
|
||||||
|
window#waybar.hidden {
|
||||||
|
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;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* If workspaces is the leftmost module, omit left margin */
|
||||||
|
.modules-left > widget:first-child > #workspaces {
|
||||||
|
margin-left: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* If workspaces is the rightmost module, omit right margin */
|
||||||
|
.modules-right > widget:last-child > #workspaces, #clock {
|
||||||
|
margin-right: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
#workspaces button {
|
||||||
|
padding: 0 5px;
|
||||||
|
background-color: transparent;
|
||||||
|
color: #ffffff;
|
||||||
|
/* Use box-shadow instead of border so the text isn't offset */
|
||||||
|
box-shadow: inset 0 -3px transparent;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* https://github.com/Alexays/Waybar/wiki/FAQ#the-workspace-buttons-have-a-strange-hover-effect */
|
||||||
|
#workspaces button:hover {
|
||||||
|
background: rgba(0, 0, 0, 0.2);
|
||||||
|
box-shadow: inset 0 -3px #ffffff;
|
||||||
|
}
|
||||||
|
|
||||||
|
#workspaces button.focused {
|
||||||
|
background-color: #64727D;
|
||||||
|
box-shadow: inset 0 -3px #ffffff;
|
||||||
|
}
|
||||||
|
|
||||||
|
#workspaces button.urgent {
|
||||||
|
background-color: #eb4d4b;
|
||||||
|
}
|
||||||
|
|
||||||
|
#mode {
|
||||||
|
background-color: #64727D;
|
||||||
|
border-bottom: 3px solid #ffffff;
|
||||||
|
}
|
||||||
|
|
||||||
|
#clock,
|
||||||
|
#battery,
|
||||||
|
#cpu,
|
||||||
|
#custom-gpu-usage,
|
||||||
|
#memory,
|
||||||
|
#disk,
|
||||||
|
#temperature,
|
||||||
|
#backlight,
|
||||||
|
#network,
|
||||||
|
#pulseaudio,
|
||||||
|
#custom-media,
|
||||||
|
#tray,
|
||||||
|
#mode,
|
||||||
|
#idle_inhibitor,
|
||||||
|
#mpd {
|
||||||
|
padding: 0 6px;
|
||||||
|
margin-left: 3;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* #window,
|
||||||
|
#workspaces {
|
||||||
|
margin: 0 4px;
|
||||||
|
} */
|
||||||
|
|
||||||
|
#clock {
|
||||||
|
background-color: #64727D;
|
||||||
|
/* font-size: 14px; */
|
||||||
|
}
|
||||||
|
|
||||||
|
#battery {
|
||||||
|
background-color: #ffffff;
|
||||||
|
color: #000000;
|
||||||
|
}
|
||||||
|
|
||||||
|
#battery.charging, #battery.plugged {
|
||||||
|
color: #ffffff;
|
||||||
|
background-color: #26A65B;
|
||||||
|
}
|
||||||
|
|
||||||
|
@keyframes blink {
|
||||||
|
to {
|
||||||
|
background-color: #ffffff;
|
||||||
|
color: #000000;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
#battery.critical:not(.charging) {
|
||||||
|
background-color: #f53c3c;
|
||||||
|
color: #ffffff;
|
||||||
|
animation-name: blink;
|
||||||
|
animation-duration: 0.5s;
|
||||||
|
animation-timing-function: linear;
|
||||||
|
animation-iteration-count: infinite;
|
||||||
|
animation-direction: alternate;
|
||||||
|
}
|
||||||
|
|
||||||
|
label:focus {
|
||||||
|
background-color: #000000;
|
||||||
|
}
|
||||||
|
|
||||||
|
#cpu, #temperature.cpu {background-color: #2eac41;}
|
||||||
|
#cpu {
|
||||||
|
background-image: url('/home/luke/.config/waybar/ryzen.svg');
|
||||||
|
background-position: left;
|
||||||
|
background-repeat: no-repeat;
|
||||||
|
background-size: contain;
|
||||||
|
/* color: #000000; */
|
||||||
|
font-family: Fira Code;
|
||||||
|
}
|
||||||
|
#temperature.cpu {margin-left: 0;}
|
||||||
|
|
||||||
|
#custom-gpu-usage, #temperature.gpu, #temperature.igpu, #temperature.dgpu {background-color: #800000;}
|
||||||
|
#custom-gpu-usage {
|
||||||
|
background-image: url('/home/luke/.config/waybar/Radeon_vega_graphics_badge.png');
|
||||||
|
background-position: left;
|
||||||
|
background-repeat: no-repeat;
|
||||||
|
background-size: contain;
|
||||||
|
/* color: #000000; */
|
||||||
|
font-family: Fira Code;
|
||||||
|
font-size: 9px;
|
||||||
|
}
|
||||||
|
#temperature.gpu, #temperature.igpu, #temperature.dgpu {margin-left: 0;}
|
||||||
|
|
||||||
|
#memory {background-color: #9b59b6;}
|
||||||
|
|
||||||
|
#disk, #temperature.nvme {background-color: #964B00;}
|
||||||
|
#temperature.nvme {margin-left: 0;}
|
||||||
|
|
||||||
|
#backlight {background-color: #90b1b1;}
|
||||||
|
|
||||||
|
#network {background-color: #2980b9;}
|
||||||
|
/* #network.disconnected {background-color: #f53c3c;} */
|
||||||
|
#temperature.wifi {margin-left: 0; background-color: #2980b9;}
|
||||||
|
|
||||||
|
#pulseaudio {
|
||||||
|
background-color: #90a400;
|
||||||
|
/* color: #000000; */
|
||||||
|
}
|
||||||
|
#pulseaudio.muted {
|
||||||
|
background-color: #90b1b1;
|
||||||
|
color: #2a5c45;
|
||||||
|
}
|
||||||
|
|
||||||
|
#custom-media {
|
||||||
|
background-color: #66cc99;
|
||||||
|
color: #2a5c45;
|
||||||
|
min-width: 100px;
|
||||||
|
}
|
||||||
|
|
||||||
|
#custom-media.custom-spotify {background-color: #66cc99;}
|
||||||
|
#custom-media.custom-vlc {background-color: #ffa000;}
|
||||||
|
|
||||||
|
#temperature {background-color: #f0932b;}
|
||||||
|
#temperature.critical {background-color: #eb4d4b;}
|
||||||
|
|
||||||
|
#tray {background-color: #2980b9;}
|
||||||
|
|
||||||
|
#idle_inhibitor {background-color: #2d3436;}
|
||||||
|
#idle_inhibitor.activated {
|
||||||
|
background-color: #ecf0f1;
|
||||||
|
color: #2d3436;
|
||||||
|
}
|
||||||
|
|
||||||
|
#mpd {
|
||||||
|
background-color: #66cc99;
|
||||||
|
color: #2a5c45;
|
||||||
|
}
|
||||||
|
#mpd.disconnected {background-color: #f53c3c;}
|
||||||
|
#mpd.stopped {background-color: #90b1b1;}
|
||||||
|
#mpd.paused {background-color: #51a37a;}
|
||||||
|
|
||||||
|
#language {
|
||||||
|
background: #00b093;
|
||||||
|
color: #740864;
|
||||||
|
padding: 0 5px;
|
||||||
|
margin: 0 5px;
|
||||||
|
min-width: 16px;
|
||||||
|
}
|
Loading…
Reference in New Issue