added wlogout and wofi manager

This commit is contained in:
Jürg Hallenbarter
2026-01-26 10:00:05 +00:00
parent b747e8c177
commit 5b89a10f3a
3 changed files with 12 additions and 12 deletions

View File

@@ -13,7 +13,7 @@ bindsym $mod+b exec ~/.config/MyI3Config/settings/browser.sh
bindsym $mod+e exec ~/.config/MyI3Config/settings/filemanager.sh bindsym $mod+e exec ~/.config/MyI3Config/settings/filemanager.sh
bindsym $mod+Ctrl+c exec ~/.config/MyI3Config/settings/calculator.sh bindsym $mod+Ctrl+c exec ~/.config/MyI3Config/settings/calculator.sh
bindsym $mod+Ctrl+Return exec rofi -show drun -i bindsym $mod+Ctrl+Return exec wofi -show drun
# ---------------------------------------- # ----------------------------------------
# Window management # Window management

View File

@@ -1,12 +1,10 @@
#!/bin/sh # Get screen resolution
# Fullscreen overlay menu res_w=$(xdpyinfo | awk '/dimensions/{print $2}' | cut -d'x' -f1)
OPTIONS="Reboot\nShutdown\nLock Screen\nCancel" res_h=$(xdpyinfo | awk '/dimensions/{print $2}' | cut -d'x' -f2)
CHOICE=$(echo -e $OPTIONS | rofi -dmenu -fullscreen -p "Action" -lines 4 -bw 2 -kb-accept-entry 'Return' -kb-cancel 'Escape')
case "$CHOICE" in # Compute margins if needed
"Reboot") systemctl reboot ;; w_margin=$((res_w / 4))
"Shutdown") systemctl poweroff ;; h_margin=$((res_h / 4))
"Lock Screen") i3lock ;;
"Cancel"|"") exit 0 ;;
esac
# Launch wlogout with margins
wlogout -T $h_margin -B $h_margin

View File

@@ -9,7 +9,7 @@ xorg-xsetroot
xorg-xkb-utils xorg-xkb-utils
# Application launcher # Application launcher
rofi wofi
# Terminal emulator # Terminal emulator
kitty kitty
@@ -42,3 +42,5 @@ noto-fonts
firefox firefox
gnome-calculator gnome-calculator
nautilus nautilus
wlogout