dotfiles

my active dotfiles
git clone git://git.jakekoroman.com/dotfiles
Log | Files | Refs | README

config (6594B)


      1 # This file has been auto-generated by i3-config-wizard(1).
      2 # It will not be overwritten, so edit it as you like.
      3 #
      4 # Should you change your keyboard layout some time, delete
      5 # this file and re-run i3-config-wizard(1).
      6 #
      7 
      8 # i3 config file (v4)
      9 #
     10 # Please see https://i3wm.org/docs/userguide.html for a complete reference!
     11 
     12 set $mod Mod4
     13 
     14 font pango:Iosevka 10
     15 
     16 default_border pixel 2px
     17 
     18 # class                 border  backgr. text    indicator child_border
     19 client.focused          #8bd49c #171d23 #ffffff #dddfff   #396847
     20 client.focused_inactive #333333 #5f676a #e4e4ef #484e50   #5f676a
     21 client.unfocused        #333333 #222222 #888888 #292d2e   #222222
     22 client.urgent           #2f343a #900000 #e4e4ef #900000   #f43841
     23 client.placeholder      #000000 #0c0c0c #e4e4ef #000000   #0c0c0c
     24 client.background       #ffffff
     25 
     26 # Start XDG autostart .desktop files using dex. See also
     27 # https://wiki.archlinux.org/index.php/XDG_Autostart
     28 exec --no-startup-id dex --autostart --environment i3
     29 
     30 exec --no-startup-id sxhkd
     31 
     32 # Use pactl to adjust volume in PulseAudio.
     33 set $refresh_i3status killall -SIGUSR1 i3status
     34 bindsym XF86AudioRaiseVolume exec --no-startup-id wpctl set-volume @DEFAULT_SINK@ 2%+ && $refresh_i3status
     35 bindsym XF86AudioLowerVolume exec --no-startup-id wpctl set-volume @DEFAULT_SINK@ 2%- && $refresh_i3status
     36 bindsym XF86AudioMute exec --no-startup-id wpctl set-mute @DEFAULT_SINK@ toggle && $refresh_i3status
     37 bindsym XF86AudioMicMute exec --no-startup-id pactl set-source-mute @DEFAULT_SOURCE@ toggle && $refresh_i3status
     38 
     39 # Use Mouse+$mod to drag floating windows to their wanted position
     40 floating_modifier $mod
     41 
     42 # move tiling windows via drag & drop by left-clicking into the title bar,
     43 # or left-clicking anywhere into the window while holding the floating modifier.
     44 tiling_drag modifier titlebar
     45 
     46 # start a terminal
     47 bindsym $mod+Return exec $TERMINAL
     48 
     49 # kill focused window
     50 bindsym $mod+q kill
     51 
     52 # start dmenu (a program launcher)
     53 bindsym $mod+p exec --no-startup-id dmenu_run
     54 
     55 # move focus by monitor
     56 bindsym $mod+period move workspace to output right
     57 bindsym $mod+comma move workspace to output left
     58 
     59 # change focus
     60 bindsym $mod+n focus left
     61 bindsym $mod+e focus down
     62 bindsym $mod+i focus up
     63 bindsym $mod+o focus right
     64 
     65 # alternatively, you can use the cursor keys:
     66 bindsym $mod+Left focus left
     67 bindsym $mod+Down focus down
     68 bindsym $mod+Up focus up
     69 bindsym $mod+Right focus right
     70 
     71 # move focused window
     72 bindsym $mod+Shift+n move left
     73 bindsym $mod+Shift+e move down
     74 bindsym $mod+Shift+i move up
     75 bindsym $mod+Shift+o move right
     76 
     77 # alternatively, you can use the cursor keys:
     78 bindsym $mod+Shift+Left move left
     79 bindsym $mod+Shift+Down move down
     80 bindsym $mod+Shift+Up move up
     81 bindsym $mod+Shift+Right move right
     82 
     83 # split in horizontal orientation
     84 bindsym $mod+h split h
     85 
     86 # split in vertical orientation
     87 bindsym $mod+v split v
     88 
     89 # enter fullscreen mode for the focused container
     90 bindsym $mod+f fullscreen toggle
     91 
     92 # change container layout (stacked, tabbed, toggle split)
     93 bindsym $mod+s layout stacking
     94 bindsym $mod+m layout tabbed
     95 bindsym $mod+g layout toggle split
     96 
     97 # scratchpad
     98 bindsym $mod+Shift+semicolon move scratchpad
     99 bindsym $mod+semicolon scratchpad show
    100 
    101 # toggle tiling / floating
    102 bindsym $mod+t floating toggle
    103 
    104 # change focus between tiling / floating windows
    105 bindsym $mod+Tab focus mode_toggle
    106 
    107 # focus the parent container
    108 bindsym $mod+a focus parent
    109 
    110 # focus the child container
    111 #bindsym $mod+d focus child
    112 
    113 # Define names for default workspaces for which we configure key bindings later on.
    114 # We use variables to avoid repeating the names in multiple places.
    115 set $ws1 "1"
    116 set $ws2 "2"
    117 set $ws3 "3"
    118 set $ws4 "4"
    119 set $ws5 "5"
    120 set $ws6 "6"
    121 set $ws7 "7"
    122 set $ws8 "8"
    123 set $ws9 "9"
    124 set $ws10 "10"
    125 
    126 # switch to workspace
    127 bindsym $mod+1 workspace number $ws1
    128 bindsym $mod+2 workspace number $ws2
    129 bindsym $mod+3 workspace number $ws3
    130 bindsym $mod+4 workspace number $ws4
    131 bindsym $mod+5 workspace number $ws5
    132 bindsym $mod+6 workspace number $ws6
    133 bindsym $mod+7 workspace number $ws7
    134 bindsym $mod+8 workspace number $ws8
    135 bindsym $mod+9 workspace number $ws9
    136 bindsym $mod+0 workspace number $ws10
    137 
    138 # move focused container to workspace
    139 bindsym $mod+Shift+1 move container to workspace number $ws1
    140 bindsym $mod+Shift+2 move container to workspace number $ws2
    141 bindsym $mod+Shift+3 move container to workspace number $ws3
    142 bindsym $mod+Shift+4 move container to workspace number $ws4
    143 bindsym $mod+Shift+5 move container to workspace number $ws5
    144 bindsym $mod+Shift+6 move container to workspace number $ws6
    145 bindsym $mod+Shift+7 move container to workspace number $ws7
    146 bindsym $mod+Shift+8 move container to workspace number $ws8
    147 bindsym $mod+Shift+9 move container to workspace number $ws9
    148 bindsym $mod+Shift+0 move container to workspace number $ws10
    149 
    150 # reload the configuration file
    151 bindsym $mod+Shift+q reload
    152 # restart i3 inplace (preserves your layout/session, can be used to upgrade i3)
    153 bindsym $mod+Shift+r restart
    154 bindsym $mod+Control+e exec "i3-nagbar -t warning -m 'You pressed the exit shortcut. Do you really want to exit i3? This will end your X session.' -B 'Yes, exit i3' 'i3-msg exit'"
    155 
    156 set $resize_amount 2
    157 
    158 mode "resize" {
    159 	bindsym n resize shrink width $resize_amount px or $resize_amount ppt
    160 	bindsym e resize grow height $resize_amount px or $resize_amount ppt
    161 	bindsym i resize shrink height $resize_amount px or $resize_amount ppt
    162 	bindsym o resize grow width $resize_amount px or $resize_amount ppt
    163 
    164 	bindsym Left resize shrink width $resize_amount px or $resize_amount ppt
    165 	bindsym Down resize grow height $resize_amount px or $resize_amount ppt
    166 	bindsym Up resize shrink height $resize_amount px or $resize_amount ppt
    167 	bindsym Right resize grow width $resize_amount px or $resize_amount ppt
    168 
    169 	bindsym Return mode "default"
    170 	bindsym Escape mode "default"
    171 	bindsym $mod+r mode "default"
    172 }
    173 
    174 bindsym $mod+r mode "resize"
    175 
    176 mode "mpd" {
    177 	bindsym p exec mpc toggle
    178 	bindsym n exec mpc next
    179 	bindsym j exec mpc seek -00:00:10
    180 	bindsym l exec mpc seek +00:00:10
    181 
    182 	bindsym Return mode "default"
    183 	bindsym Escape mode "default"
    184 	bindsym $mod+p mode "default"
    185 }
    186 
    187 bindsym $mod+z mode "mpd"
    188 
    189 for_window [class="floatterm"] floating enable
    190 
    191 bar {
    192 	status_command i3status
    193 	tray_output primary
    194 	position top
    195 
    196 	colors {
    197 		background #171d23
    198 		statusline #ffffff
    199 		separator #666666
    200 
    201 		#                  border  background  text
    202 		focused_workspace  #8bd49c #171d23     #ffffff
    203 		active_workspace   #333333 #5f676a     #f5f5f5
    204 		inactive_workspace #333333 #222222     #888888
    205 		urgent_workspace   #2f343a #D9534F     #f5f5f5
    206 		binding_mode	   #2f343a #900000     #f5f5f5
    207 	}
    208 }