Advertisement
Guest User

Untitled

a guest
Mar 24th, 2017
103
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 12.11 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 some time, 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. # Font for window titles. Will also be used by the bar unless a different font
  15. # is used in the bar {} block below.
  16. font pango:DejaVu Sans Mono 12, FontAwesome 12
  17.  
  18. # This font is widely installed, provides lots of unicode glyphs, right-to-left
  19. # text rendering and scalability on retina/hidpi displays (thanks to pango).
  20. #font pango:DejaVu Sans Mono 8
  21.  
  22. # Before i3 v4.8, we used to recommend this one as the default:
  23. # font -misc-fixed-medium-r-normal--13-120-75-75-C-70-iso10646-1
  24. # The font above is very space-efficient, that is, it looks good, sharp and
  25. # clear in small sizes. However, its unicode glyph coverage is limited, the old
  26. # X core fonts rendering does not support right-to-left and this being a bitmap
  27. # font, it doesn’t scale on retina/hidpi displays.
  28.  
  29. # Use Mouse+$mod to drag floating windows to their wanted position
  30. floating_modifier $mod
  31.  
  32. set $terminal urxvt
  33. # start a terminal
  34. bindsym $mod+Return exec $terminal
  35.  
  36. # kill focused window
  37. bindsym $mod+Shift+q kill
  38.  
  39. # There also is the (new) i3-dmenu-desktop which only displays applications
  40. # shipping a .desktop file. It is a wrapper around dmenu, so you need that
  41. # installed.
  42. # bindsym $mod+d exec --no-startup-id i3-dmenu-desktop
  43.  
  44. # change focus
  45. bindsym $mod+j focus left
  46. bindsym $mod+k focus down
  47. bindsym $mod+l focus up
  48. bindsym $mod+semicolon focus right
  49.  
  50. # alternatively, you can use the cursor keys:
  51. bindsym $mod+Left focus left
  52. bindsym $mod+Down focus down
  53. bindsym $mod+Up focus up
  54. bindsym $mod+Right focus right
  55.  
  56. # move focused window
  57. bindsym $mod+Shift+j move left
  58. bindsym $mod+Shift+k move down
  59. bindsym $mod+Shift+l move up
  60. bindsym $mod+Shift+semicolon move right
  61.  
  62. # alternatively, you can use the cursor keys:
  63. bindsym $mod+Shift+Left move left
  64. bindsym $mod+Shift+Down move down
  65. bindsym $mod+Shift+Up move up
  66. bindsym $mod+Shift+Right move right
  67.  
  68. # split in horizontal orientation
  69. bindsym $mod+h split h
  70.  
  71. # split in vertical orientation
  72. bindsym $mod+v split v
  73.  
  74. # enter fullscreen mode for the focused container
  75. bindsym $mod+f fullscreen toggle
  76.  
  77. # change container layout (stacked, tabbed, toggle split)
  78. bindsym $mod+s layout stacking
  79. bindsym $mod+w layout tabbed
  80. bindsym $mod+e layout toggle split
  81.  
  82. # toggle tiling / floating
  83. bindsym $mod+Shift+space floating toggle
  84.  
  85. # change focus between tiling / floating windows
  86. bindsym $mod+space focus mode_toggle
  87.  
  88. # focus the parent container
  89. bindsym $mod+a focus parent
  90.  
  91. # focus the child container
  92. #bindsym $mod+d focus child
  93.  
  94. set $ws1 "1: "
  95. set $ws2 "2: "
  96. set $ws3 "3: "
  97. set $ws4 "4: "
  98. set $ws5 "5: "
  99. set $ws6 "6: "
  100. set $ws7 "7: "
  101. set $ws8 "8: "
  102. set $ws9 "9: "
  103. set $ws10 "10: "
  104.  
  105. # switch to workspace
  106. bindsym $mod+1 workspace $ws1
  107. bindsym $mod+2 workspace $ws2
  108. bindsym $mod+3 workspace $ws3
  109. bindsym $mod+4 workspace $ws4
  110. bindsym $mod+5 workspace $ws5
  111. bindsym $mod+6 workspace $ws6
  112. bindsym $mod+7 workspace $ws7
  113. bindsym $mod+8 workspace $ws8
  114. bindsym $mod+9 workspace $ws9
  115. bindsym $mod+0 workspace $ws10
  116.  
  117. # move focused container to workspace
  118. bindsym $mod+Shift+1 move container to workspace $ws1
  119. bindsym $mod+Shift+2 move container to workspace $ws2
  120. bindsym $mod+Shift+3 move container to workspace $ws3
  121. bindsym $mod+Shift+4 move container to workspace $ws4
  122. bindsym $mod+Shift+5 move container to workspace $ws5
  123. bindsym $mod+Shift+6 move container to workspace $ws6
  124. bindsym $mod+Shift+7 move container to workspace $ws7
  125. bindsym $mod+Shift+8 move container to workspace $ws8
  126. bindsym $mod+Shift+9 move container to workspace $ws9
  127. bindsym $mod+Shift+0 move container to workspace $ws10
  128.  
  129. # move workspace to other monitor
  130. bindsym $mod+m move workspace to output right
  131. bindsym $mod+n move workspace to output left
  132.  
  133. # reload the configuration file
  134. bindsym $mod+Shift+c reload
  135. # restart i3 inplace (preserves your layout/session, can be used to upgrade i3)
  136. bindsym $mod+Shift+r restart
  137. # exit i3 (logs you out of your X session)
  138. #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'"
  139.  
  140. # resize window (you can also use the mouse for that)
  141. mode "resize" {
  142. # These bindings trigger as soon as you enter the resize mode
  143.  
  144. # Pressing left will shrink the window’s width.
  145. # Pressing right will grow the window’s width.
  146. # Pressing up will shrink the window’s height.
  147. # Pressing down will grow the window’s height.
  148. bindsym j resize shrink width 10 px or 10 ppt
  149. bindsym k resize grow height 10 px or 10 ppt
  150. bindsym l resize shrink height 10 px or 10 ppt
  151. bindsym semicolon resize grow width 10 px or 10 ppt
  152.  
  153. # same bindings, but for the arrow keys
  154. bindsym Left resize shrink width 10 px or 10 ppt
  155. bindsym Down resize grow height 10 px or 10 ppt
  156. bindsym Up resize shrink height 10 px or 10 ppt
  157. bindsym Right resize grow width 10 px or 10 ppt
  158.  
  159. # back to normal: Enter or Escape
  160. bindsym Return mode "default"
  161. bindsym Escape mode "default"
  162. }
  163.  
  164. bindsym $mod+r mode "resize"
  165.  
  166. set $bg-color #2f343f
  167. set $inactive-bg-color #2f343f
  168. set $text-color #f3f4f5
  169. set $inactive-text-color #676E7D
  170. set $urgent-bg-color #E53935
  171. set $indicator-color #475263
  172.  
  173. # window colors
  174. # border background text indicator
  175. client.focused $bg-color $bg-color $text-color $indicator-color
  176. client.unfocused $inactive-bg-color $inactive-bg-color $inactive-text-color $indicator-color
  177. client.focused_inactive $inactive-bg-color $inactive-bg-color $inactive-text-color $indicator-color
  178. client.urgent $urgent-bg-color $urgent-bg-color $text-color $indicator-color
  179.  
  180. # Start i3bar to display a workspace bar (plus the system information i3status
  181. # finds out, if available)
  182. # bar
  183. bar {
  184. status_command i3blocks
  185. tray_output DP-1
  186. font pango:DejaVu Sans 12
  187. colors {
  188. background $bg-color
  189. separator #757575
  190. # border background text
  191. focused_workspace $bg-color $bg-color $text-color
  192. inactive_workspace $inactive-bg-color $inactive-bg-color $inactive-text-color
  193. urgent_workspace $urgent-bg-color $urgent-bg-color $text-color
  194. }
  195. }
  196.  
  197. # key bindings
  198. bindsym $mod+Control+Up exec --no-startup-id pactl set-sink-volume 1 +10% | pkill -RTMIN+10 i3blocks #increase sound volumer
  199. bindsym $mod+Control+Down exec --no-startup-id pactl set-sink-volume 1 -10% | pkill -RTMIN+10 i3blocks #decrease sound volume
  200.  
  201. bindsym $mod+Control+2 exec playerctl -p spotify play-pause
  202. bindsym $mod+Control+3 exec playerctl -p spotify next
  203. bindsym $mod+Control+1 exec playerctl -p spotify previous
  204.  
  205. set $mode_power power
  206. bindsym Mod1+Control+l mode "$mode_power"
  207. mode "$mode_power" {
  208. bindsym l mode "default", exec --no-startup-id i3lock --color 475263
  209. bindsym e mode "default", exec --no-startup-id i3-msg exit
  210. bindsym s mode "default", exec --no-startup-id systemctl suspend
  211. #bindsym h mode "default", exec --no-startup-id $HOME/.i3/i3exit hibernate
  212. #bindsym r mode "default", exec --no-startup-id $HOME/.i3/i3exit reboot
  213. #bindsym p mode "default", exec --no-startup-id $HOME/.i3/i3exit shutdown
  214.  
  215. bindsym Return mode "default"
  216. bindsym Escape mode "default"
  217. }
  218.  
  219. set $mode_gaps gaps
  220. set $mode_gaps_outer outer gaps
  221. set $mode_gaps_inner inner gaps
  222. bindsym $mod+Shift+g mode "$mode_gaps"
  223. mode "$mode_gaps" {
  224. bindsym o mode "$mode_gaps_outer"
  225. bindsym i mode "$mode_gaps_inner"
  226.  
  227. bindsym 0 mode "default", exec --no-startup-id i3-msg "gaps inner current set 0" && i3-msg "gaps outer current set 0"
  228. bindsym d mode "default", exec --no-startup-id i3-msg "gaps inner current set $default_gaps_inner" && i3-msg "gaps outer current set $default_gaps_outer"
  229.  
  230. bindsym Return mode "default"
  231. bindsym Escape mode "default"
  232. }
  233.  
  234. mode "$mode_gaps_inner" {
  235. bindsym plus gaps inner current plus 5
  236. bindsym minus gaps inner current minus 5
  237. bindsym 0 mode "default", gaps inner current set 0
  238. bindsym d mode "default", gaps inner current set $default_gaps_inner
  239.  
  240. bindsym Shift+plus gaps inner all plus 5
  241. bindsym Shift+minus gaps inner all minus 5
  242. bindsym Shift+0 mode "default", gaps inner all set 0
  243. bindsym Shift+d mode "default", gaps inner all set $default_gaps_inner
  244.  
  245. bindsym Return mode "default"
  246. bindsym Escape mode "default"
  247. }
  248.  
  249. mode "$mode_gaps_outer" {
  250. bindsym plus gaps outer current plus 5
  251. bindsym minus gaps outer current minus 5
  252. bindsym 0 mode "default", gaps outer current set 0
  253. bindsym d mode "default", gaps outer current set $default_gaps_outer
  254.  
  255. bindsym Shift+plus gaps outer all plus 5
  256. bindsym Shift+minus gaps outer all minus 5
  257. bindsym Shift+0 mode "default", gaps outer all set 0
  258. bindsym Shift+d mode "default", gaps outer all set $default_gaps_outer
  259.  
  260. bindsym Return mode "default"
  261. bindsym Escape mode "default"
  262. }
  263.  
  264. workspace $ws1 gaps outer 10
  265. workspace $ws1 gaps inner 10
  266.  
  267. workspace $ws2 gaps outer 20
  268. workspace $ws2 gaps inner 10
  269.  
  270. workspace $ws3 gaps outer 0
  271. workspace $ws3 gaps inner 10
  272.  
  273. workspace $ws4 gaps outer 10
  274. workspace $ws4 gaps inner 10
  275.  
  276. workspace $ws5 gaps outer 10
  277. workspace $ws5 gaps inner 10
  278.  
  279. workspace $ws6 gaps outer 10
  280. workspace $ws6 gaps inner 10
  281.  
  282. workspace $ws7 gaps outer 10
  283. workspace $ws7 gaps inner 10
  284.  
  285. workspace $ws8 gaps outer 10
  286. workspace $ws8 gaps inner 10
  287.  
  288. workspace $ws9 gaps outer 10
  289. workspace $ws9 gaps inner 10
  290.  
  291. workspace $ws10 gaps outer 50
  292. workspace $ws10 gaps inner 50
  293.  
  294. # https://git.fleshless.org/misc/plain/i3lock-extra
  295. #bindsym $mod+Shift+x exec i3lock --color 475263
  296. #bindsym $mod+Control+Shift+x exec systemctl suspend
  297.  
  298. bindsym Print exec maim -g $(slop -f "%g") -m 10 ~/Pictures/screenshot_$(date "+%s").png
  299.  
  300. bindsym $mod+Shift+s sticky toggle
  301.  
  302. # start dmenu (a program launcher)
  303. bindsym $mod+d exec rofi -show run -lines 5 -eh 2 -width 30 -padding 50 -bw 10 -font "DejaVu Sans Mono 22"
  304.  
  305. # invert colors
  306. bindsym $mod+Mod1+1 exec xcalib -i -s 0 -a
  307. bindsym $mod+Mod1+2 exec xcalib -i -s 1 -a
  308. bindsym $mod+Mod1+3 exec xcalib -i -s 2 -a
  309.  
  310. focus_follows_mouse yes
  311. force_xinerama no
  312.  
  313. assign [class="Google-chrome"] $ws3
  314. assign [class="Nautilus"] $ws2
  315. assign [class="plexmediaplayer"] $ws7
  316. assign [class="Vlc"] $ws7
  317. assign [class="Steam"] $ws8
  318. assign [class="discord"] $ws8
  319. assign [class="Spotify"] $ws10
  320.  
  321. workspace $ws1 output DP-1
  322. workspace $ws2 output DP-1
  323. workspace $ws3 output DVI-I-1
  324. workspace $ws4 output DP-1
  325. workspace $ws7 output DVI-I-1
  326. workspace $ws8 output DVI-I-1
  327. workspace $ws9 output DP-1
  328. workspace $ws10 output DVI-I-1
  329.  
  330. #for_window [class="Nautilus"] floating enable
  331. for_window [class="Mumble"] floating enable
  332. for_window [class="Variety"] floating enable
  333. for_window [class="Keepassx2"] floating enable
  334.  
  335. #exec_always --no-startup-id feh --bg-fill --no-xinerama /storage/Utrecht/Dual\ Wallpapers/UaPhLo0.jpg
  336. exec --no-startup-id xrandr --output DP-1 --primary --mode 2560x1440 --rate 144 --output DVI-I-1 --right-of DP-1 --mode 2560x1440
  337. exec --no-startup-id spotify
  338. exec --no-startup-id google-chrome-stable
  339. #exec --no-startup-id atom
  340. exec --no-startup-id devmon --no-gui
  341. exec --no-startup-id nautilus
  342. #exec --no-startup-id plexmediaplayer
  343. exec --no-startup-id variety
  344. exec --no-startup-id parcellite
  345. exec --no-startup-id pasystray
  346. #exec --no-startup-id steam
  347. #exec --no-startup-id discord
  348.  
  349. #for_window [class="Atom"] move to workspace $ws1
  350. for_window [class="Spotify"] move to workspace $ws10
  351. for_window [class="^.*"] border pixel 0
  352.  
  353. exec --no-startup-id compton -f --config ~/.config/compton.conf -b
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement