blob: 097e5fa4ad7b73b6b24253becccc84272f0be2d7 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
#!/usr/bin/env bash
# WOFI STYLES
CONFIG="$HOME/.config/wofi/WofiBig/config"
STYLE="$HOME/.config/wofi/style.css"
COLORS="$HOME/.config/wofi/colors"
# Wofi window config (in %)
WOFI_WIDTH=5
WOFI_HEIGHT=23
wofi_command="wofi --show dmenu \
--prompt choose... \
--conf $CONFIG --style $STYLE --color $COLORS \
--width=$WOFI_WIDTH% --height=$WOFI_HEIGHT% \
--cache-file=/dev/null \
--hide-scroll --no-actions \
--matching=fuzzy"
entries=$(echo -e " Poweroff\n Reboot\n Suspend\n Lock\n Logout" | $wofi_command -i --dmenu | awk '{print tolower($2)}')
case $entries in
poweroff|reboot|suspend)
systemctl $entries
;;
lock)
$HOME/.config/hypr/scripts/LockScreen.sh
;;
logout)
hyprctl dispatch exit 0
;;
esac
|