Dotfiles/desktopenvs/hyprlua/scripts/drawer.sh

10 lines
546 B
Bash
Executable File

#!/bin/bash
# Open the nwg-drawer application grid.
# -fm: file manager command (kitty running yazi TUI file manager).
# -term: terminal for launching terminal-based apps.
# -wm hyprland: enables Hyprland-specific IPC integration.
# -mb/ml/mr/mt: margins (bottom/left/right/top) in pixels.
# -pb*: power-bar button commands; pbexit calls hyprctl to cleanly end the session.
nwg-drawer -fm "kitty -e yazi" -term kitty -wm hyprland -mb 20 -ml 20 -mr 20 -mt 20 -pblock hyprlock -pbpoweroff poweroff -pbexit "hyprctl dispatch exit" -pbreboot reboot