#+begin_src conf
exec xrdb .Xresources
### Variables
-#
-# Logo key. Use Mod1 for Alt.
+# super
set $mod Mod4
+# alt
+set $mod2 Mod1
set $left h
set $down j
set $up k
bindsym XF86MonBrightnessUp exec light -A 5 # increase screen brightness
bindsym XF86MonBrightnessDown exec light -U 5 # decrease screen brightness
+ # bspwm-esque workspace switch and window move
bindsym $mod+bracketleft exec sway-ws-util switch prev
bindsym $mod+bracketright exec sway-ws-util switch next
-
bindsym $mod+braceleft exec sway-ws-util move prev follow
bindsym $mod+braceright exec sway-ws-util move next follow
+
+ # original sway workspace switch and window move
+ bindsym $mod2+bracketleft workspace prev
+ bindsym $mod2+bracketright workspace next
+ bindsym $mod2+braceleft move container to workspace prev
+ bindsym $mod2+braceright move container to workspace next
#
# Moving around:
#
elif [ "$2" = "next" ]; then
dest_ws="$next_ws"
else
- echo "Usage: $0 $1 {prev|next}"
+ echo "Usage: $0 $1 {prev|next} [follow]"
exit 1
fi
else