Initial commit
This commit is contained in:
166
waybar/config
Normal file
166
waybar/config
Normal file
@@ -0,0 +1,166 @@
|
||||
{
|
||||
"name": "float",
|
||||
"layer": "top",
|
||||
"position": "bottom",
|
||||
"exclusive": false,
|
||||
"passthrough": false,
|
||||
"gtk-layer-shell": true,
|
||||
"margin-right": 10,
|
||||
"margin-bottom": 0,
|
||||
"margin-top" : 0,
|
||||
"margin-left": 0,
|
||||
"margin-right": 0,
|
||||
"height" : 16,
|
||||
"modules-left": [
|
||||
],
|
||||
"modules-center": [
|
||||
],
|
||||
"modules-right": [
|
||||
"hyprland/workspaces",
|
||||
"custom/cpu",
|
||||
"custom/mem",
|
||||
"custom/battery",
|
||||
"tray",
|
||||
"clock"
|
||||
],
|
||||
"hyprland/window": {
|
||||
"format": "{}",
|
||||
"max-length": 35,
|
||||
"rewrite": {
|
||||
"": "Harsh"
|
||||
},
|
||||
"separate-outputs": true,
|
||||
},
|
||||
"hyprland/workspaces": {
|
||||
"format": "{icon}",
|
||||
"format-icons": {
|
||||
"a_social": " ",
|
||||
"b_mail": " ",
|
||||
"c_terminal": " ",
|
||||
"11": "1",
|
||||
"12": "2",
|
||||
"13": "3",
|
||||
"14": "4",
|
||||
"15": "5",
|
||||
"16": "6",
|
||||
"17": "7",
|
||||
"18": "8",
|
||||
"19": "9",
|
||||
"20": "0",
|
||||
"21": "1",
|
||||
"22": "2",
|
||||
"23": "3",
|
||||
"24": "4",
|
||||
"25": "5",
|
||||
"26": "6",
|
||||
"27": "7",
|
||||
"28": "8",
|
||||
"29": "9",
|
||||
"30": "0",
|
||||
"31": "1",
|
||||
"32": "2",
|
||||
"33": "3",
|
||||
"34": "4",
|
||||
"35": "5",
|
||||
"36": "6",
|
||||
"37": "7",
|
||||
"38": "8",
|
||||
"39": "9",
|
||||
"40": "0",
|
||||
},
|
||||
"on-click": "activate",
|
||||
"sort-by-number": true,
|
||||
"persistent-workspaces": {
|
||||
"eDP-1": [11, 12, 13, 14, 15, 16, 17, 18, 19, 20],
|
||||
"DP-3": [11, 12, 13, 14, 15, 16, 17, 18, 19, 20],
|
||||
"DP-2": [21, 22, 23, 24, 25, 26, 27, 28, 29, 30],
|
||||
"HDMI-A-1": [31, 32, 33, 34, 35, 36, 37, 38, 39, 40]
|
||||
},
|
||||
"show-special": true
|
||||
},
|
||||
"clock": {
|
||||
"format": "{:L%A %d %B %H:%M}",
|
||||
"tooltip-format": "<big>{:%Y %B}</big>\n<tt><small>{calendar}</small></tt>",
|
||||
"format-alt": "{}",
|
||||
"interval": 1
|
||||
},
|
||||
"battery": {
|
||||
"states": {
|
||||
"warning": 30,
|
||||
"critical": 15
|
||||
},
|
||||
"format": "{capacity}% {icon}",
|
||||
"format-full": "{icon} {capacity}%",
|
||||
"format-charging": " {capacity}%",
|
||||
"format-plugged": " {capacity}%",
|
||||
"format-alt": "{time} {icon}",
|
||||
"format-icons": ["", "", "", "", ""]
|
||||
},
|
||||
"pulseaudio#1": {
|
||||
"format": "{volume}% {icon}",
|
||||
"format-bluetooth": "{volume}% {icon} {format_source}",
|
||||
"format-bluetooth-muted": " {icon} {format_source}",
|
||||
"format-muted": "",
|
||||
"format-icons": {
|
||||
"headphone": "",
|
||||
"hands-free": "",
|
||||
"headset": "",
|
||||
"phone": "",
|
||||
"portable": "",
|
||||
"car": "",
|
||||
"default": ["", "", ""]
|
||||
},
|
||||
"on-click-right": "pavucontrol",
|
||||
"on-click": "wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle",
|
||||
"on-scroll-up": "wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%+",
|
||||
"on-scroll-down": "wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%-"
|
||||
},
|
||||
"pulseaudio#2": {
|
||||
"format": "{format_source}",
|
||||
"format-bluetooth": "{volume}% {icon}",
|
||||
"format-muted": "{format_source}",
|
||||
"format-source": "{volume}% ",
|
||||
"format-source-muted": "",
|
||||
"format-icons": {
|
||||
"headphones": "",
|
||||
"handsfree": "",
|
||||
"headset": "",
|
||||
"phone": "",
|
||||
"portable": "",
|
||||
"car": "",
|
||||
"default": [
|
||||
"",
|
||||
"",
|
||||
""
|
||||
]
|
||||
},
|
||||
"on-click-right": "pavucontrol",
|
||||
"on-click": "wpctl set-mute @DEFAULT_AUDIO_SOURCE@ toggle",
|
||||
"on-scroll-up": "wpctl set-volume @DEFAULT_AUDIO_SOURCE@ 5%+",
|
||||
"on-scroll-down": "wpctl set-volume @DEFAULT_AUDIO_SOURCE@ 5%-"
|
||||
},
|
||||
"idle_inhibitor": {
|
||||
"format": "{icon}",
|
||||
"format-icons": {
|
||||
"activated": "",
|
||||
"deactivated": ""
|
||||
}
|
||||
},
|
||||
"tray": {
|
||||
"icon-size": 16,
|
||||
"spacing": 5
|
||||
},
|
||||
"custom/cpu": {
|
||||
"exec": "sed '1q;d' ~/.config/dotfiles/hypr/.stat.txt",
|
||||
"restart-interval": 2
|
||||
},
|
||||
"custom/mem": {
|
||||
"exec": "sed '2q;d' ~/.config/dotfiles/hypr/.stat.txt",
|
||||
"restart-interval": 2
|
||||
},
|
||||
"custom/battery": {
|
||||
"exec": "sed '3q;d' ~/.config/dotfiles/hypr/.stat.txt",
|
||||
"return-type": "json",
|
||||
"restart-interval": 2
|
||||
}
|
||||
}
|
||||
26
waybar/macchiato.css
Normal file
26
waybar/macchiato.css
Normal file
@@ -0,0 +1,26 @@
|
||||
@define-color rosewater #f4dbd6;
|
||||
@define-color flamingo #f0c6c6;
|
||||
@define-color pink #f5bde6;
|
||||
@define-color mauve #c6a0f6;
|
||||
@define-color red #ed8796;
|
||||
@define-color maroon #ee99a0;
|
||||
@define-color peach #f5a97f;
|
||||
@define-color yellow #eed49f;
|
||||
@define-color green #a6da95;
|
||||
@define-color teal #8bd5ca;
|
||||
@define-color sky #91d7e3;
|
||||
@define-color sapphire #7dc4e4;
|
||||
@define-color blue #8aadf4;
|
||||
@define-color lavender #b7bdf8;
|
||||
@define-color text #cad3f5;
|
||||
@define-color subtext1 #b8c0e0;
|
||||
@define-color subtext0 #a5adcb;
|
||||
@define-color overlay2 #939ab7;
|
||||
@define-color overlay1 #8087a2;
|
||||
@define-color overlay0 #6e738d;
|
||||
@define-color surface2 #5b6078;
|
||||
@define-color surface1 #494d64;
|
||||
@define-color surface0 #363a4f;
|
||||
@define-color base #24273a;
|
||||
@define-color mantle #1e2030;
|
||||
@define-color crust #181926;
|
||||
179
waybar/style.css
Normal file
179
waybar/style.css
Normal file
@@ -0,0 +1,179 @@
|
||||
@import "macchiato.css";
|
||||
|
||||
window#waybar {
|
||||
opacity: 0.3;
|
||||
}
|
||||
|
||||
|
||||
window#waybar.full {
|
||||
background: @bar-bg;
|
||||
}
|
||||
|
||||
window#waybar.float {
|
||||
background-color: transparent;
|
||||
}
|
||||
|
||||
* {
|
||||
font-family: "Ubuntu Mono Nerd Font", Roboto, Helvetica, Arial, sans-serif;
|
||||
font-size: 14px;
|
||||
min-height: 0px;
|
||||
}
|
||||
|
||||
window#waybar {
|
||||
background-color: rgba(0, 0, 0, 0);
|
||||
border-radius: 13px;
|
||||
transition-property: background-color;
|
||||
transition-duration: .5s;
|
||||
}
|
||||
|
||||
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 */
|
||||
button:hover {
|
||||
background: inherit;
|
||||
}
|
||||
|
||||
#workspaces button {
|
||||
padding: 0px 2px;
|
||||
background-color: white;
|
||||
color: #000000;
|
||||
border-radius: 50px;
|
||||
border-color: transparent;
|
||||
border: 1px solid;
|
||||
border-color: transparent;
|
||||
}
|
||||
|
||||
#workspaces button.empty {
|
||||
color: white;
|
||||
background-color: transparent;
|
||||
}
|
||||
|
||||
#workspaces button.active {
|
||||
color: black;
|
||||
font-weight: bold;
|
||||
background-color: @green;
|
||||
}
|
||||
|
||||
#workspaces button.active.empty {
|
||||
font-weight: bold;
|
||||
background-color: transparent;
|
||||
border-color: @green;
|
||||
color: @green;
|
||||
}
|
||||
|
||||
#workspaces button.active:hover {
|
||||
background-color: @green;
|
||||
}
|
||||
|
||||
#workspaces button.focused {
|
||||
background-color: @lavender;
|
||||
box-shadow: inset 0 -3px #ffffff;
|
||||
}
|
||||
|
||||
#workspaces button.urgent {
|
||||
background-color: #eb4d4b;
|
||||
}
|
||||
|
||||
#mode {
|
||||
background-color: #64727D;
|
||||
box-shadow: inset 0 -3px #ffffff;
|
||||
}
|
||||
|
||||
#clock,
|
||||
#battery,
|
||||
#cpu,
|
||||
#memory,
|
||||
#temperature,
|
||||
#network,
|
||||
#pulseaudio,
|
||||
#idle_inhibitor,
|
||||
#custom-cpu,
|
||||
#custom-mem,
|
||||
#custom-battery {
|
||||
padding: 0 10px;
|
||||
}
|
||||
|
||||
#custom-cpu {
|
||||
color: @red;
|
||||
}
|
||||
|
||||
#custom-mem {
|
||||
color: @blue;
|
||||
}
|
||||
|
||||
#custom-battery.charging {
|
||||
color: @green;
|
||||
}
|
||||
|
||||
#custom-battery.low {
|
||||
color: @yellow;
|
||||
}
|
||||
|
||||
#custom-battery.critical {
|
||||
color: @red;
|
||||
}
|
||||
|
||||
#custom-battery.hidden {
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
#network {
|
||||
color: @yellow;
|
||||
}
|
||||
|
||||
#temperature {
|
||||
color: @sky;
|
||||
}
|
||||
|
||||
#battery {
|
||||
color: @green;
|
||||
}
|
||||
|
||||
#clock {
|
||||
color: @white;
|
||||
}
|
||||
|
||||
#window {
|
||||
color: @rosewater;
|
||||
}
|
||||
|
||||
#idle_inhibitor {
|
||||
color: @teal;
|
||||
}
|
||||
|
||||
.modules-right {
|
||||
background-color: @base;
|
||||
border-radius: 15px;
|
||||
}
|
||||
|
||||
#battery.charging,
|
||||
#battery.plugged {
|
||||
color: @sapphire;
|
||||
}
|
||||
|
||||
@keyframes blink {
|
||||
to {
|
||||
color: #000000;
|
||||
}
|
||||
}
|
||||
|
||||
/* Using steps() instead of linear as a timing function to limit cpu usage */
|
||||
#battery.critical:not(.charging) {
|
||||
background-color: #f53c3c;
|
||||
color: #ffffff;
|
||||
animation-name: blink;
|
||||
animation-duration: 0.5s;
|
||||
animation-timing-function: steps(12);
|
||||
animation-iteration-count: infinite;
|
||||
animation-direction: alternate;
|
||||
}
|
||||
|
||||
label:focus {
|
||||
background-color: #000000;
|
||||
}
|
||||
Reference in New Issue
Block a user