This commit is contained in:
Stephan Raabe
2023-08-20 11:46:46 +02:00
parent 7fb836bfbb
commit 585834d31d
12 changed files with 205 additions and 88 deletions
+20
View File
@@ -0,0 +1,20 @@
@define-color foreground #bfc0c0;
@define-color background #010304;
@define-color cursor #bfc0c0;
@define-color color0 #010304;
@define-color color1 #325A65;
@define-color color2 #24636E;
@define-color color3 #466D76;
@define-color color4 #35817E;
@define-color color5 #347985;
@define-color color6 #4CAFB5;
@define-color color7 #bfc0c0;
@define-color color8 #404242;
@define-color color9 #325A65;
@define-color color10 #24636E;
@define-color color11 #466D76;
@define-color color12 #35817E;
@define-color color13 #347985;
@define-color color14 #4CAFB5;
@define-color color15 #bfc0c0;
+23 -5
View File
@@ -2,9 +2,12 @@
"layer": "top", // Waybar at top layer
"height": 30, // Waybar height (to be removed for auto height)
"spacing": 4, // Gaps between modules (4px)
"modules-left": ["hyprland/workspaces", "sway/mode", "sway/scratchpad", "custom/media"],
"modules-left": ["custom/appmenu", "wlr/workspaces"],
"modules-center": ["hyprland/window"],
"modules-right": ["idle_inhibitor", "pulseaudio", "cpu", "memory", "keyboard-state", "hyprland/language", "battery", "battery#bat2", "clock", "tray"],
"modules-right": ["hyprland/language", "keyboard-state", "pulseaudio", "cpu", "memory", "battery", "clock", "custom/exit", "tray"],
"wlr/workspaces" : {
"on-click": "activate"
},
//"hyprland/workspaces": {
// "disable-scroll": true,
// "all-outputs": true,
@@ -21,6 +24,21 @@
// "default": ""
// }
//},
"custom/appmenu": {
"format": " ",
"on-click": "~/dotfiles/scripts/applauncher.sh"
},
"custom/exit": {
"format": "",
"on-click": "~/dotfiles/scripts/powermenu-hypr.sh"
},
"custom/reload": {
"format": "Reload",
"on-click": "~/dotfiles/waybar/reload.sh"
},
"hyprland/language": {
"format": "{short}"
},
"keyboard-state": {
"numlock": true,
"capslock": true,
@@ -73,11 +91,11 @@
"format-alt": "{:%Y-%m-%d}"
},
"cpu": {
"format": "{usage}%",
"format": "{usage}%",
"tooltip": false
},
"memory": {
"format": "{}%"
"format": "{}%"
},
"temperature": {
// "thermal-zone": 2,
@@ -120,7 +138,7 @@
},
"pulseaudio": {
// "scroll-step": 1, // %, can be a float
"format": "{volume}% {icon} {format_source}",
"format": "{icon} {volume}%",
"format-bluetooth": "{volume}% {icon} {format_source}",
"format-bluetooth-muted": " {icon} {format_source}",
"format-muted": " {format_source}",
+37 -30
View File
@@ -1,30 +1,24 @@
@import 'colors-waybar.css';
* {
/* `otf-font-awesome` is required to be installed for icons */
font-family: "Fira Sans Semibold", FontAwesome, Roboto, Helvetica, Arial, sans-serif;
font-size: 13px;
font-size: 14px;
border-radius: 4px;
}
window#waybar {
background-color: rgba(43, 48, 59, 0.8);
border-bottom: 3px solid rgba(100, 114, 125, 0.5);
color: #ffffff;
background-color: rgba(0,0,0,0.3);
/* border-bottom: 3px solid rgba(100, 114, 125, 0.5); */
color: #FFFFFF;
transition-property: background-color;
transition-duration: .5s;
border-radius: 0;
}
window#waybar.hidden {
opacity: 0.2;
}
/*
window#waybar.empty {
background-color: transparent;
}
window#waybar.solo {
background-color: #FFFFFF;
}
*/
window#waybar.termite {
background-color: #3F3F3F;
}
@@ -35,32 +29,33 @@ window#waybar.chromium {
}
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 */
/* box-shadow: inset 0 -3px transparent; */
border: none;
border-radius: 0;
}
/* https://github.com/Alexays/Waybar/wiki/FAQ#the-workspace-buttons-have-a-strange-hover-effect */
button:hover {
background: inherit;
box-shadow: inset 0 -3px #ffffff;
box-shadow: inset 0 0px @foreground;
}
#workspaces button {
padding: 0 5px;
background-color: transparent;
color: #ffffff;
}
#workspaces button:hover {
background: rgba(0, 0, 0, 0.2);
background-color: @foreground;
color: @background;
}
#workspaces button.active {
background-color: @color11;
color: #FFFFFF;
}
#workspaces button.focused {
background-color: #64727D;
box-shadow: inset 0 -3px #ffffff;
background-color: @foreground;
}
#workspaces button.urgent {
@@ -88,6 +83,7 @@ button:hover {
#idle_inhibitor,
#scratchpad,
#mpd {
margin: 6px 6px;
padding: 0 10px;
color: #ffffff;
}
@@ -97,18 +93,24 @@ button:hover {
margin: 0 4px;
}
/* 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 {
margin-right: 0;
}
#custom-appmenu {
margin-left:10;
}
#custom-exit {
margin-right: 10px;
}
#clock {
background-color: #64727D;
background-color: @color11;
}
#battery {
@@ -143,12 +145,13 @@ label:focus {
}
#cpu {
background-color: #2ecc71;
color: #000000;
background-color: @foreground;
color: #000000;
}
#memory {
background-color: #9b59b6;
background-color: @foreground;
color:#000000;
}
#disk {
@@ -168,13 +171,15 @@ label:focus {
}
#pulseaudio {
background-color: #f1c40f;
background-color: @foreground;
color: #000000;
}
#pulseaudio.muted {
/*
background-color: #90b1b1;
color: #2a5c45;
*/
}
#wireplumber {
@@ -248,11 +253,13 @@ label:focus {
}
#language {
/*
background: #00b093;
color: #740864;
padding: 0 5px;
margin: 0 5px;
min-width: 16px;
*/
}
#keyboard-state {