#
# Utilities
#

Mod+slash
	show-hotkey-overlay;

Mod+Return hotkey-overlay-title="Spawn terminal"
	spawn "alacritty";

Mod+Space repeat=false hotkey-overlay-title="Launch program"
	spawn "sh" "-c" "rofi -show drun";

Mod+b hotkey-overlay-title="Spawn new tab"
	spawn "qutebrowser";

Mod+v hotkey-overlay-title="Open clipboard manager"
	spawn "copyq" "toggle";

Mod+m hotkey-overlay-title="Select file and copy to clipboard"
	spawn "alacritty" "-e" "select-and-copy";

Mod+escape hotkey-overlay-title="Suspend session"
	spawn "bas" "suspend";

Mod+n hotkey-overlay-title="View notifications"
	spawn "bas" "view_notifs";

Mod+p
	spawn "bas";

{,Shift+,Ctrl+}XF86Tools
	screenshot{,-window,-screen};

#
# System Control
#

{XF86AudioRaiseVolume,XF86AudioLowerVolume} allow-when-locked=true
	spawn-sh "wpctl set-volume @DEFAULT_AUDIO_SINK@ {0.1+,0.1-}";

XF86AudioMute allow-when-locked=true
	spawn "wpctl" "set-mute" "@DEFAULT_AUDIO_SINK@" "toggle";

XF86AudioMicMute allow-when-locked=true
	spawn-sh "wpctl set-mute @DEFAULT_AUDIO_SOURCE@ toggle";

# Control Brightness
{XF86MonBrightnessUp,XF86MonBrightnessDown} allow-when-locked=true
	spawn "brightnessctl" "--class=backlight" "set" "{+10%,10%-}";

#
# Window control
#

Mod+q
	close-window;

Mod+g
	toggle-window-floating;

Mod+{,Shift+}f
	{maximize-column,fullscreen-window};

Mod+t
	toggle-column-tabbed-display;

#
# Layout navigation/configuration
#

# Overview
Mod+a
	toggle-overview;

# Focus in direction
Mod+{h,j,k,l}
Mod+{Left,Down,Up,Right}
	focus-{column-left,window-or-workspace-down,window-or-workspace-up,column-right};

Mod+{TouchpadScrollRight,TouchpadScrollLeft}
Mod+{WheelScrollUp,WheelScrollDown}
	focus-column-{right,left};

# Move window
Mod+Shift+{h,j,k,l}
Mod+Shift+{Left,Down,Up,Right}
# Mod+Shift+{a,s,w,d}
	{consume-or-expel-window-left,move-window-down-or-to-workspace-down,move-window-up-or-to-workspace-up,consume-or-expel-window-right};

# Move column
Mod+Ctrl+{h,j,k,l}
Mod+Ctrl+{Left,Down,Up,Right}
# Mod+Ctrl+{a,s,w,d}
	move-column-{left,to-workspace-down,to-workspace-up,right};

# Focus/move window/column to workspace
Mod{,+Shift,+Ctrl}+{1,2,3,4,5}
	{focus,move-window-to,move-column-to}-workspace {1,2,3,4,5};

Mod+{,Shift+}{s,d}
	{focus,move}-{window-up,window-down};

# Switch column size
# Mod+{z,x}
	# switch-preset-column-width{-back,};

Mod+{z,x,c}
	set-column-width "{35,50,65}%";
