diff --git a/i3/config b/i3/config index 5c6dbc1..3ffa09d 100644 --- a/i3/config +++ b/i3/config @@ -6,9 +6,11 @@ set $usertitle bro set $usertype man set $term $HOME/.config/i3/terminal.sh -set $termexec xfce4-terminal +set $termexec i3-sensible-terminal set $barlaunchcmd $HOME/.config/polybar/launch.sh +set $volumeStep 5 + ######################## # i3 basic preferences # {{{1 ######################## @@ -100,11 +102,33 @@ bindsym $mod+XF86Display exec arandr bindsym XF86Display exec --no-startup-id $HOME/.config/i3/monitors.sh +set $mpdmode "local mpd: [ ] play/pause, [k/j] prev/next, [h/l] rwnd/ffwd, [u/d] vol, [enter] open client" +mode $mpdmode { + bindsym space exec --no-startup-id mpc toggle + bindsym j exec --no-startup-id mpc next + bindsym k exec --no-startup-id mpc cdprev + bindsym h exec --no-startup-id mpc seek -5 + bindsym l exec --no-startup-id mpc seek +5 + bindsym Backspace exec --no-startup-id mpc seek 0% + bindsym s exec --no-startup-id mpc stop + bindsym u exec --no-startup-id pamixer -i $volumeStep + bindsym d exec --no-startup-id pamixer -d $volumeStep + bindsym Return exec mpdclient, mode "default" + bindsym KP_Enter exec mpdclient, mode "default" + bindsym o exec mpdclient, mode "default" + + # back to normal: Escape or mod+r + bindsym Escape mode "default" + bindsym $mod+m mode "default" +} + +bindsym $mod+m mode $mpdmode + + ############################# # Keyboard function buttons # {{{1 ############################# -set $volumeStep 5 bindsym XF86AudioLowerVolume exec --no-startup-id pamixer -d $volumeStep bindsym XF86AudioRaiseVolume exec --no-startup-id pamixer -i $volumeStep bindsym XF86AudioMute exec --no-startup-id pamixer -t @@ -153,7 +177,7 @@ bindsym $mod+Shift+Up move up bindsym $mod+Shift+Right move right # split in horizontal orientation -bindsym $mod+m split h +bindsym $mod+b split h # split in vertical orientation bindsym $mod+v split v