unbind-key all
unbind-mouse all

## config ##

# general
fontname 		"Fixed:size=8"
gap 			10 10 10 10	
snapdist 		10
moveamount 		5
ignore 			lemonbar
ignore			conky
vtile			100
borderwidth 	2

# colors
color font 			'#a8aaa7'
color menufg 		'#a8aaa7'
color menubg		'#000000'
color inactiveborder '#111115'
color activeborder	 '#333345'

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

## wm functions ##

# binds #
bind-key 4-slash 	menu-window
bind-key 4-f 		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"

# programs #
command firefox		firefox
command term		alacritty
command envs		"st ssh luber@envs.net"
command scr		"flameshot gui"
command fzf		"st fzf --preview='bat --color=always /'"
command vi		"st vim" 
command b		"tabbed -c vimb -e"
command config 	"st vim /home/kinas/.cwmrc"
command pass 	"passmenu"
command lw		"flatpak run io.gitlab.librewolf-community"
command kil		xkill

# 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 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		/home/kinas/bin/scr/winmove center
bind-key 4-h		/home/kinas/bin/scr/winmove left
bind-key 4-l		/home/kinas/bin/scr/winmove right
bind-key 4-k		window-raise
bind-key 4-j		window-lower
bind-key 4-p		/home/kinas/bin/scr/cmus notify	
bind-key 4-0		/home/kinas/bin/scr/cmus prev
bind-key 4-equal	/home/kinas/bin/scr/cmus next 
bind-key 4-o		/home/kinas/bin/scr/cmus ppause

bind-key 4-Insert   /home/kinas/bin/scr/bookman menu
bind-key 4S-B		/home/kinas/bin/scr/bookman add

# volume keys
bind-key XF86AudioRaiseVolume /home/kinas/bin/scr/vol raise	
bind-key XF86AudioLowerVolume /home/kinas/bin/scr/vol lower
bind-key XF86AudioMute 		  /home/kinas/bin/scr/vol toggle 

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

exec				feh --bg-scale /home/kinas/usr/img/wallpaper.png
