mirror of
https://github.com/Gerg-L/nixos.git
synced 2025-12-10 17:03:56 -05:00
moved files to make more sense and added experimental desktop configuration
This commit is contained in:
parent
22c5b6f826
commit
50fae0b2eb
38 changed files with 533 additions and 191 deletions
28
home-manager/config/rofi/powermenu/powermenu.sh
Executable file
28
home-manager/config/rofi/powermenu/powermenu.sh
Executable file
|
|
@ -0,0 +1,28 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
rofi_command="rofi -theme $HOME/.config/rofi/powermenu/powermenu.rasi -p "power""
|
||||
|
||||
#### Options ###
|
||||
power_off="襤 "
|
||||
reboot="勒 "
|
||||
lock=" "
|
||||
suspend=" "
|
||||
log_out=" "
|
||||
# Variable passed to rofi
|
||||
options="$power_off\n$reboot\n$suspend\n$log_out"
|
||||
|
||||
chosen="$(echo -e "$options" | $rofi_command -dmenu -selected-row 2)"
|
||||
case $chosen in
|
||||
$power_off)
|
||||
systemctl poweroff
|
||||
;;
|
||||
$reboot)
|
||||
systemctl reboot
|
||||
;;
|
||||
$suspend)
|
||||
systemctl suspend
|
||||
;;
|
||||
$log_out)
|
||||
bspc quit
|
||||
;;
|
||||
esac
|
||||
Loading…
Add table
Add a link
Reference in a new issue