unbind-key all
unbind-mouse all

## config ##

# general
fontname 		"Fixed:size=8"
gap 			10 10 10 10	
snapdist 		10
moveamount 		3
ignore 			lemonbar
ignore			conky
ignore			dunst
borderwidth 	2
sticky			yes

# colors
color font 	    		'#c8ccd1'
color selfont			'#00abac'
color menufg 	    	'#050505'
color menubg			'#050505'
color inactiveborder	'#111115'
color activeborder	 	'#333345'

## program binds ##
bind-key 4-t		"st"
bind-key 4S-f	  	"flatpak run io.gitlab.librewolf-community"
bind-key 4-b		"tabbed -c vimb -e"
bind-key 4-Delete	"slock"

## wm functions ##

# binds #
bind-key 4-slash 	menu-window
bind-key 4-g		group-cycle
bind-key 4S-g		group-rcycle
bind-key 4-Tab 		window-cycle
bind-key 4S-Tab		window-rcycle
bind-key 4-d		menu-exec
bind-key 4-e		menu-cmd
bind-key 4S-x		window-close
bind-key 4S-r		restart	
bind-key 4S-q		quit
bind-key 4-space	window-group

bind-key 4-1		group-only-1
bind-key 4-2		group-only-2
bind-key 4-3		group-only-3
bind-key 4-4		group-only-4
bind-key 4S-1		window-movetogroup-1
bind-key 4S-2		window-movetogroup-2
bind-key 4S-3		window-movetogroup-3
bind-key 4S-4		window-movetogroup-4

# groups #
autogroup 1		"alacritty,Alacritty,st,st-256color"
autogroup 2		"firefox,Firefox,vimb"

# menu #
command "  "		"  "
command " * conf"   "st vim /home/kinas/.cwmrc"
command " / envs"	"st ssh luber@envs.net"
command " - kill"	xkill
command " $ libw"	"flatpak run io.gitlab.librewolf-community"
command " # pass" 	"passmenu"
command " $ scrt"	"/home/kinas/bin/scr/shot"
command " - size"   "/home/kinas/bin/scr/resize"
command " > term"	"/home/kinas/bin/scr/drawterm"	
command " $ vimb"	"tabbed -c vimb -e"
command " # webm" 	"/home/kinas/bin/scr/webdmenu"
command " " 		" " 

# window moving #
bind-key 4-m		window-maximize
bind-key 4-y		window-resize-up-big
bind-key 4S-y		window-resize-down-big
bind-key 4-u		window-resize-left-big
bind-key 4S-u		window-resize-right-big
bind-key 4CS-u		window-resize-left-big
bind-key 4C-y		window-resize-up
bind-key 4CS-y		window-resize-down
bind-key 4C-u		window-resize-left
bind-key 4CS-u		window-resize-right

bind-key 4-v		window-vtile
bind-key 4S-k 		window-snap-up
bind-key 4S-j		window-snap-down
bind-key 4S-h		window-snap-left
bind-key 4S-l		window-snap-right
bind-key 4-f 		window-fullscreen

bind-key 4S-Up		window-move-up-big
bind-key 4S-Down	window-move-down-big
bind-key 4S-Right	window-move-right-big
bind-key 4S-Left	window-move-left-big

# scripts
bind-key 4-c		winmove center
bind-key 4S-c		winmove recenter
bind-key 4-h		winmove left
bind-key 4-l		winmove right
bind-key 4-k		window-raise
bind-key 4-j		window-lower
bind-key 4-p		cmus-script notify	
bind-key 4-0		cmus-script prev
bind-key 4-equal	cmus-script next 
bind-key 4-o		cmus-script ppause

bind-key 4-Insert   bookman menu
bind-key 4S-b		bookman add

# volume keys
bind-key XF86AudioRaiseVolume vol raise	
bind-key XF86AudioLowerVolume vol lower
bind-key XF86AudioMute 		  vol toggle 

## mouse ##
bind-mouse 4-1 		window-move
bind-mouse 4-3 		window-resize
bind-mouse 3		menu-cmd

