sway: add gaps, add swaylock

This commit is contained in:
Inhji 2023-10-21 10:08:58 +02:00
parent fd797568b0
commit 1e7376fcfd
1 changed files with 7 additions and 1 deletions

View File

@ -22,7 +22,7 @@ set $MON1 "HDMI-A-1"
# Note: it's recommended that you pass the final command to sway
#set $menu dmenu_path | dmenu | xargs swaymsg exec --
#set $menu wofi --show drun -p Search -n -i -I -W 66% -s $HOME/.config/wofi.css
set $menu tofi-drun --num-results 7 | xargs swaymsg exec --
set $menu tofi-drun | xargs swaymsg exec --
set $dmenu tofi-run | xargs swaymsg exec --
#xwayland disable
@ -56,6 +56,11 @@ output eDP-1 scale 1.2
# This will lock your screen after 300 seconds of inactivity, then turn off
# your displays after another 300 seconds, and turn your screens back on when
# resumed. It will also lock your screen before your computer goes to sleep.
exec swayidle -w \
timeout 300 'swaylock -f -c 000000' \
timeout 600 'swaymsg "output * dpms off"' \
resume 'swaymsg "output * dpms on"' \
before-sleep 'swaylock -f -c 000000'
### Input configuration
#
@ -78,6 +83,7 @@ input "1003:8258:MNT_Reform_Keyboard" {
default_border pixel 2
hide_edge_borders both
gaps inner 8
### Key bindings
#