Skip to content

Instantly share code, notes, and snippets.

@jhilker98
Created May 27, 2020 18:30
Show Gist options
  • Select an option

  • Save jhilker98/f8e2c323c499263886f0776c75e53472 to your computer and use it in GitHub Desktop.

Select an option

Save jhilker98/f8e2c323c499263886f0776c75e53472 to your computer and use it in GitHub Desktop.
broken polybar powermenu
#!/bin/bash
rofi -no-lazy-grab -sep "|" -dmenu -i -p 'System :' \
-hide-scrollbar true \
-bw 0 \
-lines 5 \
-line-padding 10 \
-padding 20 \
-width 15 \
\
\
-columns 1 \
\
-font "Iosevka 12" \
<<< "Sleep  |Lock  |Logout  |Reboot  |Shutdown "
case "$MENU" in
*Sleep) systemctl suspend ;;
*Lock) gnome-scrensaver-command --lock ;;
*Logout) /usr/bin/gnome-session-quit --logout ;;
*Reboot) /usr/bin/gnome-session-quit --reboot ;;
*Shutdown) /usr/bin/gnome-session-quit --power-off ;;
esac
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment