Advertisement
Guest User

i3 config

a guest
Nov 17th, 2019
528
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.30 KB | None | 0 0
  1. # This file has been auto-generated by i3-confixg-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. # THEMEING
  15.  
  16. # window font
  17. font pango:inconsolata 10
  18.  
  19. # Use Mouse+$mod to drag floating windows to their wanted position
  20. floating_modifier $mod
  21.  
  22. # startup
  23. exec --no-startup-id xrdb ~/.Xresources
  24. exec_always --no-startup-id xfce4-power-manager
  25. exec_always --no-startup-id wal -R
  26. exec --no-startup-id amixer -c0 sset Master 100
  27. exec --no-startup-id xss-lock -- ~/.config/i3/lock.sh
  28. #exec_always --no-startup-id compton -b
  29. #exec_always --no-startup-id $HOME/.config/compton/launch.sh
  30. exec_always --no-startup-id compton --blur-background --blur-method kawase --blur-strength 10 --opacity-rule 75:'class_g *?="URxvt"' --backend glx --paint-on-overlay --vsync opengl-swc --blur-kern 3x3box --inactive-opacity 0.7 --opacity-rule 99:'class_g *?="Firefox"' --inactive-dim .10 --active-opacity 1.0
  31. exec_always --no-startup-id killall polybar; MONITOR=eDP-1 polybar example -c ~/.config/polybar/config
  32. #exec --no-startup-id sh -c "~/.scripts/wallblur.sh &"
  33. #exec --no-startup-id /home/poofter/.scripts/open-floating-on-ws.py
  34. exec --no-startup-id unclutter
  35.  
  36. # i3-gaps
  37. gaps inner 6
  38. gaps outer 6
  39. smart_gaps on
  40.  
  41. # title bar
  42. for_window [class="^.*"] border pixel 0, title_format " %title "
  43. new_window pixel
  44. new_float normal
  45. hide_edge_borders none
  46. popup_during_fullscreen smart
  47. border_radius 15
  48.  
  49. # lock
  50. bindsym ctrl+$mod+l exec --no-startup-id sleep 1 && xset dpms force suspend
  51.  
  52. # volume switcher
  53. #bindsym $mod+z exec ~/.scripts/volumeswticher
  54.  
  55. # rofi
  56. bindsym $mod+d exec rofi -show drun -width 20 -lines 5
  57.  
  58. # screenshot
  59. bindsym $mod+Print exec --no-startup-id i3-scrot
  60.  
  61. set $transparent #00000000
  62. # bar
  63. #bar {
  64. # font pango:mono 12
  65. # status_command i3blocks
  66. # position top
  67. # mode dock
  68. # modifier None
  69. # i3bar_command i3bar -t
  70. # colors {
  71. # statusline $white
  72. # background $transparent
  73. # separator #00000000
  74. #
  75. # BORDER BACKGROUND TEXT
  76. # focused_workspace $transparent $transparent $darkwhite
  77. # inactive_workspace $transparent $transparent $white
  78. # active_workspace $transparent $transparent $white
  79. # urgent_workspace $darkred $darkred $transparent
  80. # binding_mode $darkred $darkred $transparent
  81. # }
  82. #}
  83.  
  84. # window colors border backgr. text indicator child_border
  85. client.focused_inactive #d9d9d9 #212121 #d9d9d9 #d9d9d9 #d9d9d9
  86. client.unfocused #d9d9d9 #212121 #d9d9d9 #d9d9d9 #d9d9d9
  87. client.focused #bdecd3 #cecece #000000 #bdecd3 #bdecd3
  88.  
  89. # kill focused window
  90. bindsym $mod+q kill
  91.  
  92. # change focus
  93. bindsym $mod+h focus left
  94. bindsym $mod+j focus down
  95. bindsym $mod+k focus up
  96. bindsym $mod+l focus right
  97.  
  98. # alternatively, you can use the cursor keys:
  99. bindsym $mod+Left focus left
  100. bindsym $mod+Down focus down
  101. bindsym $mod+Up focus up
  102. bindsym $mod+Right focus right
  103.  
  104. # move focused window
  105. bindsym $mod+Shift+h move left
  106. bindsym $mod+Shift+j move down
  107. bindsym $mod+Shift+k move up
  108. bindsym $mod+Shift+l move right
  109.  
  110. # alternatively, you can use the cursor keys:
  111. bindsym $mod+Shift+Left move left
  112. bindsym $mod+Shift+Down move down
  113. bindsym $mod+Shift+Up move up
  114. bindsym $mod+Shift+Right move right
  115.  
  116. # split in vertical orientation
  117. bindsym $mod+v split v
  118.  
  119. # split in horizontal orientation
  120. bindsym $mod+b split h
  121.  
  122. # enter fullscreen mode for the focused container
  123. bindsym $mod+z fullscreen toggle
  124.  
  125. # change container layout (stacked, tabbed, toggle split)
  126. bindsym $mod+s layout stacking
  127. bindsym $mod+w layout tabbed
  128. bindsym $mod+e layout toggle split
  129.  
  130. # toggle tiling / floating
  131. bindsym $mod+space floating toggle
  132.  
  133. # change focus between tiling / floating windows
  134. bindsym $mod+Shift+space focus mode_toggle
  135.  
  136. # focus the parent container
  137. bindsym $mod+a focus parent
  138.  
  139. # focus the child container
  140. #bindsym $mod+d focus child
  141.  
  142. # Define names for default workspaces for which we configure key bindings later on.
  143. # We use variables to avoid repeating the names in multiple places.
  144. set $ws1 "1"
  145. set $ws2 "2"
  146. set $ws3 "3"
  147. set $ws4 "4"
  148. set $ws5 "5"
  149. set $ws6 "6"
  150. set $ws7 "7"
  151. set $ws8 "8"
  152. set $ws9 "9"
  153. set $ws10 "10"
  154.  
  155. # switch to workspace
  156. bindsym $mod+1 workspace number $ws1
  157. bindsym $mod+2 workspace number $ws2
  158. bindsym $mod+3 workspace number $ws3
  159. bindsym $mod+4 workspace number $ws4
  160. bindsym $mod+5 workspace number $ws5
  161. bindsym $mod+6 workspace number $ws6
  162. bindsym $mod+7 workspace number $ws7
  163. bindsym $mod+8 workspace number $ws8
  164. bindsym $mod+9 workspace number $ws9
  165. bindsym $mod+0 workspace number $ws10
  166.  
  167. # move focused container to workspace
  168. bindsym $mod+Shift+1 move container to workspace number $ws1
  169. bindsym $mod+Shift+2 move container to workspace number $ws2
  170. bindsym $mod+Shift+3 move container to workspace number $ws3
  171. bindsym $mod+Shift+4 move container to workspace number $ws4
  172. bindsym $mod+Shift+5 move container to workspace number $ws5
  173. bindsym $mod+Shift+6 move container to workspace number $ws6
  174. bindsym $mod+Shift+7 move container to workspace number $ws7
  175. bindsym $mod+Shift+8 move container to workspace number $ws8
  176. bindsym $mod+Shift+9 move container to workspace number $ws9
  177. bindsym $mod+Shift+0 move container to workspace number $ws10
  178.  
  179. # reload the configuration file
  180. bindsym $mod+Shift+c reload
  181. # restart i3 inplace (preserves your layout/session, can be used to upgrade i3)
  182. bindsym $mod+Shift+r restart
  183. # exit i3 (logs you out of your X session)
  184. 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'"
  185.  
  186. # resize window (you can also use the mouse for that)
  187. mode "resize" {
  188. # These bindings trigger as soon as you enter the resize mode
  189.  
  190. # Pressing left will shrink the window’s width.
  191. # Pressing right will grow the window’s width.
  192. # Pressing up will shrink the window’s height.
  193. # Pressing down will grow the window’s height.
  194. bindsym h resize shrink width 5 px or 5 ppt
  195. bindsym j resize grow height 5 px or 5 ppt
  196. bindsym k resize shrink height 5 px or 5 ppt
  197. bindsym l resize grow width 5 px or 5 ppt
  198.  
  199. # same bindings, but for the arrow keys
  200. bindsym Left resize shrink width 5 px or 5 ppt
  201. bindsym Down resize grow height 5 px or 5 ppt
  202. bindsym Up resize shrink height 5 px or 5 ppt
  203. bindsym Right resize grow width 5 px or 5 ppt
  204.  
  205. # back to normal: Enter or Escape or $mod+r
  206. bindsym Return mode "default"
  207. bindsym Escape mode "default"
  208. bindsym $mod+r mode "default"
  209. }
  210.  
  211. bindsym $mod+r mode "resize"
  212.  
  213. # assignments
  214. # assign [class="Thunderbird"] $ws2
  215.  
  216. # rules
  217. for_window [class="Nautilus"] floating enable resize set 853 480
  218. for_window [workspace="9"] floating enable
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement