set $mod Mod4
-# Slight gaps between windows
-gaps inner 5
-gaps outer 5
+# Slight gaps around windows
+gaps inner 6
# Use Mouse+$mod to drag floating windows to their wanted position
floating_modifier $mod
set $ws9 "9"
set $ws10 "10"
+set $music "Music"
+set $chat "Chat"
+
mode "$ratpoison" {
# All/most commands in this mode should revert to the default mode on comleption.
# We are emulating ratpoison (kinda) here
bindsym 8 exec 'swaymsg mode "default"; swaymsg workspace $ws8'
bindsym 9 exec 'swaymsg mode "default"; swaymsg workspace $ws9'
bindsym 0 exec 'swaymsg mode "default"; swaymsg workspace $ws10'
+ bindsym m exec 'swaymsg mode "default"; swaymsg workspace $music'
+ bindsym a exec 'swaymsg mode "default"; swaymsg workspace $chat'
+
bindsym Shift+1 exec 'swaymsg mode "default"; swaymsg move container to workspace $ws1'
bindsym Shift+2 exec 'swaymsg mode "default"; swaymsg move container to workspace $ws2'
bindsym Shift+8 exec 'swaymsg mode "default"; swaymsg move container to workspace $ws8'
bindsym Shift+9 exec 'swaymsg mode "default"; swaymsg move container to workspace $ws9'
bindsym Shift+0 exec 'swaymsg mode "default"; swaymsg move container to workspace $ws10'
+ bindsym Shift+m exec 'swaymsg mode "default"; swaymsg move container to workspace $music'
+ bindsym Shift+a exec 'swaymsg mode "default"; swaymsg move container to workspace $chat'
# Moving focus
# bindsym Tab focus right mode "default"
bindsym c exec 'swaymsg mode "default"; swaymsg exec termite'
bindsym q exec 'swaymsg mode "default"; swaymsg kill'
- bindsym Shift+e exec 'swaymsg mode "default"; swaymsg exec bemenu-run'
+ bindsym Shift+e exec 'swaymsg mode "default"; swaymsg exec dmenu_run'
bindsym $mod+l exec 'swaymsg mode "default"; "lock.nosmartcard"'
bindsym Escape mode "default"
bindsym $mod+p mode "resize"
+bindsym XF86MonBrightnessUp exec "brightnessctl set +100"
+bindsym XF86MonBrightnessDown exec "brightnessctl set 100-"
+bindsym XF86ScreenSaver exec "lock.nosmartcard"
hide_edge_borders both
for_window [class="^rdesktop"] move workspace number 9; floating disable
for_window [class="Pinentry"] floating enable
-exec swayidle \
- timeout 300 "lock.nosmartcard" \
- timeout 600 'swaymsg "output * dpms off"' \
- resume 'swaymsg "output * dpms on" \
- before-sleep "lock.nosmartcard"
+{% set lockcmd = "swaylock -e -f -i ~/Pictures/lockscreen_1080_1.png" %}
+
+exec swayidle -w \
+timeout 300 "{{lockcmd}}" \
+ timeout 600 'systemctl suspend' \
+ before-sleep "{{lockcmd}}"
+
+# This keyboard has this layout on all machines:
+input 1241:36:HOLDCHIP_USB_Keyboard {
+ xkb_layout us
+ xkb_variant colemak
+ xkb_options ctrl:nocaps
+}
+
+input 16700:8455:DELL_Dell_USB_Entry_Keyboard {
+ xkb_layout gb
+ xkb_variant colemak
+ xkb_options ctrl:nocaps
+}
+
+input 7504:24616:unspecified_ErgoDox_ergonomic_keyboard {
+ xkb_layout gb
+}
+
+input 9494:21:CM_Storm_Quickfire_Pro_Ultimate_6_key {
+ xkb_layout gb
+ xkb_variant colemak
+ xkb_options ctrl:nocaps
+}
+
+input 1:1:AT_Translated_Set_2_keyboard {
+ xkb_layout gb
+ xkb_variant colemak
+ xkb_options ctrl:nocaps
+}
# host specific section
{%- do salt.log.error('sway/files/' + host) -%}