Advertisement
ayygiocasta

.config (for i3wm)

Jul 28th, 2017
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.60 KB | None | 0 0
  1. set $mod Mod1
  2.  
  3. # comment out these if you don't want/don't have i3-gaps
  4. gaps inner 20
  5. gaps outer -2
  6.  
  7. font pango: inconsolata 9
  8.  
  9. # move floating windows
  10. floating_modifier $mod
  11.  
  12. bindsym $mod+p exec qutebrowser
  13. bindsym $mod+o exec ranger
  14. bindsym $mod+Return exec urxvt
  15. bindsym $mod+Shift+q kill
  16. bindsym $mod+d exec dmenu_run
  17.  
  18. # change focus
  19. bindsym $mod+j focus left
  20. bindsym $mod+k focus down
  21. bindsym $mod+l focus up
  22. bindsym $mod+semicolon focus right
  23.  
  24. # alternatively, you can use the cursor keys:
  25. bindsym $mod+Left focus left
  26. bindsym $mod+Down focus down
  27. bindsym $mod+Up focus up
  28. bindsym $mod+Right focus right
  29.  
  30. # move focused window
  31. bindsym $mod+Shift+j move left
  32. bindsym $mod+Shift+k move down
  33. bindsym $mod+Shift+l move up
  34. bindsym $mod+Shift+semicolon move right
  35.  
  36. # alternatively, you can use the cursor keys:
  37. bindsym $mod+Shift+Left move left
  38. bindsym $mod+Shift+Down move down
  39. bindsym $mod+Shift+Up move up
  40. bindsym $mod+Shift+Right move right
  41.  
  42. # split in horizontal orientation
  43. bindsym $mod+h split h
  44.  
  45. # split in vertical orientation
  46. bindsym $mod+v split v
  47.  
  48. # enter fullscreen mode for the focused container
  49. bindsym $mod+f fullscreen toggle
  50.  
  51. # change container layout (stacked, tabbed, toggle split)
  52. bindsym $mod+q layout stacking
  53. bindsym $mod+w layout tabbed
  54. bindsym $mod+e layout toggle split
  55.  
  56. # toggle tiling / floating
  57. bindsym $mod+s floating toggle
  58.  
  59. # change focus between tiling / floating windows
  60. bindsym $mod+space focus mode_toggle
  61.  
  62.  
  63. # change workspace names here
  64. set $1 "1"
  65. set $2 "2"
  66. set $3 "3"
  67. set $4 "4"
  68. set $5 "5"
  69. set $6 "6"
  70. set $7 "7"
  71. set $8 "8"
  72. set $9 "9"
  73. set $0 "0"
  74.  
  75. # switch to workspace
  76. bindsym $mod+1 workspace $1
  77. bindsym $mod+2 workspace $2
  78. bindsym $mod+3 workspace $3
  79. bindsym $mod+4 workspace $4
  80. bindsym $mod+5 workspace $5
  81. bindsym $mod+6 workspace $6
  82. bindsym $mod+7 workspace $7
  83. bindsym $mod+8 workspace $8
  84. bindsym $mod+9 workspace $9
  85. bindsym $mod+0 workspace $0
  86.  
  87. # move focused container to workspace
  88. bindsym $mod+Shift+1 move container to workspace $1
  89. bindsym $mod+Shift+2 move container to workspace $2
  90. bindsym $mod+Shift+3 move container to workspace $3
  91. bindsym $mod+Shift+4 move container to workspace $4
  92. bindsym $mod+Shift+5 move container to workspace $5
  93. bindsym $mod+Shift+6 move container to workspace $6
  94. bindsym $mod+Shift+7 move container to workspace $7
  95. bindsym $mod+Shift+8 move container to workspace $8
  96. bindsym $mod+Shift+9 move container to workspace $9
  97. bindsym $mod+Shift+0 move container to workspace $0
  98.  
  99. # reload the configuration file
  100. bindsym $mod+Shift+c reload
  101. # restart i3 inplace (preserves your layout/session, can be used to upgrade i3)
  102. bindsym $mod+Shift+r restart
  103. # exit i3 (logs you out of your X session)
  104. bindsym $mod+Shift+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'"
  105.  
  106. # resize window (you can also use the mouse for that)
  107.  
  108. mode "resize" {
  109. bindsym j resize shrink width 10 px or 10 ppt
  110. bindsym k resize grow height 10 px or 10 ppt
  111. bindsym l resize shrink height 10 px or 10 ppt
  112. bindsym semicolon resize grow width 10 px or 10 ppt
  113.  
  114. # same bindings, but for the arrow keys
  115. bindsym Left resize shrink width 10 px or 10 ppt
  116. bindsym Down resize grow height 10 px or 10 ppt
  117. bindsym Up resize shrink height 10 px or 10 ppt
  118. bindsym Right resize grow width 10 px or 10 ppt
  119.  
  120. # back to normal: Enter or Escape
  121. bindsym Return mode "default"
  122. bindsym Escape mode "default"
  123. }
  124.  
  125. bindsym $mod+r mode "resize"
  126.  
  127. ## bar settings
  128. bar {
  129. status_command i3blocks -c ~/i3blocks.conf
  130. colors {
  131. # bord backgr txt
  132. focused_workspace #bc3962 #0e0d03 #bbbbbb
  133. inactive_workspace #424242 #0e0d03 #bbbbbb
  134. urgent_workspace #bc3962 #873e53 #bbbbbb
  135.  
  136.  
  137. background #0f0a13
  138. }
  139. position top
  140. }
  141.  
  142. #sets wallpaper
  143. exec_always feh --bg-scale ~/i/wallpaper.jpg
  144.  
  145. assign [class="firefox"] $1
  146. assign [class="urxvt"] $2
  147. ##new_window 1pixel
  148.  
  149. ## sets border width
  150. for_window[class="^.*"] border pixel 5
  151. for_window[class="^.*"] border color white
  152. ## you can also set your borders to 0px and uncomment this to get a 5px border only on the top side
  153. #font pango:Inconsolata 0
  154.  
  155.  
  156. ## border colors
  157.  
  158. # bord backgr txt indic chbord
  159. client.focused #383838 #0e0d0e #bbbbbb #4f4f4f #422138
  160. client.focused_inactive #1a1a1a #0d010d #424242 #121212 #0d010d
  161. client.unfocused #030706 #0d010d #4f4f4f #4f4f4f #0d010d
  162. client.urgent #1a1a1a #0d010d #a5a5a5 #1a1a1a #0d010d
  163. client.background #121212
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement