[download]

config/i3/config

   1 title_align center
   2 font pango:Terminus 9
   3 smart_gaps inverse_outer
   4 
   5 default_border pixel 2
   6 default_floating_border normal 0
   7 
   8 set $i3 exec --no-startup-id ~/.config/i3/
   9 exec_always  --no-startup-id ~/.config/i3/watch
  10 
  11 # Bar {{{
  12 
  13 bar {
  14     position top
  15     status_command ~/.config/i3/status
  16     i3bar_command  i3bar --transparency
  17     modifier none
  18 
  19     colors {
  20         # background $bg
  21         background $ba
  22         statusline $fg
  23         focused_workspace  $fg $fg $bg
  24         inactive_workspace $bg $bg $fg
  25         urgent_workspace   $ug $ug $bg
  26     }
  27 }
  28 
  29 # }}}
  30 # Colors {{{
  31 
  32 set_from_resource $bg i3.background
  33 set_from_resource $ba i3.background_rgba
  34 set_from_resource $fg i3.foreground
  35 set_from_resource $ug i3.yellow1
  36 
  37 client.focused          $fg $fg $bg
  38 client.unfocused        $ba $ba $fg
  39 client.focused_inactive $ba $ba $fg
  40 client.urgent           $ug $ug $bg
  41 
  42 # }}}
  43 # Keys {{{
  44 
  45 floating_modifier Mod4
  46 bindsym --release button2 kill
  47 
  48 bindsym Mod4+q kill
  49 bindsym Mod4+z $i3swap
  50 bindsym Mod4+Shift+z     fullscreen toggle
  51 bindsym Mod4+Shift+space floating   toggle
  52 
  53 bindsym Mod4+Shift+s split v
  54 bindsym Mod4+Shift+v split h
  55 
  56 bindsym Mod1+Tab       $i3focus next
  57 bindsym Mod1+Shift+Tab $i3focus prev
  58 
  59 bindsym Mod4+Up    focus up
  60 bindsym Mod4+Down  focus down
  61 bindsym Mod4+Left  focus left
  62 bindsym Mod4+Right focus right
  63 
  64 bindsym Mod4+Shift+Up    move    up    50px
  65 bindsym Mod4+Shift+Down  move    down  50px
  66 bindsym Mod4+Shift+Left  $i3move left  50px
  67 bindsym Mod4+Shift+Right $i3move right 50px
  68 
  69 bindsym Mod4+Control+Up    $i3resize up    20
  70 bindsym Mod4+Control+Down  $i3resize down  20
  71 bindsym Mod4+Control+Left  $i3resize left  20
  72 bindsym Mod4+Control+Right $i3resize right 20
  73 
  74 bindsym Mod4+Tab       workspace next
  75 bindsym Mod4+Shift+Tab workspace prev
  76 
  77 bindsym Mod4+1 workspace 1
  78 bindsym Mod4+2 workspace 2
  79 bindsym Mod4+3 workspace 3
  80 bindsym Mod4+4 workspace 4
  81 bindsym Mod4+5 workspace 5
  82 
  83 bindsym Mod4+Shift+1 move to workspace 1
  84 bindsym Mod4+Shift+2 move to workspace 2
  85 bindsym Mod4+Shift+3 move to workspace 3
  86 bindsym Mod4+Shift+4 move to workspace 4
  87 bindsym Mod4+Shift+5 move to workspace 5
  88 
  89 bindsym Mod4+Control+s layout splitv
  90 bindsym Mod4+Control+v layout splith
  91 bindsym Mod4+Control+t layout tabbed
  92 bindsym Mod4+Control+g gaps inner all toggle 30; gaps horizontal all toggle 300
  93 
  94 bindsym Mod4+Control+b bar mode toggle
  95 
  96 # }}}
  97 # Rules {{{
  98 
  99 set $fl floating enable
 100 
 101 for_window [window_role="pop-up"] $fl
 102 for_window [class="Xfce4-(app|settings)"]     $fl
 103 for_window [class="mpv|Sxiv|Gpic*|Xviewer"]   $fl
 104 for_window [class="explorer.exe|Pavucontrol"] $fl
 105 
 106 # }}}
 107 
 108 # vim: ft=i3config