2020-05-18 15:34:35 -05:00
|
|
|
# TODO:
|
|
|
|
#
|
|
|
|
# + Super+r should rotate the selected group of windows.
|
|
|
|
# + Super+Control+{1-9} should control the size of the preselect space.
|
|
|
|
# + Super+Shift+b should balance the size of all selected nodes.
|
2020-01-07 11:36:12 -06:00
|
|
|
|
2020-11-01 19:12:11 -06:00
|
|
|
set $mod Mod4
|
2020-06-15 11:44:00 -05:00
|
|
|
set $default_gap 0
|
2020-01-07 11:36:12 -06:00
|
|
|
|
2020-05-18 15:34:35 -05:00
|
|
|
focus_wrapping no
|
|
|
|
gaps inner $default_gap
|
|
|
|
smart_borders on|no_gaps
|
|
|
|
hide_edge_borders smart_no_gaps
|
2020-11-01 19:12:11 -06:00
|
|
|
default_border pixel 5
|
|
|
|
focus_follows_mouse no
|
|
|
|
|
|
|
|
input type:keyboard {
|
|
|
|
repeat_delay 200
|
|
|
|
repeat_rate 60
|
|
|
|
}
|
2020-05-18 15:34:35 -05:00
|
|
|
|
|
|
|
bindsym Control+Space exec makoctl dismiss
|
|
|
|
# bindsym $mod+Control+Space exec makoctl invoke
|
2020-11-01 19:12:11 -06:00
|
|
|
bindsym $mod+Return exec term
|
|
|
|
bindsym $mod+shift+Return exec floating-term
|
|
|
|
bindsym $mod+t exec term
|
2020-03-24 12:05:08 -05:00
|
|
|
bindsym $mod+Alt+Return exec urxvt
|
2020-05-18 15:34:35 -05:00
|
|
|
bindsym $mod+Shift+Alt+Return exec kitty
|
2020-01-07 11:36:12 -06:00
|
|
|
bindsym $mod+c kill
|
2020-09-17 09:22:32 -05:00
|
|
|
bindsym $mod+Shift+c kill # TODO: kill -9?
|
2020-11-01 19:12:11 -06:00
|
|
|
bindsym $mod+Space exec app-launcher
|
|
|
|
bindsym $mod+e exec thunar
|
2020-01-07 11:36:12 -06:00
|
|
|
bindsym $mod+Shift+r reload
|
|
|
|
bindsym $mod+Control+Escape exit
|
|
|
|
bindsym $mod+Shift+e exit
|
2020-05-18 15:34:35 -05:00
|
|
|
bindsym $mod+Shift+p exec pass-chooser
|
|
|
|
bindsym $mod+Control+j split v
|
|
|
|
bindsym $mod+Control+l split h
|
|
|
|
bindsym $mod+Control+f focus mode_toggle
|
2020-01-07 11:36:12 -06:00
|
|
|
|
2020-11-01 19:12:11 -06:00
|
|
|
bindsym $mod+h focus left
|
|
|
|
bindsym $mod+j focus down
|
|
|
|
bindsym $mod+k focus up
|
|
|
|
bindsym $mod+l focus right
|
2020-01-07 11:36:12 -06:00
|
|
|
|
|
|
|
bindsym $mod+Left focus left
|
|
|
|
bindsym $mod+Down focus down
|
|
|
|
bindsym $mod+Up focus up
|
|
|
|
bindsym $mod+Right focus right
|
|
|
|
|
2020-11-01 19:12:11 -06:00
|
|
|
bindsym $mod+Shift+h move left
|
|
|
|
bindsym $mod+Shift+j move down
|
|
|
|
bindsym $mod+Shift+k move up
|
|
|
|
bindsym $mod+Shift+l move right
|
2020-01-07 11:36:12 -06:00
|
|
|
|
|
|
|
bindsym $mod+Shift+Left move left
|
|
|
|
bindsym $mod+Shift+Down move down
|
|
|
|
bindsym $mod+Shift+Up move up
|
|
|
|
bindsym $mod+Shift+Right move right
|
|
|
|
|
|
|
|
floating_modifier $mod normal
|
|
|
|
|
|
|
|
bindsym $mod+1 workspace 1
|
|
|
|
bindsym $mod+2 workspace 2
|
|
|
|
bindsym $mod+3 workspace 3
|
|
|
|
bindsym $mod+4 workspace 4
|
|
|
|
bindsym $mod+5 workspace 5
|
|
|
|
bindsym $mod+6 workspace 6
|
|
|
|
bindsym $mod+7 workspace 7
|
|
|
|
bindsym $mod+8 workspace 8
|
|
|
|
bindsym $mod+9 workspace 9
|
|
|
|
bindsym $mod+0 workspace 10
|
|
|
|
|
|
|
|
bindsym $mod+Shift+1 move container to workspace 1
|
|
|
|
bindsym $mod+Shift+2 move container to workspace 2
|
|
|
|
bindsym $mod+Shift+3 move container to workspace 3
|
|
|
|
bindsym $mod+Shift+4 move container to workspace 4
|
|
|
|
bindsym $mod+Shift+5 move container to workspace 5
|
|
|
|
bindsym $mod+Shift+6 move container to workspace 6
|
|
|
|
bindsym $mod+Shift+7 move container to workspace 7
|
|
|
|
bindsym $mod+Shift+8 move container to workspace 8
|
|
|
|
bindsym $mod+Shift+9 move container to workspace 9
|
|
|
|
bindsym $mod+Shift+0 move container to workspace 10
|
|
|
|
|
|
|
|
bindsym $mod+b splith
|
|
|
|
bindsym $mod+v splitv
|
|
|
|
|
|
|
|
bindsym $mod+Shift+f fullscreen
|
|
|
|
bindsym $mod+f floating toggle
|
2020-05-18 15:34:35 -05:00
|
|
|
bindsym $mod+s floating disable
|
2020-01-07 11:36:12 -06:00
|
|
|
bindsym $mod+Alt+f focus mode_toggle
|
|
|
|
bindsym $mod+p focus parent
|
2020-05-18 15:34:35 -05:00
|
|
|
bindsym $mod+period focus child
|
|
|
|
bindsym $mod+comma focus child
|
|
|
|
bindsym $mod+tab workspace back_and_forth
|
2020-01-07 11:36:12 -06:00
|
|
|
|
2020-11-01 19:12:11 -06:00
|
|
|
bindsym $mod+minus gaps inner current minus 5
|
|
|
|
bindsym $mod+plus gaps inner current plus 5
|
|
|
|
bindsym $mod+Control+Alt+h gaps horizontal current minus 5
|
|
|
|
bindsym $mod+Control+Alt+l gaps horizontal current plus 5
|
|
|
|
bindsym $mod+Control+Alt+j gaps vertical current minus 5
|
|
|
|
bindsym $mod+Control+Alt+k gaps vertical current plus 5
|
|
|
|
# TODO: this should also reset the horizontal and vertical gaps?
|
|
|
|
bindsym $mod+Control+equal gaps inner current set $default_gap
|
|
|
|
|
2020-03-23 13:23:50 -05:00
|
|
|
bindsym XF86AudioRaiseVolume exec pactl set-sink-volume @DEFAULT_SINK@ +5%
|
|
|
|
bindsym XF86AudioLowerVolume exec pactl set-sink-volume @DEFAULT_SINK@ -5%
|
|
|
|
bindsym XF86AudioMute exec pactl set-sink-mute @DEFAULT_SINK@ toggle
|
|
|
|
bindsym XF86AudioMicMute exec pactl set-source-mute @DEFAULT_SOURCE@ toggle
|
|
|
|
bindsym XF86MonBrightnessDown exec brightnessctl set 5%-
|
|
|
|
bindsym XF86MonBrightnessUp exec brightnessctl set +5%
|
|
|
|
bindsym XF86AudioPlay exec playerctl play-pause
|
|
|
|
bindsym XF86AudioNext exec playerctl next
|
|
|
|
bindsym XF86AudioPrev exec playerctl previous
|
|
|
|
bindsym $mod+Shift+v exec pactl set-source-mute @DEFAULT_SOURCE@ toggle
|
|
|
|
|
2020-03-24 12:05:08 -05:00
|
|
|
bindsym $mod+Control+Shift+l exec swaylock
|
2020-11-01 19:12:11 -06:00
|
|
|
# TODO: toggle-able swayidle? does the idle thing in waybar handle this?
|
|
|
|
# TODO: one-time swayidle/monitor-off
|
2020-10-12 06:26:51 -05:00
|
|
|
# bindsym $mod+Control+Shift+s exec lock-and-disable-monitors
|
2020-03-24 12:05:08 -05:00
|
|
|
|
2020-01-07 11:36:12 -06:00
|
|
|
mode "resize" {
|
2020-11-01 19:12:11 -06:00
|
|
|
bindsym h resize shrink width 10 px or 10 ppt
|
|
|
|
bindsym j resize grow height 10 px or 10 ppt
|
|
|
|
bindsym k resize shrink height 10 px or 10 ppt
|
|
|
|
bindsym l resize grow width 10 px or 10 ppt
|
2020-01-07 19:38:43 -06:00
|
|
|
|
|
|
|
bindsym Left resize shrink width 10 px or 10 ppt
|
|
|
|
bindsym Down resize grow height 10 px or 10 ppt
|
|
|
|
bindsym Up resize shrink height 10 px or 10 ppt
|
|
|
|
bindsym Right resize grow width 10 px or 10 ppt
|
|
|
|
|
|
|
|
bindsym Return mode "default"
|
|
|
|
bindsym Escape mode "default"
|
2020-01-07 11:36:12 -06:00
|
|
|
}
|
|
|
|
|
2020-05-18 15:34:35 -05:00
|
|
|
for_window [app_id="floating_terminal"] floating enable
|
|
|
|
for_window [class="floating_terminal"] floating enable
|
2020-10-26 11:56:49 -05:00
|
|
|
for_window [class=".*"] layout splitv
|
2020-01-07 11:36:12 -06:00
|
|
|
|
2020-11-01 19:12:11 -06:00
|
|
|
output * bg $HOME/.wallpaper fill
|
2020-01-07 19:38:43 -06:00
|
|
|
|
2020-03-23 13:23:50 -05:00
|
|
|
client.focused #66d9ef #66d9ef #66d9ef #66d9ef #66d9ef
|
|
|
|
client.focused_inactive #111111 #111111 #ffffff #111111 #111111
|
|
|
|
client.unfocused #111111 #111111 #ffffff #111111 #111111
|
|
|
|
|
2020-11-01 19:12:11 -06:00
|
|
|
bar {
|
|
|
|
swaybar_command waybar
|
|
|
|
}
|
|
|
|
|
2020-05-28 08:47:55 -05:00
|
|
|
exec mako
|
2020-10-26 11:56:49 -05:00
|
|
|
exec_always kanshi
|
2020-11-01 19:12:11 -06:00
|
|
|
exec_always notify-send -a "Sway" -i ~/.wallpaper "Sway configuration loaded."
|
2020-05-18 15:34:35 -05:00
|
|
|
|
2020-11-01 19:12:11 -06:00
|
|
|
include $ENV_PATH/sway/config.d/main
|