sway: replace exit prompt with wofi menu
This commit is contained in:
parent
843ffccf86
commit
6baf09b068
2 changed files with 7 additions and 5 deletions
4
bin/sway_exit
Executable file
4
bin/sway_exit
Executable file
|
@ -0,0 +1,4 @@
|
|||
#!/bin/bash
|
||||
export PATH=$PATH:$HOME/.config/sway/bin
|
||||
bash -c "$(echo -e 'sway_lock lock\nsystemctl suspend\nswaymsg reload\nswaymsg exit' | \
|
||||
wofi --dmenu --prompt 'exit menu')"
|
8
config
8
config
|
@ -28,6 +28,7 @@ set $font Cascadia Code PL Regular 10
|
|||
# Your preferred application launcher
|
||||
set $menu wofi --show drun --prompt applications
|
||||
set $search_cmd $HOME/.config/sway/bin/sway_search
|
||||
set $exit_cmd $HOME/.config/sway/bin/sway_exit
|
||||
|
||||
#
|
||||
# Host Specific
|
||||
|
@ -102,12 +103,9 @@ bindsym $mod+Shift+r exec $search_cmd
|
|||
# mouse button for dragging.
|
||||
floating_modifier $mod normal
|
||||
|
||||
# Reload the configuration file
|
||||
bindsym $mod+Ctrl+r reload
|
||||
# Show exit menu
|
||||
bindsym $mod+Shift+e exec $exit_cmd
|
||||
|
||||
# Exit sway (logs you out of your Wayland session)
|
||||
bindsym $mod+Shift+e exec swaynag -t warning -m 'You pressed the exit shortcut. Do you really want to exit sway? This will end your Wayland session.' -b 'Yes, exit sway' 'swaymsg exit'
|
||||
#
|
||||
# Moving around:
|
||||
#
|
||||
# Move your focus around
|
||||
|
|
Loading…
Reference in a new issue