waybar: various fixes

This commit is contained in:
Sweetbread 2024-07-31 21:28:56 +03:00
parent 8f239b7599
commit dfc968862c
2 changed files with 36 additions and 22 deletions

View File

@ -88,7 +88,6 @@
dwindle = { dwindle = {
pseudotile = true; # master switch for pseudotiling. Enabling is bound to mainMod + P in the keybinds section below pseudotile = true; # master switch for pseudotiling. Enabling is bound to mainMod + P in the keybinds section below
smart_split = true; smart_split = true;
no_gaps_when_only = 1;
}; };
master = { master = {
@ -115,6 +114,7 @@
"float, ^(imv)$" "float, ^(imv)$"
"float, ^(feh)$" "float, ^(feh)$"
"float, ^(mpv)$" "float, ^(mpv)$"
"float, ^(nmtui)$"
]; ];
exec-once = [ exec-once = [

View File

@ -1,5 +1,11 @@
{ pkgs, ...}: { { pkgs, config, ...}: {
xdg.configFile."waybar/scripts/wttr.py".source = pkgs.requireFile { home.packages = [ pkgs.pulsemixer ];
wayland.windowManager.hyprland.settings.windowrule = [
"float, ^(pulsemixer)"
"float, ^(nmtui)"
];
xdg.configFile."waybar/scripts/wttr.py".source = pkgs.fetchurl {
name = "waybar-wttr.py"; name = "waybar-wttr.py";
url = "https://gist.githubusercontent.com/bjesus/f8db49e1434433f78e5200dc403d58a3/raw/47f9ffd573dc8e8edce0ea6708601b8e685a70ab/waybar-wttr.py"; url = "https://gist.githubusercontent.com/bjesus/f8db49e1434433f78e5200dc403d58a3/raw/47f9ffd573dc8e8edce0ea6708601b8e685a70ab/waybar-wttr.py";
sha256 = "15j2cqg405q37wrrlm70mhp7rx6xnrn92rfm1ix6g3nl98ksh45g"; sha256 = "15j2cqg405q37wrrlm70mhp7rx6xnrn92rfm1ix6g3nl98ksh45g";
@ -30,19 +36,17 @@
}; };
"keyboard-state" = { "keyboard-state" = {
#numlock = true;
capslock = true; capslock = true;
format = "{icon}"; format = "{icon}";
format-icons = { format-icons = {
locked = " "; locked = "CUPS";
unlocked = " "; unlocked = "";
}; };
}; };
"clock" = { "clock" = {
# timezone = "America/New_York"; tooltip = false;
tooltip-format = "<big>{:%Y %B}</big>\n<tt><small>{calendar}</small></tt>"; format = "{:%a, %d %b %R}";
format = "{:%R}";
}; };
"custom/weather" = { "custom/weather" = {
@ -71,7 +75,7 @@
car = ""; car = "";
default = ["" "" ""]; default = ["" "" ""];
}; };
on-click = "pavucontrol"; on-click = "alacritty --class pulsemixer -e pulsemixer";
min-length = 13; min-length = 13;
}; };
@ -99,7 +103,6 @@
}; };
"network" = { "network" = {
interface = "wlo1";
format = "{ifname}"; format = "{ifname}";
format-wifi = "{essid} ({signalStrength}%) "; format-wifi = "{essid} ({signalStrength}%) ";
format-ethernet = "{ifname} "; format-ethernet = "{ifname} ";
@ -109,7 +112,7 @@
tooltip-format-ethernet = "{ifname} "; tooltip-format-ethernet = "{ifname} ";
tooltip-format-disconnected = "Disconnected"; tooltip-format-disconnected = "Disconnected";
max-length = 50; max-length = 50;
on-click = "alacritty -e sh -c nmtui"; on-click = "alacritty --class nmtui -e sh -c nmtui";
}; };
"backlight" = { "backlight" = {
@ -124,12 +127,16 @@
warning = 30; warning = 30;
critical = 15; critical = 15;
}; };
format = "{capacity}% {icon}"; format = "{capacity}%";
format-charging = "{capacity}% "; format-charging = "{capacity}% {time}";
format-plugged = "{capacity}% "; format-plugged = "{capacity}%";
format-alt = "{time} {icon}"; format-alt = "{time}";
format-icons = ["" "" "" "" "" "" "" "" "" ""]; format-time = "{H}:{m}";
on-update = "$HOME/.config/waybar/scripts/check_battery.sh"; };
mpris = {
format = "{title}";
format-len = "20";
}; };
tray = { tray = {
@ -196,8 +203,7 @@ window#waybar.hidden {
} }
#language { #language {
padding-left: 16px; padding: 8px 0px 8px 8px;
padding-right: 8px;
border-radius: 10px 0px 0px 10px; border-radius: 10px 0px 0px 10px;
transition: none; transition: none;
color: #ffffff; color: #ffffff;
@ -206,7 +212,7 @@ window#waybar.hidden {
#keyboard-state { #keyboard-state {
margin-right: 8px; margin-right: 8px;
padding-right: 16px; padding: 8px 8px 8px 0px;
border-radius: 0px 10px 10px 0px; border-radius: 0px 10px 10px 0px;
transition: none; transition: none;
color: #ffffff; color: #ffffff;
@ -366,6 +372,14 @@ window#waybar.hidden {
background: #383c4a; background: #383c4a;
} }
#mpris{
background: #383c4a;
border-radius: 10px;
color: white;
padding: 0px 8px;
margin: 0px 8px;
}
@keyframes blink { @keyframes blink {
to { to {
background-color: #ffffff; background-color: #ffffff;