--- /dev/null
+#!/bin/bash
+outfile=$1
+
+if [ -z "$outfile" ];then
+ echo output path missing >&2
+ outfile=/tmp/lock.png
+fi
+
+grim - | convert -filter Gaussian -resize 20% -blur 0x2.5 -resize 500% png:- "$outfile"
+swaylock -f -c 00FF00 -i "$outfile"
#
# You can get the names of your outputs by running: swaymsg -t get_outputs
+
+output HDMI-A-1 resolution 2560x1440 position 0 0 scale 1
+output DP-1 resolution 1680x1050 position 2560 0 scale 1
+
+bindsym $mod+F9 exec "sway output DP-1 disable; sway output HDMI-A-1 enable"
+bindsym $mod+F10 exec "sway output DP-1 enable; sway output HDMI-A-1 enable"
+bindsym $mod+F11 exec "sway output DP-1 enable; sway output HDMI-A-1 disable"
### Idle configuration
#
# Example configuration:
#
- exec swayidle -w \
- timeout 1200 'swaylock -f -c 000000' \
- timeout 1201 'swaymsg "output * dpms off"' resume 'swaymsg "output * dpms on"' \
- before-sleep 'swaylock -f -c 000000'
-#
+set $lock_cmd ~/.bin/lockscreen.sh
+exec swayidle -w \
+ timeout 1200 $lock_cmd \
+ timeout 600 'swaymsg "output * dpms off"' resume 'swaymsg "output * dpms on"' \
+ before-sleep $lock_cmd
+
+bindsym $mod+Shift+x exec $lock_cmd
+
# 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.
# 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
bindsym $mod+Shift+f exec firefox
bindsym $mod+Shift+Control+e exec "shutdown -h now"
+bindsym Shift+Control+p exec grim -o $(swaymsg -t get_outputs | jq -r '.[] | select(.focused) | .name') - | wl-copy
+
for_window [window_role="About"] floating enable
for_window [class="vlc"] floating enable