diff --git a/home/modules/hyprland.nix b/home/modules/hyprland.nix index 7ccd526..42a0e78 100644 --- a/home/modules/hyprland.nix +++ b/home/modules/hyprland.nix @@ -129,6 +129,7 @@ in # for windows named/classed as abc and xyz windowrule=opaque,firefox windowrule=float,dolphin + windowrule=float,nm-tray windowrule=size 60% 60%,dolphin ${if laptop then "# this is a kaladin space" else "windowrule=workspace 1,mpv"} windowrule=float,mpv diff --git a/pkgs/desktop-packages.nix b/pkgs/desktop-packages.nix index ed1b9a4..0a55158 100644 --- a/pkgs/desktop-packages.nix +++ b/pkgs/desktop-packages.nix @@ -171,5 +171,7 @@ with lib; ladspaPlugins calf carla + esphome + esptool ]; } diff --git a/scripts/waybar.sh b/scripts/waybar.sh index 3e6a133..f84b4f0 100755 --- a/scripts/waybar.sh +++ b/scripts/waybar.sh @@ -1,3 +1,11 @@ #!/usr/bin/env bash -kill $(pgrep waybar) && waybar & +waybar=$(pgrep waybar) + +if [[ $waybar > 0 ]]; then + kill $waybar; + echo "killing $waybar" +else + exec waybar + echo "starting waybar" +fi