X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=.config%2Fi3%2Fconfig_base;h=d3bcecefb721bcb4508ac4d6c98f704cefddea0c;hb=b5298907cc5a6e1f1553ae180e41247943986750;hp=0545164186cf01cc57977c1496cb5a34bd02c38b;hpb=dc882b94806e3f90e6c13cc65ccbb83f767eb206;p=x_base.git diff --git a/.config/i3/config_base b/.config/i3/config_base index 0545164..d3bcece 100644 --- a/.config/i3/config_base +++ b/.config/i3/config_base @@ -1,10 +1,4 @@ -# This file has been auto-generated by i3-config-wizard(1). -# It will not be overwritten, so edit it as you like. -# -# Should you change your keyboard layout some time, delete -# this file and re-run i3-config-wizard(1). -# - +# -*- mode: conf -*- # i3 config file (v4) # # Please see http://i3wm.org/docs/userguide.html for a complete reference! @@ -40,7 +34,8 @@ bindsym $mod+Shift+q kill # There also is the (new) i3-dmenu-desktop which only displays applications # shipping a .desktop file. It is a wrapper around dmenu, so you need that # installed. -bindsym $mod+d exec --no-startup-id i3-dmenu-desktop +bindsym $mod+d exec --no-startup-id i3-dmenu-desktop --dmenu='rofi -dmenu' +bindsym $mod+q exec --no-startup-id rofi -show window # change focus bindsym $mod+j focus left @@ -66,6 +61,28 @@ bindsym $mod+Shift+Down move down bindsym $mod+Shift+Up move up bindsym $mod+Shift+Right move right +# move focused window +bindsym $mod+Control+Shift+j move container to output left +bindsym $mod+Control+Shift+k move container to output down +bindsym $mod+Control+Shift+l move container to output up +bindsym $mod+Control+Shift+semicolon move container to output right + +bindsym $mod+Control+Shift+Left move container to output left +bindsym $mod+Control+Shift+Down move container to output down +bindsym $mod+Control+Shift+Up move container to output up +bindsym $mod+Control+Shift+Right move container to output right + +# alternatively, you can use the cursor keys: +bindsym $mod+Control+j move workspace to output left +bindsym $mod+Control+k move workspace to output down +bindsym $mod+Control+l move workspace to output up +bindsym $mod+Control+semicolon move workspace to output right + +bindsym $mod+Control+Left move workspace to output left +bindsym $mod+Control+Down move workspace to output down +bindsym $mod+Control+Up move workspace to output up +bindsym $mod+Control+Right move workspace to output right + # split in horizontal orientation bindsym $mod+h split h @@ -93,9 +110,9 @@ bindsym $mod+a focus parent #bindsym $mod+d focus child # switch to workspace -bindsym $mod+1 workspace 1 -bindsym $mod+2 workspace 2 -bindsym $mod+3 workspace 3 +bindsym $mod+1 workspace "1: emacs" +bindsym $mod+2 workspace "2: mutt" +bindsym $mod+3 workspace "3: browser" bindsym $mod+4 workspace 4 bindsym $mod+5 workspace 5 bindsym $mod+6 workspace 6 @@ -105,9 +122,9 @@ bindsym $mod+9 workspace 9 bindsym $mod+0 workspace 10 # move focused container to workspace -bindsym $mod+Shift+1 move container to workspace 1 -bindsym $mod+Shift+2 move container to workspace 2 -bindsym $mod+Shift+3 move container to workspace 3 +bindsym $mod+Shift+1 move container to workspace "1: emacs" +bindsym $mod+Shift+2 move container to workspace "2: mutt" +bindsym $mod+Shift+3 move container to workspace "3: browser" bindsym $mod+Shift+4 move container to workspace 4 bindsym $mod+Shift+5 move container to workspace 5 bindsym $mod+Shift+6 move container to workspace 6 @@ -117,7 +134,7 @@ bindsym $mod+Shift+9 move container to workspace 9 bindsym $mod+Shift+0 move container to workspace 10 # reload the configuration file -bindsym $mod+Shift+c reload +bindsym $mod+Shift+c exec "sh -c '[ -x ~/.config/i3/build_config.sh ] && ~/.config/i3/build_config.sh; i3-msg reload'" # restart i3 inplace (preserves your layout/session, can be used to upgrade i3) bindsym $mod+Shift+r restart # exit i3 (logs you out of your X session) @@ -149,9 +166,25 @@ mode "resize" { bindsym $mod+r mode "resize" +# media keys +bindsym XF86AudioRaiseVolume exec --no-startup-id sh -c "pactl set-sink-volume `pacmd list-sinks | awk -F': ' '/* index/{print $2}'` +5%" #increase sound volume +bindsym XF86AudioLowerVolume exec --no-startup-id sh -c "pactl set-sink-volume `pacmd list-sinks | awk -F': ' '/* index/{print $2}'` -5%" #decrease sound volume +bindsym XF86AudioMute exec --no-startup-id sh -c "pactl set-sink-mute `pacmd list-sinks | awk -F': ' '/* index/{print $2}'` toggle" # mute sound +bindsym XF86AudioMicMute exec --no-startup-id sh -c "pactl set-source-mute `pacmd list-sources | awk -F': ' '/* index/{print $2}'` toggle" # mute mic +bindsym XF86AudioNext exec --no-startup-id mpc next +bindsym XF86AudioPrev exec --no-startup-id mpc prev + +# brightness +bindsym XF86MonBrightnessUp exec xbacklight -inc 5 # increase screen brightness +bindsym XF86MonBrightnessDown exec xbacklight -dec 5 # decrease screen brightness + +# seach/tools/wlan/display +bindsym XF86WLAN exec sh -c "if (/usr/sbin/rfkill list|grep -q 'blocked yes' ); then /usr/sbin/rfkill unblock all; else /usr/sbin/rfkill block all; fi;" +#bindsym XF86Display exec presentation_mode + # Start i3bar to display a workspace bar (plus the system information i3status # finds out, if available) bar { - status_command i3status - tray_output primary + status_command i3status + tray_output primary }