Dotfiles/desktopenvs/hyprlua/scripts/menu.sh

8 lines
531 B
Bash
Executable File

#!/bin/bash
# Open nwg-menu (a GTK application menu similar to a start menu).
# -wm hyprland: enables Hyprland IPC for window placement hints.
# --ml/mb/mr/mt: left/bottom/right/top margins in pixels.
# -cmd-lock/logout/restart/shutdown: override the power-bar commands.
# "hyprctl dispatch exit" is the safe way to quit Hyprland without a raw kill.
nwg-menu -wm hyprland -term kitty --ml 15 -mb 15 -mr 15 -mt 15 -cmd-lock hyprlock -cmd-logout "hyprctl dispatch exit" -cmd-restart reboot -cmd-shutdown poweroff -fm "kitty -e yazi"