waybar disk usage icon now actually works, grimblast plays a neat sound effect now, super + e now opens nemo in a floating window instead of a tiled window

This commit is contained in:
2024-11-10 20:15:57 -05:00
parent f9b8251567
commit fc63af4641
3 changed files with 14 additions and 7 deletions

View File

@@ -205,7 +205,7 @@ in {
"super, q, exec, kitty --title Kitty" "super, q, exec, kitty --title Kitty"
"super shift, q, exec, [float;size 40% 30%;move onscreen cursor -50% -50%] kitty --title Kitty" "super shift, q, exec, [float;size 40% 30%;move onscreen cursor -50% -50%] kitty --title Kitty"
"super, c, killactive," "super, c, killactive,"
"super, e, exec, nemo" "super, e, exec, [float;size 40% 50%;move onscreen cursor -50% -50%] nemo"
"super, p, exec, [float;size 40% 25%;move onscreen cursor] [ ! -f /tmp/keyringfile ] && kitty toolbelt" "super, p, exec, [float;size 40% 25%;move onscreen cursor] [ ! -f /tmp/keyringfile ] && kitty toolbelt"
"super shift, m, exit," "super shift, m, exit,"
"super, m, exec, fuzzel" "super, m, exec, fuzzel"

View File

@@ -54,6 +54,9 @@ let
color7 = scheme.base0F; color7 = scheme.base0F;
}; };
monitors = config.movOpts.envConfig.hyprlandConfig.monitorNames; monitors = config.movOpts.envConfig.hyprlandConfig.monitorNames;
circle-gauge = [ "󰝦" "󰪞" "󰪟" "󰪠" "󰪡" "󰪢" "󰪣" "󰪤" "󰪥" ];
cava-gauge = [ "" "" "" "" "" "" "" "" ];
battery-gauge = [ "󰁺" "󰁻" "󰁽" "󰁾" "󰁿" "󰂀" "󰂁" "󰂂" "󰁹" ];
in { in {
options = { options = {
movOpts.envConfig.waybarConfig.enable = movOpts.envConfig.waybarConfig.enable =
@@ -100,7 +103,7 @@ in {
waves = false; waves = false;
noise_reduction = 0.77; noise_reduction = 0.77;
input_delay = 1; input_delay = 1;
format-icons = [ "" "" "" "" "" "" "" "" ]; format-icons = cava-gauge;
}; };
"group/hardware" = { "group/hardware" = {
@@ -127,7 +130,7 @@ in {
nix_percent = $5 nix_percent = $5
} }
END { END {
printf "{\"class\": \"disk-icon\", \"tooltip\": \"/home: %s / %s\\n/nix: %s / %s\", \"percentage\": \"%s\"}\n", printf "{\"class\": \"disk-icon\", \"tooltip\": \"/home: %s / %s\\n/nix: %s / %s\", \"percentage\": %s}\n",
format(home_usage), format(home_total), format(nix_usage), format(nix_total), home_percent format(home_usage), format(home_total), format(nix_usage), format(nix_total), home_percent
}' | jq --unbuffered --compact-output }' | jq --unbuffered --compact-output
''; '';
@@ -135,14 +138,14 @@ in {
return-type = "json"; return-type = "json";
rotate = 270; rotate = 270;
format = "{icon}"; format = "{icon}";
format-icons = [ "󰝦" "󰪞" "󰪟" "󰪠" "󰪡" "󰪢" "󰪣" "󰪤" "󰪥" ]; format-icons = circle-gauge;
}; };
memory = { memory = {
interval = 1; interval = 1;
rotate = 270; rotate = 270;
format = "{icon}"; format = "{icon}";
format-icons = [ "󰝦" "󰪞" "󰪟" "󰪠" "󰪡" "󰪢" "󰪣" "󰪤" "󰪥" ]; format-icons = circle-gauge;
max-length = 10; max-length = 10;
tooltip-format = "RAM: {used:0.1f} GB / {total:0.1f} GB"; tooltip-format = "RAM: {used:0.1f} GB / {total:0.1f} GB";
}; };
@@ -151,7 +154,7 @@ in {
interval = 1; interval = 1;
rotate = 270; rotate = 270;
format = "{icon}"; format = "{icon}";
format-icons = [ "󰝦" "󰪞" "󰪟" "󰪠" "󰪡" "󰪢" "󰪣" "󰪤" "󰪥" ]; format-icons = circle-gauge;
tooltip-format = "CPU: {usage:0.1f}%"; tooltip-format = "CPU: {usage:0.1f}%";
}; };
@@ -251,7 +254,7 @@ in {
{capacity}% {capacity}%
Til full: {time}''; Til full: {time}'';
format = "{icon}"; format = "{icon}";
format-icons = [ "󰁺" "󰁻" "󰁽" "󰁾" "󰁿" "󰂀" "󰂁" "󰂂" "󰁹" ]; format-icons = battery-gauge;
format-charging = "󰂄"; format-charging = "󰂄";
}; };

View File

@@ -82,6 +82,10 @@
runbg aplay "$1" runbg aplay "$1"
fi fi
} }
grimblast() {
command grimblast "$@"
playshellsound ${self}/assets/sound/screenshot.wav
}
ssh() { # reverts ssh theme upon returning ssh() { # reverts ssh theme upon returning
command ssh "$@" command ssh "$@"
kitty_ssh_theme kitty_ssh_theme