Advertisement
Guest User

Untitled

a guest
Feb 12th, 2016
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 15.23 KB | None | 0 0
  1. #-----------
  2. # VARIABLES
  3. #-----------
  4. set $mod Mod1
  5.  
  6. # Term
  7. bindsym $mod+Return exec termite
  8. bindsym $mod+o exec termite --geometry=632x510
  9. bindsym $mod+shift+o exec termite -e vim --geometry=632x510
  10.  
  11. # Sizes
  12. set $bordersize 1
  13. set $fr 90
  14. set $frf 15
  15. set $tr 6
  16. set $trf 1
  17. set $gsi 30
  18. set $gso 0
  19.  
  20. # Colors
  21.  
  22. # archblue #1793D1
  23. # debianred #D70A53
  24. # plasmagreen #18B092
  25. # matrixgreen #00FF00
  26. # mintgreen #5FAA24
  27. # numixredorange #C84433
  28. # ubuntuorange #F37320
  29. # vertexdark #2C6FF0
  30.  
  31. set $fgcolor #E6E1DC
  32. set $sfgcolor #0A9DFB
  33. set $swbgcolor #404040
  34. set $hfgcolor #000020
  35. set $bdcolor #00B9C1
  36. #set $bdcolor #06619E
  37. #set $bgcolor #0F0E0D
  38. set $bgcolor #080808
  39. set $iacolor #0a0a0a
  40. set $ubgcolor #C41F0C
  41. set $ufgcolor #0a0a0a
  42.  
  43. # Fonts
  44. set $font1 pango:gohufont 7
  45. set $fontbar pango:gohufont 7
  46.  
  47. # Workspaces
  48. set $ws1 1:
  49. set $ws2 2:II
  50. set $ws3 3:
  51. set $ws4 4:
  52. set $ws5 5:
  53. set $ws6 6:
  54. set $ws7 7:
  55. set $ws8 8:
  56. set $ws9 9:
  57. set $ws10 10:
  58. set $ws11 11:
  59. set $ws12 12:X
  60.  
  61. # HJKL
  62. set $left h
  63. set $down j
  64. set $up k
  65. set $right l
  66.  
  67. #---------------
  68. # CONFIGURATION
  69. #---------------
  70. floating_modifier $mod
  71. focus_follows_mouse yes
  72. popup_during_fullscreen smart
  73. workspace_layout default
  74. workspace_auto_back_and_forth no
  75. force_focus_wrapping no
  76.  
  77. #------------
  78. # APPEARANCE
  79. #------------
  80. # Set window appearence border bg fg urgent
  81. client.focused $bdcolor $bdcolor $sfgcolor $bdcolor
  82. client.focused_inactive $iacolor $iacolor $fgcolor $iacolor
  83. client.unfocused $bdcolor $iacolor $fgcolor $iacolor
  84.  
  85. font $font1
  86.  
  87. # Configure window borders/
  88. hide_edge_borders none
  89. new_float pixel $bordersize
  90. new_window pixel $bordersize
  91.  
  92. # Window rules
  93. for_window [class="^.*"] border pixel $bordersize
  94. for_window [title="Volume Control"] floating enable
  95. for_window [class="Speedcrunch"] floating enable
  96. for_window [class="TeamSpeak"] floating enable
  97. for_window [class="Feh"] floating enable
  98. for_window [class="Sxiv"] fullscreen enable
  99. for_window [class="cool-retro-term"] border none
  100. for_window [class="Gpick"] floating enable
  101. for_window [class="Lxappearance"] floating enable
  102. for_window [class="Qjackctl"] floating enable, move position mouse
  103. for_window [class="Cadence"] floating enable
  104. for_window [class="Pidgin"] floating enable
  105. for_window [class="Thunar"] floating enable, move position mouse
  106. for_window [class="Qjackctl"] floating enable
  107. for_window [title="JACK Audio Connection Kit"] floating enable
  108. for_window [title="qutebrowser"] border none
  109. for_window [class="Nitrogen"] floating enable
  110. for_window [instance="gcolor2"] move absolute position 1406 px 0 px
  111.  
  112. for_window [class="Deluge"] border none
  113. for_window [class="vivaldi"] border none
  114. for_window [class="Zathura"] border none, workspace $ws2
  115. for_window [title="LibreOffice"] border none, workspace $ws3
  116. for_window [title="GNU Image Manipulation Program"] border none, workspace $ws4
  117. for_window [class="brogue"] border none, workspace $ws5, floating disable
  118. for_window [title="Dungeon Crawl Stone Soup"] border none, workspace $ws5, floating disable
  119. for_window [title="Chromium"] border none, workspace $ws6
  120. for_window [class="Steam"] floating enable
  121. for_window [title="OpenGL"] fullscreen enable, floating disable, border none
  122. for_window [class="mpv"] border none, floating enable, fullscreen enable, workspace $ws8
  123. for_window [class="Firefox"] border none
  124. for_window [class="Renoise"] border none
  125. for_window [class="Nitrogen"] floating enable, workspace $ws11
  126.  
  127. # Workspace assignments
  128. assign [title="Deluge"] $ws1
  129. assign [class="Zathura"] $ws2
  130. assign [title="LibreOffice"] $ws3
  131. assign [title="GNU Image Manipulation Program"] $ws4
  132. assign [class="brogue"] $ws5
  133. assign [title="Dungeon Crawl Stone Soup"] $ws5
  134. assign [title="Chromium"] $ws6
  135. assign [class="(?)Steam"] $ws7
  136. assign [title="OpenGL"] $ws7
  137. assign [class="mpv"] $ws8
  138. assign [class="Firefox"] $ws9
  139. assign [class="Renoise"] $ws10
  140. assign [class="Nitrogen"] $ws11
  141.  
  142. # Right Urxvt 100char
  143. # for_window [class="^URxvt$" instance="^SideTerm$"] resize shrink width 270 px or 18 ppt
  144. # bindsym $mod+shift+bracketright exec urxvt -name SideTerm
  145.  
  146. # Tiny Urxvt
  147. bindsym $mod+shift+Return exec urxvt -g 45x5 -name floating
  148. for_window [instance="^floating$" class="^URxvt$"] floating enable, move position 1646px 0px
  149.  
  150. # Rofi Launcher
  151. bindsym ctrl+slash exec rofi -show run -font "gohufont 7" -fg "$fgcolor" -bg "$bgcolor" -hlfg "$bdcolor" -hlbg "#000000" -fg-active "#009FC7" -bg-active "#222222" -hlfg-active "#009fc7" -hlbg-active "#000000" -bc "#080808" -opacity 73 -width 30
  152.  
  153. # Rofi Switcher
  154. bindsym ctrl+apostrophe exec rofi -show window -font "gohufont 7" -fg "$fgcolor" -bg "$bgcolor" -hlfg "$bdcolor" -hlbg "#000000" -fg-active "#009FC7" -bg-active "#222222" -hlfg-active "#009fc7" -hlbg-active "#000000" -bc "#080808" -opacity 73 -width 30
  155.  
  156. # Dmenu
  157. bindsym $mod+Shift+slash exec "dmenu_run -i -fn gohufont-7:normal -nb '$bgcolor' -nf '$fgcolor' -sb '$hfgcolor' -sf '$sfgcolor' -h 20 -w 800 -x 218 -y 1061"
  158. bindsym $mod+slash exec --no-startup-id j4-dmenu-desktop --dmenu="dmenu -i -fn gohufont-7:normal -nb '$bgcolor' -nf '$fgcolor' -sb '$hfgcolor' -sf '$sfgcolor' -h 20 -w 800 -x 218 -y 1061"
  159.  
  160. #---------------------
  161. # GENERAL KEYBINDINGS
  162. #---------------------
  163.  
  164. bindsym $mod+Shift+d exec killall dunst && exec dunst && exec notify-send "restart dunst"
  165. # Layout mode
  166. bindsym $mod+e layout stacking
  167. bindsym $mod+a layout tabbed
  168. bindsym $mod+shift+e layout default
  169. bindsym $mod+s layout toggle split
  170. bindsym $mod+f fullscreen toggle
  171. bindsym $mod+n split h
  172. bindsym $mod+t split v
  173. bindsym $mod+Shift+space floating toggle
  174. bindsym $mod+space focus mode_toggle
  175. bindsym $mod+button3 floating toggle
  176. bindsym $mod+apostrophe border pixel $bordersize
  177. bindsym $mod+shift+apostrophe border none
  178. bindsym $mod+shift+f border toggle
  179. bindsym $mod+shift+s sticky toggle
  180. bindsym $mod+q kill
  181. bindsym --whole-window $mod+button2 kill
  182. bindsym $mod+x workspace back_and_forth
  183. bindsym $mod+Tab workspace back_and_forth
  184. # bindsym $mod+Control+Tab
  185. bindsym $mod+bracketright move right ; resize shrink width 0 px or 17 ppt
  186. bindsym $mod+shift+bracketright resize grow width 0 px or 17 ppt
  187.  
  188. # switch to workspace
  189. bindsym $mod+1 workspace $ws1
  190. bindsym $mod+2 workspace $ws2
  191. bindsym $mod+3 workspace $ws3
  192. bindsym $mod+4 workspace $ws4
  193. bindsym $mod+5 workspace $ws5
  194. bindsym $mod+6 workspace $ws6
  195. bindsym $mod+7 workspace $ws7
  196. bindsym $mod+8 workspace $ws8
  197. bindsym $mod+9 workspace $ws9
  198. bindsym $mod+z workspace $ws9
  199. bindsym $mod+0 workspace $ws10
  200.  
  201. # move focused container to workspace
  202. bindsym $mod+Shift+1 move container to workspace $ws1
  203. bindsym $mod+Shift+2 move container to workspace $ws2
  204. bindsym $mod+Shift+3 move container to workspace $ws3
  205. bindsym $mod+Shift+4 move container to workspace $ws4
  206. bindsym $mod+Shift+5 move container to workspace $ws5
  207. bindsym $mod+Shift+6 move container to workspace $ws6
  208. bindsym $mod+Shift+7 move container to workspace $ws7
  209. bindsym $mod+Shift+8 move container to workspace $ws8
  210. bindsym $mod+Shift+9 move container to workspace $ws9
  211. bindsym $mod+Shift+0 move container to workspace $ws10
  212.  
  213. # switch to next/previous workspace (left/right)
  214. bindsym $mod+comma workspace prev
  215. bindsym $mod+period workspace next
  216.  
  217. # Focus Keybindings #
  218. # bindsym $mod+a focus parent
  219. # bindsym $mod+shift+a focus child
  220. bindsym $mod+$left focus left
  221. bindsym $mod+$down focus down
  222. bindsym $mod+$up focus up
  223. bindsym $mod+$right focus right
  224. # bindsym $mod+Left focus left
  225. # bindsym $mod+Down focus down
  226. # bindsym $mod+Up focus up
  227. # bindsym $mod focus right
  228.  
  229. # Movement Keybindings #
  230. # Home row
  231. bindsym $mod+Shift+$left move left 60 px
  232. bindsym $mod+Shift+$down move down 60 px
  233. bindsym $mod+Shift+$up move up 60 px
  234. bindsym $mod+Shift+$right move right 60 px
  235. # Arrows
  236. # bindsym $mod+Shift+Left move left
  237. # bindsym $mod+Shift+Down move down
  238. # bindsym $mod+Shift+Up move up
  239. # bindsym $mod+Shift+Right move right
  240.  
  241. # make the currently focused window a scratchpad
  242. bindsym $mod+Shift+m move scratchpad
  243. bindsym $mod+m scratchpad show
  244.  
  245. # reload the configuration file
  246. bindsym $mod+Shift+c reload
  247. # restart i3 inplace (preserves your layout/session, can be used to upgrade i3)
  248. bindsym $mod+Shift+r restart
  249. # exit i3 (logs you out of your X session)
  250. bindsym $mod+Shift+x exec "i3-nagbar -t warning -m 'A guttural moan erupts from the chasm. You feel your blood run cold, and your trousers run hot. The Forgotten Beast Oggez Rashas rises from the depths!' -b 'Fly!' 'i3-msg exit'"
  251.  
  252. #------------------
  253. # MODE KEYBINDINGS
  254. #------------------
  255.  
  256. mode "resize" {
  257. # HNEI: Coarse adjustment
  258. bindsym l resize shrink width $fr px or $tr ppt
  259. bindsym j resize grow height $fr px or $tr ppt
  260. bindsym k resize shrink height $fr px or $tr ppt
  261. bindsym h resize grow width $fr px or $tr ppt
  262. # HNEI: Fine adjustment
  263. bindsym shift+l resize shrink width $frf px or $trf ppt
  264. bindsym shift+j resize grow height $frf px or $trf ppt
  265. bindsym shift+k resize shrink height $frf px or $trf ppt
  266. bindsym shift+h resize grow width $frf px or $trf ppt
  267. # Arrow keys: Coarse adjustment
  268. bindsym Right resize shrink width 90 px or 10 ppt
  269. bindsym Up resize grow height 90 px or 10 ppt
  270. bindsym Down resize shrink height 90 px or 10 ppt
  271. bindsym Left resize grow width 90 px or 10 ppt
  272. # Arrow keys: Fine adjustment
  273. bindsym shift+Right resize shrink width 15 px or 2 ppt
  274. bindsym shift+Up resize grow height 15 px or 2 ppt
  275. bindsym shift+Down resize shrink height 15 px or 2 ppt
  276. bindsym shift+Left resize grow width 15 px or 2 ppt
  277.  
  278. # back to normal: Enter or Escape
  279. bindsym Return mode "default"
  280. bindsym Escape mode "default"
  281. bindsym space mode "default"
  282. }
  283.  
  284. bindsym $mod+r mode "resize"
  285. #------
  286. # GAPS
  287. #------
  288.  
  289. # gaps inner $gsi
  290. # gaps outer $gso
  291.  
  292. bindsym $mod+g mode "$mode_gaps"
  293. # set $mode_gaps Gaps: (o) outer, (i) inner
  294. set $mode_gaps gaps
  295. # set $mode_gaps_outer Outer Gaps: n|e|h (local), Shift + n|e|h (global)
  296. set $mode_gaps_outer
  297. # set $mode_gaps_inner Inner Gaps: n|e|h (local), Shift + n|e|h (global)
  298. set $mode_gaps_inner
  299.  
  300. #gaps off
  301. bindsym $mod+bracketleft gaps inner all set 1;gaps outer all set 0;border pixel $bordersize
  302. #gaps on
  303. bindsym $mod+shift+bracketleft gaps inner all set $gsi;gaps outer all set $gso;border pixel $bordersize
  304.  
  305. mode "$mode_gaps" {
  306. bindsym o mode "$mode_gaps_outer"
  307. bindsym i mode "$mode_gaps_inner"
  308. bindsym Return mode "default"
  309. bindsym Escape mode "default"
  310. bindsym space mode "default"
  311. }
  312.  
  313. mode "$mode_gaps_inner" {
  314. bindsym j gaps inner current plus 5
  315. bindsym k gaps inner current minus 5
  316. bindsym h gaps inner current set 0
  317.  
  318. bindsym Shift+j gaps inner all plus 5
  319. bindsym Shift+k gaps inner all minus 5
  320. bindsym Shift+h gaps inner all set 0
  321.  
  322. bindsym Return mode "default"
  323. bindsym Escape mode "default"
  324. bindsym space mode "default"
  325. }
  326.  
  327. mode "$mode_gaps_outer" {
  328. bindsym j gaps outer current plus 5
  329. bindsym k gaps outer current minus 5
  330. bindsym h gaps outer current set 0
  331.  
  332. bindsym Shift+j gaps outer all plus 5
  333. bindsym Shift+k gaps outer all minus 5
  334. bindsym Shift+h gaps outer all set 0
  335.  
  336. bindsym Return mode "default"
  337. bindsym Escape mode "default"
  338. bindsym space mode "default"
  339. }
  340.  
  341. # Pomodoro 25 min, Zelda LTTP SFX
  342. bindsym Mod4+p exec mpv ~/scripts/zeldapomodoro/LTTP_Item.wav && sleep 1500 && notify-send "♥ ♥ ♥" && mpv ~/scripts/zeldapomodoro/LTTP_Get_Fairy.wav &
  343.  
  344. #-----
  345. # BAR
  346. #-----
  347.  
  348. bindsym $mod+Shift+b bar mode toggle
  349.  
  350. bar {
  351. strip_workspace_numbers yes
  352. status_command i3blocks
  353. position bottom
  354. font $fontbar
  355. height 20
  356. colors {
  357. background $bgcolor
  358. statusline $fgcolor
  359. # Workspace Colors #border #bg #text
  360. inactive_workspace $bgcolor $bgcolor $fgcolor
  361. focused_workspace $bgcolor $bgcolor $sfgcolor
  362. urgent_workspace $ufgcolor $ubgcolor $ufgcolor
  363. }
  364. }
  365.  
  366. exec --no-startup-id i3lock -i ~/images/wallpapers/active/loginarch.png &
  367. exec --no-startup-id firefox &
  368.  
  369. # program launcher
  370. # mode "launch" {
  371. # These bindings will launch programs
  372. #
  373. # bindsym f exec firefox
  374. # bindsym c exec chromium
  375. # bindsym v exec gvim
  376. # bindsym t exec urxvt
  377. #
  378. # back to normal: Enter or Escape
  379. #
  380. # bindsym Return mode "default"
  381. # bindsym Escape mode "default"
  382. #}
  383. #
  384. # bindsym $mod+a mode "launch"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement