feat: Working on waybar some more, right side of the menubar needs work.

This commit is contained in:
2025-09-24 19:31:19 -04:00
parent f10875412a
commit 29dc54f5ae
4 changed files with 40 additions and 230 deletions

View File

@@ -133,7 +133,7 @@ bindl = , XF86AudioPlay, exec, playerctl play-pause
bindl = , XF86AudioPrev, exec, playerctl previous bindl = , XF86AudioPrev, exec, playerctl previous
# Shut off laptop monitor when lid is closed and on when lid is open. # Shut off laptop monitor when lid is closed and on when lid is open.
bindl = , switch:on:Lid Switch, exec, hyprctl dispatch dpms off # bindl = , switch:on:Lid Switch, exec, hyprctl dispatch dpms off
bindl = , switch:off:Lid Switch, exec, hyprctl dispatch dpms on # bindl = , switch:off:Lid Switch, exec, hyprctl dispatch dpms on

View File

@@ -4,16 +4,19 @@
# See https://wiki.hyprland.org/Configuring/Window-Rules/ for more # See https://wiki.hyprland.org/Configuring/Window-Rules/ for more
# See https://wiki.hyprland.org/Configuring/Workspace-Rules/ for workspace rules # See https://wiki.hyprland.org/Configuring/Workspace-Rules/ for workspace rules
#
# Force bluetooth settings to be a floating window
windowrule = float, class:^(blueberry.py)$
windowrule = float,class:^(float)$ windowrule = float,class:^(float)$
#windowrule = float,title:InstallWebApp
windowrule = size 800 600,class:^(float)$,title:^(Install Web App)$ windowrule = size 800 600,class:^(float)$,title:^(Install Web App)$
windowrule = center,class:^(float)$,title:^(Install Web App)$ windowrule = center,class:^(float)$,title:^(Install Web App)$
# Ignore maximize requests from apps. You'll probably like this. # Ignore maximize requests from apps. You'll probably like this.
windowrule = suppressevent maximize, class:.* windowrule = suppressevent maximize, class:.*
# Just a dash of opacity by default. # Just a dash of opacity by default.
windowrule = opacity 0.97 0.92, class:.* windowrule = opacity 0.97 0.92, class:.*
# No opacity on youtube. # No opacity on youtube.

View File

@@ -18,14 +18,13 @@
"mpd", "mpd",
"idle_inhibitor", "idle_inhibitor",
"pulseaudio", "pulseaudio",
"tray",
"network", "network",
"cpu", "cpu",
"memory", "memory",
"temperature", "temperature",
"backlight", "backlight",
"battery", "battery",
"battery#bat2",
"tray",
"custom/power", "custom/power",
], ],
"hyprland/workspaces": { "hyprland/workspaces": {
@@ -52,13 +51,6 @@
// "5": [], // "5": [],
// }, // },
}, },
"sway/scratchpad": {
"format": "{icon} {count}",
"show-empty": false,
"format-icons": ["", ""],
"tooltip": true,
"tooltip-format": "{app}: {title}",
},
"mpd": { "mpd": {
"format": "{stateIcon} {consumeIcon}{randomIcon}{repeatIcon}{singleIcon}{artist} - {album} - {title} ({elapsedTime:%M:%S}/{totalTime:%M:%S}) ⸨{songPosition}|{queueLength}⸩ {volume}% ", "format": "{stateIcon} {consumeIcon}{randomIcon}{repeatIcon}{singleIcon}{artist} - {album} - {title} ({elapsedTime:%M:%S}/{totalTime:%M:%S}) ⸨{songPosition}|{queueLength}⸩ {volume}% ",
"format-disconnected": "Disconnected ", "format-disconnected": "Disconnected ",
@@ -104,7 +96,7 @@
// "timezone": "America/New_York", // "timezone": "America/New_York",
"tooltip-format": "<tt><small>{calendar}</small></tt>", "tooltip-format": "<tt><small>{calendar}</small></tt>",
// "format-alt": "{:%Y-%m-%d}", // "format-alt": "{:%Y-%m-%d}",
"format": "<b>󰭦 {:%D - %H:%M}</b>", "format": "󰭦 {:%D - %H:%M}",
"calendar": { "calendar": {
"mode": "year", "mode": "year",
"mode-mon-col": 3, "mode-mon-col": 3,
@@ -154,9 +146,6 @@
// "format-full": "", // "format-full": "",
"format-icons": ["", "", "", "", ""], "format-icons": ["", "", "", "", ""],
}, },
"battery#bat2": {
"bat": "BAT2",
},
"power-profiles-daemon": { "power-profiles-daemon": {
"format": "{icon}", "format": "{icon}",
"tooltip-format": "Power profile: {profile}\nDriver: {driver}", "tooltip-format": "Power profile: {profile}\nDriver: {driver}",
@@ -215,7 +204,7 @@
// "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
}, },
"custom/power": { "custom/power": {
"format": "⏻ ", "format": "⏻",
"tooltip": false, "tooltip": false,
"menu": "on-click", "menu": "on-click",
"menu-file": "$HOME/.config/waybar/power_menu.xml", // Menu file in resources folder "menu-file": "$HOME/.config/waybar/power_menu.xml", // Menu file in resources folder

View File

@@ -1,13 +1,7 @@
/* --active-color: #f5e0dc; */
/* --bg-color: rgba(24, 24, 37, 0.5); */
/* --border-bottom-color: rgba(24, 24, 37, 0.9); */
/* } */
@define-color bg2 #504945;
@define-color foreground #cdd6f4; @define-color foreground #cdd6f4;
@define-color background #181824; @define-color background rgba(24, 24, 37, 0.7);
* { * {
/* `otf-font-awesome` is required to be installed for icons */
font-family: JetBrains Mono; font-family: JetBrains Mono;
font-size: 15px; font-size: 15px;
border: none; border: none;
@@ -19,87 +13,8 @@
text-shadow: none; text-shadow: none;
icon-shadow: none; icon-shadow: none;
color: @foreground; color: @foreground;
background-color: @background;
}
window#waybar {
background-color: rgba(24, 24, 37, 0.5);
border-bottom: 3px solid rgba(24, 24, 37, 0.9);
color: #f5e0dc;
transition-property: background-color;
transition-duration: 0.5s;
}
window#waybar.hidden {
opacity: 0.2;
}
/*
window#waybar.empty {
background-color: transparent; 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 */
button:hover {
background: inherit;
box-shadow: inset 0 -3px #ffffff;
}
/* you can set a style on hover for any module like this */
#pulseaudio:hover {
background-color: #a37800;
}
#workspaces button {
padding: 0 5px;
background-color: transparent;
color: #f5e0dc;
}
#workspaces button:hover {
background: rgba(0, 0, 0, 0.2);
}
#workspaces button.focused {
background-color: #f38ba8;
box-shadow: inset 0 -3px #ffffff;
}
#workspaces button.active {
/* border: 1px solid #fab387; */
/* border-radius: 8px; */
color: #fab387;
/* background-color: rgb(24, 24, 37); */
}
#workspaces button.urgent {
background-color: #eb4d4b;
}
#mode {
background-color: #64727d;
box-shadow: inset 0 -3px #ffffff;
}
#clock, #clock,
#battery, #battery,
@@ -119,32 +34,36 @@ button:hover {
#power-profiles-daemon, #power-profiles-daemon,
#mpd { #mpd {
min-width: 12px; min-width: 12px;
min-height: 25px;
margin: 0 7.5px; margin: 0 7.5px;
} }
#window, .modules-left {
#workspaces { padding: 4px;
margin: 0 4px; margin: 2px 8px;
background-color: @background;
border-radius: 10;
} }
/* If workspaces is the leftmost module, omit left margin */ .modules-right {
.modules-left > widget:first-child > #workspaces { margin: 0 2px;
margin-left: 0;
}
/* If workspaces is the rightmost module, omit right margin */
.modules-right > widget:last-child > #workspaces {
margin-right: 0;
} }
#clock { #clock {
color: @foreground; background-color: @background;
/* background-color: #64727d; */ margin: 2px 8px;
border-radius: 10;
padding: 0 8px;
}
#workspaces button {
padding: 0 5px;
} }
#battery { #battery {
background-color: #ffffff; /* background-color: #ffffff; */
color: #000000; /* color: #000000; */
margin-right: 10px;
} }
#battery.charging, #battery.charging,
@@ -171,57 +90,13 @@ button:hover {
animation-direction: alternate; animation-direction: alternate;
} }
#power-profiles-daemon { #custom-power {
padding-right: 15px; font-size: 23px;
}
#power-profiles-daemon.performance {
background-color: #f53c3c;
color: #ffffff;
}
#power-profiles-daemon.balanced {
background-color: #2980b9;
color: #ffffff;
}
#power-profiles-daemon.power-saver {
background-color: #2ecc71;
color: #000000;
}
label:focus {
background-color: #000000;
}
/* #cpu { */
/* background-color: #2ecc71; */
/* color: #000000; */
/* } */
#memory {
background-color: #9b59b6;
}
#disk {
background-color: #964b00;
}
#backlight {
background-color: #90b1b1;
}
#network {
/* background-color: #2980b9; */
}
#network.disconnected {
background-color: #f53c3c;
} }
#pulseaudio { #pulseaudio {
background-color: #f1c40f; /* background-color: #f1c40f; */
color: #000000; /* color: #000000; */
} }
#pulseaudio.muted { #pulseaudio.muted {
@@ -244,25 +119,9 @@ label:focus {
min-width: 100px; min-width: 100px;
} }
#custom-media.custom-spotify { /* #tray { */
background-color: #66cc99; /* background-color: red; */
} /* } */
#custom-media.custom-vlc {
background-color: #ffa000;
}
#temperature {
background-color: #f0932b;
}
#temperature.critical {
background-color: #eb4d4b;
}
#tray {
background-color: #2980b9;
}
#tray > .passive { #tray > .passive {
-gtk-icon-effect: dim; -gtk-icon-effect: dim;
@@ -273,15 +132,6 @@ label:focus {
background-color: #eb4d4b; background-color: #eb4d4b;
} }
#idle_inhibitor {
background-color: #2d3436;
}
#idle_inhibitor.activated {
background-color: #ecf0f1;
color: #2d3436;
}
#mpd { #mpd {
background-color: #66cc99; background-color: #66cc99;
color: #2a5c45; color: #2a5c45;
@@ -299,38 +149,6 @@ label:focus {
background-color: #51a37a; background-color: #51a37a;
} }
#language {
background: #00b093;
color: #740864;
padding: 0 5px;
margin: 0 5px;
min-width: 16px;
}
#keyboard-state {
background: #97e1ad;
color: #000000;
padding: 0 0px;
margin: 0 5px;
min-width: 16px;
}
#keyboard-state > label {
padding: 0 5px;
}
#keyboard-state > label.locked {
background: rgba(0, 0, 0, 0.2);
}
#scratchpad {
background: rgba(0, 0, 0, 0.2);
}
#scratchpad.empty {
background-color: transparent;
}
#privacy { #privacy {
padding: 0; padding: 0;
} }
@@ -341,13 +159,13 @@ label:focus {
} }
#privacy-item.screenshare { #privacy-item.screenshare {
background-color: #cf5700; /* background-color: #cf5700; */
} }
#privacy-item.audio-in { #privacy-item.audio-in {
background-color: #1ca000; /* background-color: #1ca000; */
} }
#privacy-item.audio-out { #privacy-item.audio-out {
background-color: #0069d4; /* background-color: #0069d4; */
} }