Advertisement
Guest User

i3 config

a guest
Jan 19th, 2019
104
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 9.57 KB | None | 0 0
  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 somewhen, delete
  5. # this file and re-run i3-config-wizard(1).
  6. #
  7.  
  8. # i3 config file (v4)
  9. #
  10. # Please see http://i3wm.org/docs/userguide.html for a complete reference!
  11.  
  12. set $mod Mod4
  13.  
  14. ############ i3
  15. #set-option -g lock-command vlock
  16. ############ i3-gaps
  17. #hide_edge_borders both
  18. for_window [class="^.*"] border pixel 3
  19. gaps inner 10
  20. gaps outer 0
  21. smart_gaps on
  22. smart_borders on
  23.  
  24. # Font for window titles. Will also be used by the bar unless a different font
  25. # is used in the bar {} block below. ISO 10646 = Unicode
  26. font pango:DejaVu Sans Mono, Awesome 8
  27. # The font above is very space-efficient, that is, it looks good, sharp and
  28. # clear in small sizes. However, if you need a lot of unicode glyphs or
  29. # right-to-left text rendering, you should instead use pango for rendering and
  30. # chose a FreeType font, such as:
  31. # font pango:DejaVu Sans Mono 10
  32.  
  33. # Use Mouse+$mod to drag floating windows to their wanted position
  34. floating_modifier $mod
  35. # Use xprop to get window information
  36. for_window [class="^Termite$" title="ssh-add"] floating enable
  37. for_window [class="Yad" title="DVI-I-1-1"] floating enable, move container to output DVI-I-1-1
  38. for_window [class="Yad" title="DVI-I-2-2"] floating enable, move container to output DVI-I-2-2
  39. for_window [class="Yad" title="eDP1-1"] floating enable, move container to output eDP1-1
  40. for_window [class="Blueman-manager"] floating enable
  41. for_window [class="keepassxc"] floating enable
  42. for_window [class="Bitcoin-Qt"] floating enable
  43. for_window [class="Astroid"] move container to workspace 2
  44. for_window [class="feh"] floating enable
  45. for_window [class="vimb"] move container to workspace 3
  46.  
  47. workspace 1 output DVI-I-1-1
  48. workspace 2 output DVI-I-1-1
  49. workspace 3 output DVI-I-2-2
  50. workspace 4 output DVI-I-1-1
  51. workspace 5 output DVI-I-1-1
  52. workspace 6 output eDP-1
  53. workspace 7 output DVI-I-2-2
  54.  
  55. bindsym --release Print exec import /home/ser/screenshot-`date +"%Y%m%dT%H:%M"`.png
  56. #bindsym $mod+Shift+I exec /home/ser/bin/id-displays
  57.  
  58. # start a terminal
  59. bindsym $mod+Return exec /usr/bin/termite
  60.  
  61. bindsym XF86Search exec /usr/bin/disper -C --cycle-stages="-S:-e"
  62.  
  63. # kill focused window
  64. bindsym $mod+Shift+x kill
  65. bindsym $mod+Shift+q kill
  66.  
  67. # rofi -levenshtein-sort -combi-modi window,run,run,ssh -show combi -modi combi
  68. # run,drun,window,ssh
  69. bindsym $mod+d exec rofi -show run -fg "#f1f1f1" -bg "#333333" -hlfg "#ffffff" -hlbg "#336699" -o 85
  70. bindsym $mod+Shift+D exec rofi -show ssh -fg "#f1f1f1" -bg "#333333" -hlfg "#ffffff" -hlbg "#336699" -o 85
  71.  
  72. # change focus
  73. bindsym $mod+j focus left
  74. bindsym $mod+k focus down
  75. bindsym $mod+l focus up
  76. bindsym $mod+h focus right
  77.  
  78. # alternatively, you can use the cursor keys:
  79. bindsym $mod+Left focus left
  80. bindsym $mod+Down focus down
  81. bindsym $mod+Up focus up
  82. bindsym $mod+Right focus right
  83.  
  84. # move focused window
  85. bindsym $mod+Shift+J move left
  86. bindsym $mod+Shift+K move down
  87. bindsym $mod+Shift+L move up
  88. bindsym $mod+Shift+H move right
  89.  
  90. # alternatively, you can use the cursor keys:
  91. bindsym $mod+Shift+Left move left
  92. bindsym $mod+Shift+Down move down
  93. bindsym $mod+Shift+Up move up
  94. bindsym $mod+Shift+Right move right
  95.  
  96. # move workspace to display
  97. bindsym $mod+Control+Right move workspace to right
  98. bindsym $mod+Control+Left move workspace to left
  99.  
  100. # split in horizontal orientation
  101. bindsym $mod+Shift+v split h
  102.  
  103. # split in vertical orientation
  104. bindsym $mod+v split v
  105.  
  106. # enter fullscreen mode for the focused container
  107. bindsym $mod+f fullscreen
  108.  
  109. # change container layout (stacked, tabbed, toggle split)
  110. bindsym $mod+s layout stacking
  111. bindsym $mod+w layout tabbed
  112. bindsym $mod+e layout toggle split
  113.  
  114. # toggle tiling / floating
  115. bindsym $mod+Shift+space floating toggle
  116.  
  117. # change focus between tiling / floating windows
  118. bindsym $mod+space focus mode_toggle
  119.  
  120. # focus the parent container
  121. bindsym $mod+a focus parent
  122.  
  123. # focus the child container
  124. bindsym $mod+c focus child
  125.  
  126. # switch to workspace
  127. bindsym $mod+1 workspace 1
  128. bindsym $mod+2 workspace 2
  129. bindsym $mod+3 workspace 3
  130. bindsym $mod+4 workspace 4
  131. bindsym $mod+5 workspace 5
  132. bindsym $mod+6 workspace 6
  133. bindsym $mod+7 workspace 7
  134. bindsym $mod+8 workspace 8
  135. bindsym $mod+9 workspace 9
  136. bindsym $mod+0 workspace 10
  137.  
  138. # move focused container to workspace
  139. bindsym $mod+Shift+1 move container to workspace 1
  140. bindsym $mod+Shift+2 move container to workspace 2
  141. bindsym $mod+Shift+3 move container to workspace 3
  142. bindsym $mod+Shift+4 move container to workspace 4
  143. bindsym $mod+Shift+5 move container to workspace 5
  144. bindsym $mod+Shift+6 move container to workspace 6
  145. bindsym $mod+Shift+7 move container to workspace 7
  146. bindsym $mod+Shift+8 move container to workspace 8
  147. bindsym $mod+Shift+9 move container to workspace 9
  148. bindsym $mod+Shift+0 move container to workspace 10
  149.  
  150. # reload the configuration file
  151. bindsym $mod+Shift+C reload
  152. # restart i3 inplace (preserves your layout/session, can be used to upgrade i3)
  153. bindsym $mod+Shift+R restart
  154. # exit i3 (logs you out of your X session)
  155. #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'"
  156. bindsym $mod+Shift+E exec "i3-msg exit"
  157.  
  158. # Switch the screen layout to: LCD only; three screen layout
  159. bindsym $mod+Control+l exec "~/bin/dock layout"
  160. # Toggle the touchpad
  161. bindsym $mod+t exec "~/bin/touchpad"
  162. # Move focused floating window to the scratchpad
  163. bindsym $mod+minus move scratchpad
  164. # Restore scratchpad windows
  165. bindsym $mod+Shift+minus scratchpad show
  166.  
  167. # resize window (you can also use the mouse for that)
  168. mode "resize" {
  169. # These bindings trigger as soon as you enter the resize mode
  170.  
  171. # Pressing left will shrink the window’s width.
  172. # Pressing right will grow the window’s width.
  173. # Pressing up will shrink the window’s height.
  174. # Pressing down will grow the window’s height.
  175. bindsym j resize shrink width 10 px or 10 ppt
  176. bindsym k resize grow height 10 px or 10 ppt
  177. bindsym l resize shrink height 10 px or 10 ppt
  178. bindsym semicolon resize grow width 10 px or 10 ppt
  179.  
  180. # same bindings, but for the arrow keys
  181. bindsym Left resize shrink width 10 px or 10 ppt
  182. bindsym Down resize grow height 10 px or 10 ppt
  183. bindsym Up resize shrink height 10 px or 10 ppt
  184. bindsym Right resize grow width 10 px or 10 ppt
  185.  
  186. # back to normal: Enter or Escape
  187. bindsym Return mode "default"
  188. bindsym Escape mode "default"
  189. }
  190.  
  191. bindsym $mod+r mode "resize"
  192.  
  193. # Sreen brightness controls
  194. # sudo should be pkexec except for the fucking forking
  195. bindsym XF86MonBrightnessUp exec true $(pkexec brillo -A 10)
  196. bindsym XF86MonBrightnessDown exec true $(pkexec brillo -U 10)
  197.  
  198. # Media player controls
  199. bindsym XF86AudioPlay exec playerctl play
  200. bindsym XF86AudioPause exec playerctl pause
  201. bindsym XF86AudioNext exec playerctl next
  202. bindsym XF86AudioPrev exec playerctl previous
  203.  
  204. bindsym $mod+Shift+M exec /home/ser/bin/monitors
  205. bindsym $mod+Shift+S exec catfish
  206. bindsym $mod+x exec /home/ser/bin/superlock
  207. #bindsym $mod+Shift+X exec dbus-send --system --print-reply --dest=org.freedesktop.login1 /org/freedesktop/login1 "org.freedesktop.login1.Manager.Suspend" boolean:true
  208.  
  209. #################################################
  210. # Sleep functions
  211. set $Locker /home/ser/bin/superlock
  212.  
  213. set $mode_system System (l) lock, (e) logout, (s) suspend, (h) hibernate, (r) reboot, (Shift+s) shutdown
  214. mode "$mode_system" {
  215. bindsym l exec --no-startup-id $Locker, mode "default"
  216. bindsym e exec --no-startup-id i3-msg exit, mode "default"
  217. bindsym s exec --no-startup-id $Locker && systemctl suspend, mode "default"
  218. bindsym h exec --no-startup-id $Locker && systemctl hibernate, mode "default"
  219. bindsym r exec --no-startup-id systemctl reboot, mode "default"
  220. bindsym Shift+s exec --no-startup-id systemctl poweroff -i, mode "default"
  221.  
  222. # back to normal: Enter or Escape
  223. bindsym Return mode "default"
  224. bindsym Escape mode "default"
  225. }
  226.  
  227. bindsym $mod+Pause mode "$mode_system"
  228. #################################################
  229.  
  230. #################################################
  231. # Other bindings
  232. bindsym $mod+b exec /home/ser/bin/bm
  233. bindsym $mod+Shift+B exec /home/ser/bin/clip
  234. bindsym $mod+q exec /home/ser/bin/queue
  235. #################################################
  236.  
  237. for_window [class="Catfish"] floating enable
  238. for_window [class="Pavucontrol"] floating enable
  239. for_window [class="Arandr"] floating enable
  240. for_window [class="Keepassx"] floating enable
  241.  
  242. focus_follows_mouse no
  243.  
  244. exec --no-startup-id "/usr/bin/devmon"
  245. # Waaaaay less CPU than compton
  246. exec --no-startup-id "/usr/bin/xcompmgr -c -f"
  247. #exec --no-startup-id "/usr/bin/compton -cb --config .compton.conf"
  248. #exec --no-startup-id "/usr/bin/comptray"
  249. exec --no-startup-id "/home/ser/bin/dock layout ; dex -ae i3"
  250. exec --no-startup-id "xrandr --output eDP1 --dpi 165"
  251. exec --no-startup-id "xset dpms 300 900 1800"
  252. exec --no-startup-id "~/bin/background"
  253. exec --no-startup-id "xautolock -locker '/home/ser/bin/superlock'"
  254. exec --no-startup-id "/usr/bin/unclutter -idle 3"
  255. exec --no-startup-id "setxkbmap -option compose:ralt"
  256. exec --no-startup-id "twmnd"
  257. exec --no-startup-id "/home/ser/bin/polybar"
  258. exec --no-startup-id "google-drive-ocamlfuse -label intlsos /home/ser/dtrm.tech"
  259. exec --no-startup-id "google-drive-ocamlfuse -label gdrive /home/ser/gdrive"
  260. exec --no-startup-id "/usr/bin/volumeicon"
  261. exec --no-startup-id "/usr/bin/greenclip"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement