Advertisement
Guest User

i3 config file

a guest
Jun 29th, 2017
169
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.53 KB | None | 0 0
  1. # i3 config file
  2.  
  3. set $mod Mod1
  4. font pango:Cantarell Bold 14px
  5.  
  6. # Use Mouse+$mod to drag floating windows to their wanted position
  7. floating_modifier $mod
  8.  
  9. # start a terminal
  10. bindsym $mod+Return exec --no-startup-id urxvt
  11.  
  12. # kill focused window
  13. bindsym $mod+Shift+q kill
  14.  
  15. # start rofi
  16. bindsym $mod+d exec "rofi -show drun -lines 10 -opacity 10 "
  17. bindsym $mod+Shift+d exec "rofi -show window -lines 10 -opacity 10 "
  18.  
  19. # change focus
  20. #bindsym $mod+j focus left
  21. #bindsym $mod+k focus down
  22. #bindsym $mod+l focus up
  23. #bindsym $mod+semicolon focus right
  24.  
  25. # alternatively, you can use the cursor keys:
  26. bindsym $mod+Left focus left
  27. bindsym $mod+Down focus down
  28. bindsym $mod+Up focus up
  29. bindsym $mod+Right focus right
  30.  
  31. # move focused window
  32. bindsym $mod+Shift+j move left
  33. bindsym $mod+Shift+k move down
  34. bindsym $mod+Shift+l move up
  35. bindsym $mod+Shift+semicolon move right
  36.  
  37. # alternatively, you can use the cursor keys:
  38. bindsym $mod+Shift+Left move left
  39. bindsym $mod+Shift+Down move down
  40. bindsym $mod+Shift+Up move up
  41. bindsym $mod+Shift+Right move right
  42.  
  43. # split in horizontal orientation
  44. bindsym $mod+h split h
  45.  
  46. # split in vertical orientation
  47. bindsym $mod+v split v
  48.  
  49. # enter fullscreen mode for the focused container
  50. bindsym $mod+f fullscreen toggle
  51.  
  52. # change container layout (stacked, tabbed, toggle split)
  53. bindsym $mod+s layout stacking
  54. bindsym $mod+w layout tabbed
  55. bindsym $mod+e layout toggle split
  56.  
  57. # toggle tiling / floating
  58. bindsym $mod+Shift+space floating toggle
  59.  
  60. # change focus between tiling / floating windows
  61. bindsym $mod+space focus mode_toggle
  62.  
  63. # focus the parent container
  64. bindsym $mod+a focus parent
  65.  
  66. # focus the child container
  67. #bindsym $mod+d focus child
  68.  
  69. #scratchpad
  70. bindsym $mod+Shift+z move scratchpad
  71. bindsym $mod+z scratchpad show
  72.  
  73. # switch to workspace
  74. bindsym $mod+1 workspace 1
  75. bindsym $mod+2 workspace 2
  76. bindsym $mod+3 workspace 3
  77. bindsym $mod+4 workspace 4
  78. bindsym $mod+5 workspace 5
  79. bindsym $mod+6 workspace 6
  80. bindsym $mod+7 workspace 7
  81. bindsym $mod+8 workspace 8
  82. bindsym $mod+9 workspace 9
  83. bindsym $mod+0 workspace 10
  84.  
  85. # move focused container to workspace
  86. bindsym $mod+Shift+1 move container to workspace 1
  87. bindsym $mod+Shift+2 move container to workspace 2
  88. bindsym $mod+Shift+3 move container to workspace 3
  89. bindsym $mod+Shift+4 move container to workspace 4
  90. bindsym $mod+Shift+5 move container to workspace 5
  91. bindsym $mod+Shift+6 move container to workspace 6
  92. bindsym $mod+Shift+7 move container to workspace 7
  93. bindsym $mod+Shift+8 move container to workspace 8
  94. bindsym $mod+Shift+9 move container to workspace 9
  95. bindsym $mod+Shift+0 move container to workspace 10
  96.  
  97. bindsym $mod+Tab workspace next
  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
  105. #session.' -b 'Yes, exit i3' 'i3-msg exit'"
  106. #bindsym $mod+Shift+e exec oblogout
  107.  
  108. # Create Log out, Reboot, Poweroff bindings
  109. mode "Exit: (S)uspend, (R)eboot, (P)oweroff" {
  110. bindsym $mod+r exec systemctl reboot
  111. bindsym $mod+p exec poweroff
  112. bindsym $mod+s exec systemctl suspend
  113.  
  114. # back to normal: Enter or Escape
  115. bindsym Return mode "default"
  116. bindsym Escape mode "default"
  117. }
  118.  
  119. bindsym $mod+Shift+e mode "Exit: (S)uspend, (R)eboot, (P)oweroff"
  120.  
  121. # resize window (you can also use the mouse for that)
  122. mode "resize" {
  123. # These bindings trigger as soon as you enter the resize mode
  124.  
  125. # Pressing left will shrink the window’s width.
  126. # Pressing right will grow the window’s width.
  127. # Pressing up will shrink the window’s height.
  128. # Pressing down will grow the window’s height.
  129. bindsym j resize shrink width 10 px or 10 ppt
  130. bindsym k resize grow height 10 px or 10 ppt
  131. bindsym l resize shrink height 10 px or 10 ppt
  132. bindsym semicolon resize grow width 10 px or 10 ppt
  133.  
  134. # same bindings, but for the arrow keys
  135. bindsym Left resize shrink width 10 px or 10 ppt
  136. bindsym Down resize grow height 10 px or 10 ppt
  137. bindsym Up resize shrink height 10 px or 10 ppt
  138. bindsym Right resize grow width 10 px or 10 ppt
  139.  
  140. # back to normal: Enter or Escape
  141. bindsym Return mode "default"
  142. bindsym Escape mode "default"
  143. }
  144. bindsym $mod+r mode "resize"
  145.  
  146. #Startup stuffs
  147. exec --no-startup-id xrandr --output DVI-I-1 --right-of HDMI-1
  148. exec --no-startup-id nm-applet
  149. exec_always --no-startup-id nitrogen --set-zoom-fill $HOME/Pictures/wallpapers/planet.jpg
  150. exec_always --no-startup-id scrollset
  151. exec_always --no-startup-id compton -f
  152. exec_always --no-startup-id polybar left
  153. exec --no-startup-id xautolock -time 15 -locker "dm-tool lock" &
  154.  
  155. #Terminal in scratchpad
  156. exec --no-startup-id urxvt -name __scratchpad
  157. for_window [instance="__scratchpad"] move scratchpad
  158.  
  159. #Lock
  160. bindsym $mod+l exec --no-startup-id dm-tool lock
  161.  
  162. #gaps and borders
  163. gaps inner 20
  164. gaps outer 30
  165. new_window 1pixel
  166. smart_borders on
  167. for_window [class="^.*"] border pixel 0
  168.  
  169. # class border bground text indicator child_border
  170. client.focused #131620 #070015 #c7a57c #FFFFFF #c7a57c
  171. client.focused_inactive #333333 #070015 #c7a57c #FFFFFF #5F676A
  172. client.unfocused #333333 #070015 #c7a57c #FFFFFF #222222
  173. client.urgent #6f1515 #00FF9F #c7a57c #FFFFFF #6f1515
  174. client.placeholder #000000 #070015 #c7a576 #FFFFFF #0C0C0C
  175.  
  176. #Multimedia Keys
  177. # Pulse Audio controls
  178. bindsym XF86AudioRaiseVolume exec --no-startup-id pactl set-sink-volume 0 +5% #increase sound volume
  179. bindsym XF86AudioLowerVolume exec --no-startup-id pactl set-sink-volume 0 -5% #decrease sound volume
  180. bindsym XF86AudioMute exec --no-startup-id pactl set-sink-mute 0 toggle # mute sound
  181.  
  182. # Sreen brightness controls
  183. bindsym XF86MonBrightnessUp exec xbacklight -inc 20 # increase screen brightness
  184. bindsym XF86MonBrightnessDown exec xbacklight -dec 20 # decrease screen brightness
  185.  
  186. # Media player controls
  187. bindsym XF86AudioPlay exec playerctl play
  188. bindsym XF86AudioPause exec playerctl pause
  189. bindsym XF86AudioNext exec playerctl next
  190. bindsym XF86AudioPrev exec playerctl previous
  191.  
  192. #Prtscn
  193. bindsym Print exec --no-startup-id "scrot '%Y-%m-%d-%H-%M-%S-scrot.png' -e 'mv $f ~/Pictures/'"
  194.  
  195. ##Extra keybinds
  196. bindsym $mod+m exec firefox
  197. bindsym $mod+n exec thunar
  198. bindsym $mod+b exec subl3
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement