Systemd-ify Waybar, move aliases to individualized places, more Sway and Jovian changes

This commit is contained in:
Bun 2025-05-10 11:27:52 -04:00
parent 949cb85b2b
commit d257cd9bf5
14 changed files with 212 additions and 143 deletions

View file

@ -2,18 +2,26 @@
{
home.packages = with pkgs; lib.mkIf config.programs.rofi.enable [
(writeScriptBin "rofiscratch" ''
#!/bin/sh
SCRATCHPADS=$(echo -e "Btop\nMusic\nSound\nEasyEffects" | rofi -dmenu -i -p "Scratchpads")
case $SCRATCHPADS in
Btop) foot -a btop -T Btop btop;;
Music) foot -a music -T Music ncmpcpp;;
Sound) foot -a sound -T Sound pulsemixer;;
esac
'')
(writeScriptBin "rofipower" ''
#!/bin/sh
POWER=$(echo -e "Shutdown\nReboot\nLock\nSleep\nKill" | rofi -dmenu -i -p "Power")
case $POWER in
Shutdown) poweroff;;
Reboot) reboot;;
Lock) swaylock;;
Sleep) systemctl suspend;;
Kill) pkill -9 $XDG_CURRENT_DESKTOP;;
esac