This commit is contained in:
2025-09-14 22:06:00 -07:00
parent 9fbf3bc8c1
commit 91fe229e59
8 changed files with 118 additions and 107 deletions

View File

@@ -19,10 +19,11 @@ set $laptop eDP-1
include ~/.config/sway/config.d/*
### Output configuration
# You can get the names of your outputs by running: swaymsg -t get_outputs
# https://gitlab.com/w0lff/shikane for multitple display handling
output * bg /home/jozamudi/Downloads/samurai-cyberpunk-3840x2160-12877.png fill
#output * bg /home/jozamudi/Downloads/samurai-cyberpunk-3840x2160-12877.png fill
output eDP-1 scale 1.8
#output 'BNQ BenQ PD3200U S2N01233019' scale 1.5
@@ -32,12 +33,18 @@ bindswitch --reload --locked lid:on output $laptop disable
bindswitch --reload --locked lid:off output $laptop enable
exec_always --no-startup-id '/home/jozamudi/.config/sway/scripts/clamshell-mode.sh'
#input "1267:12792:ELAN067B:00_04F3:31F8_Touchpad" {
# dwt enabled
# tap enabled
# middle_emulation enabled
#}
### Idle configuration
exec swayidle -w \
timeout 300 'swaylock -f -c 000000' \
timeout 600 'swaymsg "output * power off"' \
resume 'swaymsg "output * power on"' \
before-sleep 'playerctl pause; swaymsg output $laptop power on; swaylock -f -c 000000'
before-sleep 'swaylock -f -c 000000'
seat seat0 xcursor_theme Adwaita 25

View File

@@ -90,15 +90,15 @@ mode "resize" {
# right will grow the containers width
# up will shrink the containers height
# down will grow the containers height
bindsym $right resize shrink width 10px
bindsym $left resize shrink width 10px
bindsym $down resize grow height 10px
bindsym $up resize shrink height 10px
bindsym $left resize grow width 10px
bindsym $right resize grow width 10px
bindsym Shift+$right resize shrink width 40px
bindsym Shift+$left resize shrink width 40px
bindsym Shift+$down resize grow height 40px
bindsym Shift+$up resize shrink height 40px
bindsym Shift+$left resize grow width 40px
bindsym Shift+$right resize grow width 40px
# Ditto, with arrow keys
bindsym Left resize shrink width 10px
@@ -116,8 +116,8 @@ bindsym $mod+Shift+s sticky toggle
#bindsym $mod+Shift+o exec 'playerctl pause && swaylock -c 0x0000'
# Toggle laptop display
bindsym $mod+m output $laptop toggle
bindsym $mod+shift+m exec bash -c 'playerctl pause; swaymsg output $laptop power on; swaylock -f -c 000000'
bindsym $mod+shift+m output $laptop toggle
bindsym $mod+m exec bash -c 'playerctl pause; swaymsg output $laptop power on; swaylock -f -c 000000'
# play/pause media player
#bindsym XF86Favorites exec playerctl play-pause