# i3 config file # launchers

# start a regular terminal
bindsym $mod+Return exec "urxvtcd"

# help center
bindsym $mad+F1 exec "nakedhelp"

# dotcleaner
bindsym $mad+BackSpace exec --no-startup-id "dotcleaner"

# apps launchers
bindsym $mad+r exec "urxvtcd -e lf"
bindsym $mad+Shift+r exec "pcmanfm --no-desktop"
bindsym $mad+e exec "urxvtcd -e vim"
bindsym $mad+Shift+e exec "geany"
bindsym $mad+x exec "urxvtcd -name irc -title irc -e weechat-curses"
#bindsym Mod4+Shift+x exec "thunderbird"
bindsym $mad+w exec "nakedbrowser"
#bindsym Mod4+Shift+w exec "firefox"
bindsym $mad+m exec "urxvtcd -name btop -e btop"
bindsym $mad+Ctrl+w exec --no-startup-id "nakedwalls"

# screen temperature day/night
bindsym $mad+Shift+s exec --no-startup-id "$HOME/.config/polybar/screentemp toggle"

# lockscreen
bindsym $mad+l exec --no-startup-id "nakedquit lock"

# audio bindings
bindsym $mad+v exec "xterm -name sound -e alsamixer"
bindsym XF86AudioRaiseVolume exec --no-startup-id "amixer -q sset Master 1%+ unmute"
bindsym XF86AudioLowerVolume exec --no-startup-id "amixer -q sset Master 1%- unmute"
bindsym XF86AudioMute exec --no-startup-id "amixer set Master toggle"
bindsym XF86AudioMicMute exec --no-startup-id "amixer set Capture toggle"

# mocp bindings
bindsym $mad+z exec "urxvtcd -name player -e mocp"
bindsym XF86AudioPrev exec --no-startup-id "mocp --previous"
bindsym XF86AudioPlay exec --no-startup-id "mocp --toggle-pause"
bindsym XF86AudioNext exec --no-startup-id "mocp --next"

# start rofi (a program launcher)
bindsym $mod+d exec "rofi -modi 'run,drun,window,ssh' -show run -sidebar-mode"
bindsym $mod+p exec --no-startup-id "popmenu 0"

# start tkmenu if installed
bindsym $mod+Ctrl+m exec "tkmenu"

# start search
bindsym $mad+f exec "nakedlocate"

# print screen
bindsym --release Print exec "scrot $HOME/screenshot-$(date +%Y%m%d-%H%M%S).png"

# print selected area
bindsym --release $mad+Print exec "scrot --line style=solid,width=3,color='red' --select --freeze $HOME/screenshot-$(date +%Y%m%d-%H%M%S).png"
