Initial Commit
This commit is contained in:
100
waybar/config
Normal file
100
waybar/config
Normal file
@@ -0,0 +1,100 @@
|
||||
{
|
||||
"layer": "top",
|
||||
"position": "top",
|
||||
"height": 35,
|
||||
"spacing": 0,
|
||||
"modules-left": ["hyprland/workspaces", "custom/media"],
|
||||
"modules-center": ["hyprland/window"],
|
||||
"modules-right": ["tray", "pulseaudio", "cpu", "memory", "custom/gpu-usage", "custom/brightness", "battery", "clock", "custom/power"],
|
||||
"hyprland/workspaces": {
|
||||
"format": "{icon}",
|
||||
"on-scroll-up": "hyprctl dispatch workspace e+1",
|
||||
"on-scroll-down": "hyprctl dispatch workspace e-1",
|
||||
"format-icons": {
|
||||
"default": "",
|
||||
"active": "",
|
||||
"1":"1",
|
||||
"2":"2",
|
||||
"3":"3",
|
||||
"4":"4",
|
||||
"5":"5",
|
||||
"6":"6",
|
||||
"7":"7",
|
||||
"8":"8",
|
||||
"9":"9",
|
||||
"10":"10"
|
||||
}
|
||||
},
|
||||
"hyprland/window": {
|
||||
"format": "{}",
|
||||
"separate-outputs": true,
|
||||
"rewrite": {
|
||||
"(.*)Mozilla Firefox": "Firefox",
|
||||
"Alacritty": "Terminal",
|
||||
}
|
||||
},
|
||||
"clock": {
|
||||
"timezone": "Europe/Brussels",
|
||||
"tooltip-format": "<big>{:%Y %B}</big>\n<tt><small>{calendar}</small></tt>",
|
||||
"format-alt": "{:%d-%m-%Y}"
|
||||
},
|
||||
"cpu": {
|
||||
"interval": 2,
|
||||
"format": "CPU {usage}%",
|
||||
"tooltip": false,
|
||||
"on-click": "alacritty -e htop"
|
||||
},
|
||||
"memory": {
|
||||
"interval": 2,
|
||||
"format": "RAM {}%",
|
||||
"on-click": "alacritty -e htop"
|
||||
},
|
||||
"pulseaudio": {
|
||||
"format": "{icon} {volume}% {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": {
|
||||
"default": ["", "", ""]
|
||||
},
|
||||
"on-click": "pavucontrol"
|
||||
},
|
||||
"custom/media": {
|
||||
"interval": 2,
|
||||
"max-length": 50,
|
||||
"return-type": "json",
|
||||
"escape": true,
|
||||
"exec": "playerctlwaybar",
|
||||
"on-click": "playerctl play-pause",
|
||||
"on-scroll-up": "playerctl previous",
|
||||
"on-scroll-down": "playerctl next"
|
||||
},
|
||||
"custom/gpu-usage": {
|
||||
"format": "GPU {}",
|
||||
"exec": "gpu-usage-waybar",
|
||||
"return-type": "json",
|
||||
"on-click": "alacritty -e nvtop",
|
||||
},
|
||||
"custom/brightness": {
|
||||
"format": " {}",
|
||||
"interval": 2,
|
||||
"exec": "brightctl info",
|
||||
"on-click": "brightctl run"
|
||||
},
|
||||
"battery": {
|
||||
"bat": "BAT1",
|
||||
"interval": "60",
|
||||
"states": {
|
||||
"warning": 25,
|
||||
"critical": 10,
|
||||
},
|
||||
"format": "{icon} {capacity}%",
|
||||
"format-icons": ["", "", "", "", ""],
|
||||
},
|
||||
"custom/power": {
|
||||
"format": "",
|
||||
"on-click": "hypedown"
|
||||
}
|
||||
}
|
||||
37
waybar/macchiato.css
Normal file
37
waybar/macchiato.css
Normal file
@@ -0,0 +1,37 @@
|
||||
/*
|
||||
*
|
||||
* Catppuccin Mocha palette
|
||||
* Maintainer: rubyowo
|
||||
*
|
||||
*/
|
||||
|
||||
@define-color base #24273a;
|
||||
@define-color mantle #1e2030;
|
||||
@define-color crust #181926;
|
||||
|
||||
@define-color text #cad3f5;
|
||||
@define-color subtext0 #a5adcb;
|
||||
@define-color subtext1 #b8c0e0;
|
||||
|
||||
@define-color surface0 #363a4f;
|
||||
@define-color surface1 #494d64;
|
||||
@define-color surface2 #5b6078;
|
||||
|
||||
@define-color overlay0 #6e738d;
|
||||
@define-color overlay1 #8087a2;
|
||||
@define-color overlay2 #939ab7;
|
||||
|
||||
@define-color blue #8aadf4;
|
||||
@define-color lavender #b7bdf8;
|
||||
@define-color sapphire #7dc4e4;
|
||||
@define-color sky #91d7e3;
|
||||
@define-color teal #8bd5ca;
|
||||
@define-color green #a6da95;
|
||||
@define-color yellow #eed49f;
|
||||
@define-color peach #f5a97f;
|
||||
@define-color maroon #ee99a0;
|
||||
@define-color red #ed8796;
|
||||
@define-color mauve #c6a0f6;
|
||||
@define-color pink #f5bde6;
|
||||
@define-color flamingo #f0c6c6;
|
||||
@define-color rosewater #f4dbd6;
|
||||
127
waybar/style.css
Normal file
127
waybar/style.css
Normal file
@@ -0,0 +1,127 @@
|
||||
@import "macchiato.css";
|
||||
|
||||
* {
|
||||
font-family: "Hack Nerd Font Mono";
|
||||
font-size: 14px;
|
||||
font-weight: bold;
|
||||
background-color: transparent;
|
||||
}
|
||||
|
||||
#workspaces,
|
||||
#custom-gpu-usage,
|
||||
#custom-media,
|
||||
#cpu,
|
||||
#memory,
|
||||
#clock,
|
||||
#pulseaudio,
|
||||
#window,
|
||||
#custom-brightness,
|
||||
#tray,
|
||||
#battery,
|
||||
#custom-power{
|
||||
background-color: @mantle;
|
||||
border-radius: 15px;
|
||||
padding-top: 2px;
|
||||
padding-bottom: 2px;
|
||||
padding-left: 12px;
|
||||
padding-right: 12px;
|
||||
margin-top: 1px;
|
||||
margin-bottom: 0px;
|
||||
}
|
||||
|
||||
#workspaces {
|
||||
margin-left: 2px;
|
||||
margin-right: 5px;
|
||||
}
|
||||
|
||||
#window {
|
||||
margin-left: 5px;
|
||||
margin-right: 5px;
|
||||
}
|
||||
|
||||
#window,
|
||||
#custom-power{
|
||||
color: @text;
|
||||
}
|
||||
|
||||
window#waybar.empty #window {
|
||||
background-color: transparent;
|
||||
}
|
||||
|
||||
#workspaces button {
|
||||
padding-left: 6px;
|
||||
padding-right: 6px;
|
||||
margin-left: 2px;
|
||||
margin-right: 2px;
|
||||
color: @text;
|
||||
background-color: @surface0;
|
||||
border-radius: 20px;
|
||||
}
|
||||
|
||||
#custom-media {
|
||||
color: @mauve;
|
||||
}
|
||||
|
||||
#custom-gpu-usage {
|
||||
color: @peach;
|
||||
}
|
||||
|
||||
#custom-brightness {
|
||||
color: @maroon;
|
||||
}
|
||||
|
||||
#memory {
|
||||
color: @yellow;
|
||||
}
|
||||
|
||||
#battery {
|
||||
color: @blue;
|
||||
}
|
||||
|
||||
#battery.discharging.warning {
|
||||
color: @peach;
|
||||
}
|
||||
|
||||
#battery.discharging.critical {
|
||||
color: @red;
|
||||
}
|
||||
|
||||
#battry.charging {
|
||||
color: @green;
|
||||
}
|
||||
|
||||
#clock {
|
||||
color: @flamingo;
|
||||
}
|
||||
|
||||
#pulseaudio {
|
||||
color: @sapphire;
|
||||
}
|
||||
|
||||
#pulseaudio.muted {
|
||||
color: @text;
|
||||
}
|
||||
|
||||
#cpu {
|
||||
color: @pink;
|
||||
}
|
||||
|
||||
.modules-right > * > * {
|
||||
margin-left: -4px;
|
||||
margin-right: -4px;
|
||||
}
|
||||
|
||||
|
||||
.modules-right > *:first-child > * {
|
||||
margin-left: 5px;
|
||||
margin-right: -4px;
|
||||
}
|
||||
|
||||
.modules-right > *:last-child > * {
|
||||
margin-right: 2px;
|
||||
margin-left: -4px;
|
||||
}
|
||||
|
||||
tooltip {
|
||||
background-color: black;
|
||||
}
|
||||
150
waybar/style.css.bak
Normal file
150
waybar/style.css.bak
Normal file
@@ -0,0 +1,150 @@
|
||||
@import "macchiato.css";
|
||||
* {
|
||||
/* `otf-font-awesome` is required to be installed for icons */
|
||||
font-family: HackNerdFont;
|
||||
font-size: 14px;
|
||||
}
|
||||
|
||||
window#waybar {
|
||||
background-color: #1E1E2E;
|
||||
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;
|
||||
}
|
||||
|
||||
button {
|
||||
/* Use box-shadow instead of border so the text isn't offset */
|
||||
box-shadow: inset 0 -3px transparent;
|
||||
/* Avoid rounded borders under each button name */
|
||||
border: none;
|
||||
border-radius: 0;
|
||||
}
|
||||
|
||||
/* https://github.com/Alexays/Waybar/wiki/FAQ#the-workspace-buttons-have-a-strange-hover-effect */
|
||||
|
||||
#workspaces button {
|
||||
padding: 0px 10px;
|
||||
border-radius: 5em / 5em;
|
||||
background-color: @surface0;
|
||||
color: @rosewater;
|
||||
margin: 2px;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
|
||||
#cpu,
|
||||
#pulseaudio,
|
||||
.media {
|
||||
padding: 0 10px;
|
||||
color: @mauve;
|
||||
font-weight: bold;
|
||||
margin: 2px;
|
||||
}
|
||||
|
||||
#custom-gpu-usage {
|
||||
padding: 0 10px;
|
||||
color: @red;
|
||||
font-weight: bold;
|
||||
margin: 2px;
|
||||
}
|
||||
|
||||
#memory {
|
||||
color: @yellow;
|
||||
}
|
||||
|
||||
#window,
|
||||
#workspaces {
|
||||
margin: 0 5px;
|
||||
background-color: transparent;
|
||||
font-weight:bold;
|
||||
border-radius: 5em / 5em;
|
||||
padding: 0 10px;
|
||||
color: #444854;
|
||||
}
|
||||
|
||||
|
||||
/* If workspaces is the leftmost module, omit left margin */
|
||||
.modules-left > widget:first-child > #workspaces button {
|
||||
margin-left: 0;
|
||||
}
|
||||
|
||||
/* If workspaces is the rightmost module, omit right margin */
|
||||
.modules-right > widget:last-child > #workspaces {
|
||||
margin-right: 0;
|
||||
}
|
||||
|
||||
#clock {
|
||||
border-top-right-radius: 5em 5em;
|
||||
border-bottom-right-radius: 5em 5em;
|
||||
color: @sky;
|
||||
}
|
||||
|
||||
|
||||
@keyframes blink {
|
||||
to {
|
||||
background-color: #ffffff;
|
||||
color: #000000;
|
||||
}
|
||||
}
|
||||
|
||||
label:focus {
|
||||
background-color: #000000;
|
||||
}
|
||||
|
||||
|
||||
|
||||
#pulseaudio {
|
||||
border-top-left-radius: 5em 5em;
|
||||
border-bottom-left-radius: 5em 5em;
|
||||
color: @red;
|
||||
}
|
||||
|
||||
#pulseaudio.muted {
|
||||
background-color: #90b1b1;
|
||||
color: #2a5c45;
|
||||
}
|
||||
|
||||
#temperature.critical {
|
||||
background-color: #eb4d4b;
|
||||
}
|
||||
|
||||
#temperature {
|
||||
color: @green;
|
||||
}
|
||||
|
||||
#keyboard-state {
|
||||
padding: 0 0px;
|
||||
min-width: 16px;
|
||||
color: @mauve;
|
||||
}
|
||||
|
||||
|
||||
#keyboard-state > label {
|
||||
padding: 0 5px;
|
||||
}
|
||||
|
||||
#keyboard-state > label.locked {
|
||||
background: rgba(0, 0, 0, 0.2);
|
||||
}
|
||||
Reference in New Issue
Block a user