config 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402
  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. # i3 config file (v4)
  8. #
  9. # Please see http://i3wm.org/docs/userguide.html for a complete reference!
  10. # Mod1 = Alt
  11. # Mod4 = Window
  12. # TODO:
  13. # Borders
  14. # Window-specific commands
  15. # Colors
  16. # Interprocess Communication
  17. # Tab-Through Workspaces
  18. # i3bar
  19. ###BEGIN USER DEFINED
  20. ##Begin Definitions
  21. # Monitor Names
  22. set_from_resource $Mon1 mon1 "HDMI-0"
  23. set_from_resource $Mon2 mon2 "VGA-0"
  24. # Main control Key
  25. set $mod Mod4
  26. set $win Mod4
  27. set $alt Mod1
  28. #Set some windows to float by default
  29. for_window [class="Wine"] floating enable
  30. for_window [class="RPG"] floating enable
  31. for_window [class="Dragon"] floating enable
  32. for_window [window_role="Msgcompose"] floating enable
  33. for_window [title="Eclipse Marketplace "] floating enable
  34. for_window [title="Friends"] floating enable
  35. for_window [class=".*Preferences.*"] floating enable
  36. # Focus ignores mouse
  37. focus_follows_mouse no
  38. # Only show pop-ups in fullscreen if it belongs to the window
  39. popup_during_fullscreen smart
  40. # Wrap if focus shifts off-screen
  41. force_focus_wrapping no
  42. # Disable mouse following screen focus
  43. mouse_warping none
  44. #Font
  45. font -misc-fixed-medium-r-normal--13-120-75-75-C-70-iso10646-1
  46. ##End Definitions
  47. ##Begin Mount/Eject Mode Decerlation
  48. mode "mount"
  49. {
  50. bindsym c exec "udevil mount /dev/sdc1"; mode "default"
  51. bindsym d exec "udevil mount /dev/sdd1"; mode "default"
  52. bindsym e exec "udevil mount /dev/sde1"; mode "default"
  53. bindsym f exec "udevil mount /dev/sdf1"; mode "default"
  54. bindsym g exec "udevil mount /dev/sdg1"; mode "default"
  55. bindsym p exec "go-mtpfs /mnt/phone"; mode "default"
  56. bindsym XF86Eject exec "eject --traytoggle"; mode "default"
  57. bindsym u mode "eject"
  58. bindsym space mode "default"
  59. bindsym Return mode "default"
  60. bindsym Escape mode "default"
  61. }
  62. mode "eject"
  63. {
  64. bindsym c exec "udevil umount -l /dev/sdc1"; mode "default"
  65. bindsym d exec "udevil umount -l /dev/sdd1"; mode "default"
  66. bindsym e exec "udevil umount -l /dev/sde1"; mode "default"
  67. bindsym f exec "udevil umount -l /dev/sdf1"; mode "default"
  68. bindsym g exec "udevil umount -l /dev/sdg1"; mode "default"
  69. bindsym p exec "fusermount -u /mnt/phone"; mode "default"
  70. bindsym XF86Eject exec "eject --traytoggle"; mode "default"
  71. bindsym m mode "mount"
  72. bindsym space mode "default"
  73. bindsym Return mode "default"
  74. bindsym Escape mode "default"
  75. }
  76. ##End Mount/Eject Mode
  77. ##Begin MPC Mode Decleration
  78. mode "mpc"
  79. {
  80. bindsym space mode "default"
  81. bindsym Return mode "default"
  82. bindsym Escape mode "default"
  83. }
  84. ##End Eject Mode
  85. ##Begin Quick-Key
  86. bindsym $mod+Return exec "xterm"
  87. bindsym $mod+d exec --no-startup-id "j4-dmenu-desktop --dmenu='dmenu -i -b'"
  88. bindsym $mod+Shift+q kill
  89. bindsym $mod+XF86Sleep exec "i3lock && sudo systemctl suspend"; reload
  90. bindsym $mod+Shift+XF86Sleep exec 'checkHibernate.sh'; reload
  91. # bindsym XF86Search
  92. bindsym XF86Go exec $BROWSER #internet button
  93. bindsym Shift+XF86Go exec "chromium --incognito"
  94. # bindcode 221 #info button
  95. bindsym XF86Mail exec thunderbird
  96. bindsym XF86Eject mode "mount"
  97. bindsym Shift+XF86Eject mode "eject"
  98. bindsym XF86AudioPrev exec "mpc prev"
  99. bindsym XF86AudioPlay exec "mpc toggle"
  100. bindsym XF86AudioNext exec "mpc next"
  101. bindsym Shift+XF86AudioPrev exec "mpc seek -00:01"
  102. bindsym Shift+XF86AudioNext exec "mpc seek +00:01"
  103. bindsym XF86AudioStop exec "mpc stop"
  104. bindsym XF86AudioLowerVolume exec "amixer sset Master 5%-"
  105. bindsym XF86AudioRaiseVolume exec "amixer sset Master 5%+"
  106. bindsym Shift+XF86AudioLowerVolume exec "amixer sset Master 2%-"
  107. bindsym Shift+XF86AudioRaiseVolume exec "amixer sset Master 2%+"
  108. bindsym $alt+Shift+XF86AudioLowerVolume exec "mpc volume -2"
  109. bindsym $alt+Shift+XF86AudioRaiseVolume exec "mpc volume +2"
  110. bindsym $alt+XF86AudioLowerVolume exec "mpc volume -5"
  111. bindsym $alt+XF86AudioRaiseVolume exec "mpc volume +5"
  112. bindsym XF86AudioMute exec "amixer sset Master toggle"
  113. bindsym F12 exec "scrot -s ~/screenshot.png"
  114. bindsym Shift+F12 exec "scrot -s ~/x.png && xclip ~/x.png && rm ~/x.png"
  115. ##End Quick-Key
  116. ##Begin Select
  117. bindsym $mod+Left focus left
  118. bindsym $mod+Down focus down
  119. bindsym $mod+Up focus up
  120. bindsym $mod+Right focus right
  121. bindsym $mod+p focus parent
  122. bindsym $mod+k focus child
  123. bindsym $mod+space focus mode_toggle
  124. ##End Select
  125. ##Begin Move
  126. bindsym $mod+Shift+Left move left
  127. bindsym $mod+Shift+Down move down
  128. bindsym $mod+Shift+Up move up
  129. bindsym $mod+Shift+Right move right
  130. bindsym $mod+Shift+space floating toggle
  131. ##End Move
  132. ##Begin Resize-Keys
  133. bindsym $mod+Control+Left resize grow left 2px or 2 ppt
  134. bindsym $mod+Control+Up resize grow up 2px or 2 ppt
  135. bindsym $mod+Control+Right resize grow right 2px or 2 ppt
  136. bindsym $mod+Control+Down resize grow down 2px or 2 ppt
  137. bindsym $mod+Mod1+Left resize shrink right 2px or 2 ppt
  138. bindsym $mod+Mod1+Up resize shrink down 2px or 2 ppt
  139. bindsym $mod+Mod1+Right resize shrink left 2px or 2 ppt
  140. bindsym $mod+Mod1+Down resize shrink up 2px or 2 ppt
  141. ##End Resize-Keys
  142. ##Begin Switch to Workspace
  143. bindsym $mod+1 workspace 1
  144. bindsym $mod+2 workspace 2
  145. bindsym $mod+3 workspace 3
  146. bindsym $mod+4 workspace 4
  147. bindsym $mod+5 workspace 5
  148. bindsym $mod+6 workspace 6
  149. bindsym $mod+7 workspace 7
  150. bindsym $mod+8 workspace 8
  151. bindsym $mod+9 workspace 9
  152. bindsym $mod+0 workspace 10
  153. bindsym $mod+Control+1 workspace 11
  154. bindsym $mod+Control+2 workspace 12
  155. bindsym $mod+Control+3 workspace 13
  156. bindsym $mod+Control+4 workspace 14
  157. bindsym $mod+Control+5 workspace 15
  158. bindsym $mod+Control+6 workspace 16
  159. bindsym $mod+Control+7 workspace 17
  160. bindsym $mod+Control+8 workspace 18
  161. bindsym $mod+Control+9 workspace 19
  162. bindsym $mod+Control+0 workspace 20
  163. bindsym $mod+Mod1+1 workspace 21
  164. bindsym $mod+Mod1+2 workspace 22
  165. bindsym $mod+Mod1+3 workspace 23
  166. bindsym $mod+Mod1+4 workspace 24
  167. bindsym $mod+Mod1+5 workspace 25
  168. bindsym $mod+Mod1+6 workspace 26
  169. bindsym $mod+Mod1+7 workspace 27
  170. bindsym $mod+Mod1+8 workspace 28
  171. bindsym $mod+Mod1+9 workspace 29
  172. bindsym $mod+Mod1+0 workspace 30
  173. bindsym $mod+Mod2+KP_1 workspace 1
  174. bindsym $mod+Mod2+KP_2 workspace 2
  175. bindsym $mod+Mod2+KP_3 workspace 3
  176. bindsym $mod+Mod2+KP_4 workspace 4
  177. bindsym $mod+Mod2+KP_5 workspace 5
  178. bindsym $mod+Mod2+KP_6 workspace 6
  179. bindsym $mod+Mod2+KP_7 workspace 7
  180. bindsym $mod+Mod2+KP_8 workspace 8
  181. bindsym $mod+Mod2+KP_9 workspace 9
  182. bindsym $mod+Mod2+KP_0 workspace 10
  183. bindsym $mod+Control+Mod2+KP_1 workspace 11
  184. bindsym $mod+Control+Mod2+KP_2 workspace 12
  185. bindsym $mod+Control+Mod2+KP_3 workspace 13
  186. bindsym $mod+Control+Mod2+KP_4 workspace 14
  187. bindsym $mod+Control+Mod2+KP_5 workspace 15
  188. bindsym $mod+Control+Mod2+KP_6 workspace 16
  189. bindsym $mod+Control+Mod2+KP_7 workspace 17
  190. bindsym $mod+Control+Mod2+KP_8 workspace 18
  191. bindsym $mod+Control+Mod2+KP_9 workspace 19
  192. bindsym $mod+Control+Mod2+KP_0 workspace 20
  193. bindsym $mod+Mod1+Mod2+KP_1 workspace 21
  194. bindsym $mod+Mod1+Mod2+KP_2 workspace 22
  195. bindsym $mod+Mod1+Mod2+KP_3 workspace 23
  196. bindsym $mod+Mod1+Mod2+KP_4 workspace 24
  197. bindsym $mod+Mod1+Mod2+KP_5 workspace 25
  198. bindsym $mod+Mod1+Mod2+KP_6 workspace 26
  199. bindsym $mod+Mod1+Mod2+KP_7 workspace 27
  200. bindsym $mod+Mod1+Mod2+KP_8 workspace 28
  201. bindsym $mod+Mod1+Mod2+KP_9 workspace 29
  202. bindsym $mod+Mod1+Mod2+KP_0 workspace 30
  203. bindsym $mod+w workspace Wine
  204. ##End Switch to Workspace
  205. ##Being Workspace Shift
  206. bindsym $mod+Shift+1 move container to workspace 1
  207. bindsym $mod+Shift+2 move container to workspace 2
  208. bindsym $mod+Shift+3 move container to workspace 3
  209. bindsym $mod+Shift+4 move container to workspace 4
  210. bindsym $mod+Shift+5 move container to workspace 5
  211. bindsym $mod+Shift+6 move container to workspace 6
  212. bindsym $mod+Shift+7 move container to workspace 7
  213. bindsym $mod+Shift+8 move container to workspace 8
  214. bindsym $mod+Shift+9 move container to workspace 9
  215. bindsym $mod+Shift+0 move container to workspace 10
  216. bindsym $mod+Shift+Control+1 move container to workspace 11
  217. bindsym $mod+Shift+Control+2 move container to workspace 12
  218. bindsym $mod+Shift+Control+3 move container to workspace 13
  219. bindsym $mod+Shift+Control+4 move container to workspace 14
  220. bindsym $mod+Shift+Control+5 move container to workspace 15
  221. bindsym $mod+Shift+Control+6 move container to workspace 16
  222. bindsym $mod+Shift+Control+7 move container to workspace 17
  223. bindsym $mod+Shift+Control+8 move container to workspace 18
  224. bindsym $mod+Shift+Control+9 move container to workspace 19
  225. bindsym $mod+Shift+Control+0 move container to workspace 20
  226. bindsym $mod+Shift+Mod1+1 move container to workspace 21
  227. bindsym $mod+Shift+Mod1+2 move container to workspace 22
  228. bindsym $mod+Shift+Mod1+3 move container to workspace 23
  229. bindsym $mod+Shift+Mod1+4 move container to workspace 24
  230. bindsym $mod+Shift+Mod1+5 move container to workspace 25
  231. bindsym $mod+Shift+Mod1+6 move container to workspace 26
  232. bindsym $mod+Shift+Mod1+7 move container to workspace 27
  233. bindsym $mod+Shift+Mod1+8 move container to workspace 28
  234. bindsym $mod+Shift+Mod1+9 move container to workspace 29
  235. bindsym $mod+Shift+Mod1+0 move container to workspace 30
  236. bindsym $mod+Shift+Mod2+KP_End move container to workspace 1
  237. bindsym $mod+Shift+Mod2+KP_Down move container to workspace 2
  238. bindsym $mod+Shift+Mod2+KP_Next move container to workspace 3
  239. bindsym $mod+Shift+Mod2+KP_Left move container to workspace 4
  240. bindsym $mod+Shift+Mod2+KP_Begin move container to workspace 5
  241. bindsym $mod+Shift+Mod2+KP_Right move container to workspace 6
  242. bindsym $mod+Shift+Mod2+KP_Home move container to workspace 7
  243. bindsym $mod+Shift+Mod2+KP_Up move container to workspace 8
  244. bindsym $mod+Shift+Mod2+KP_Prior move container to workspace 9
  245. bindsym $mod+Shift+Mod2+KP_Insert move container to workspace 10
  246. bindsym $mod+Shift+Control+Mod2+KP_End move container to workspace 11
  247. bindsym $mod+Shift+Control+Mod2+KP_Down move container to workspace 12
  248. bindsym $mod+Shift+Control+Mod2+KP_Next move container to workspace 13
  249. bindsym $mod+Shift+Control+Mod2+KP_Left move container to workspace 14
  250. bindsym $mod+Shift+Control+Mod2+KP_Begin move container to workspace 15
  251. bindsym $mod+Shift+Control+Mod2+KP_Right move container to workspace 16
  252. bindsym $mod+Shift+Control+Mod2+KP_Home move container to workspace 17
  253. bindsym $mod+Shift+Control+Mod2+KP_Up move container to workspace 18
  254. bindsym $mod+Shift+Control+Mod2+KP_Prior move container to workspace 19
  255. bindsym $mod+Shift+Control+Mod2+KP_Insert move container to workspace 20
  256. bindsym $mod+Shift+Mod1+Mod2+KP_End move container to workspace 21
  257. bindsym $mod+Shift+Mod1+Mod2+KP_Down move container to workspace 22
  258. bindsym $mod+Shift+Mod1+Mod2+KP_Next move container to workspace 23
  259. bindsym $mod+Shift+Mod1+Mod2+KP_Left move container to workspace 24
  260. bindsym $mod+Shift+Mod1+Mod2+KP_Begin move container to workspace 25
  261. bindsym $mod+Shift+Mod1+Mod2+KP_Right move container to workspace 26
  262. bindsym $mod+Shift+Mod1+Mod2+KP_Home move container to workspace 27
  263. bindsym $mod+Shift+Mod1+Mod2+KP_Up move container to workspace 28
  264. bindsym $mod+Shift+Mod1+Mod2+KP_Prior move container to workspace 29
  265. bindsym $mod+Shift+Mod1+Mod2+KP_Insert move container to workspace 30
  266. ##End Workspace Shift
  267. ##Begin Workspace-Monitor-Associations
  268. workspace 1 output $Mon1
  269. workspace 2 output $Mon2
  270. workspace 3 output $Mon1
  271. workspace 4 output $Mon2
  272. workspace 5 output $Mon1
  273. workspace 6 output $Mon2
  274. workspace 7 output $Mon1
  275. workspace 8 output $Mon2
  276. workspace 9 output $Mon1
  277. workspace 10 output $Mon2
  278. workspace 11 output $Mon1
  279. workspace 12 output $Mon2
  280. workspace 13 output $Mon1
  281. workspace 14 output $Mon2
  282. workspace 15 output $Mon1
  283. workspace 16 output $Mon2
  284. workspace 17 output $Mon1
  285. workspace 18 output $Mon2
  286. workspace 19 output $Mon1
  287. workspace 20 output $Mon2
  288. workspace 21 output $Mon1
  289. workspace 22 output $Mon2
  290. workspace 23 output $Mon1
  291. workspace 24 output $Mon2
  292. workspace 25 output $Mon1
  293. workspace 26 output $Mon2
  294. workspace 27 output $Mon1
  295. workspace 28 output $Mon2
  296. workspace 29 output $Mon1
  297. workspace 30 output $Mon2
  298. workspace Wine output $Mon1
  299. ##End Workspace-Monitor-Associations
  300. ##Begin Program-Workspace-Associations
  301. #assign [class="^Wine$"] → Wine
  302. ##End Program-Workspace-Associations
  303. ##Begin Screen Management
  304. bindsym $mod+h split h
  305. bindsym $mod+v split v
  306. bindsym $mod+f fullscreen
  307. ##End Screen Management
  308. ##Begin Layouts
  309. bindsym $mod+s layout stacking
  310. bindsym $mod+t layout tabbed
  311. bindsym $mod+u layout default
  312. ##End Layouts
  313. ##Begin i3 Controls
  314. bindsym $mod+Shift+c reload
  315. bindsym $mod+Shift+r restart
  316. bindsym $mod+Shift+e exit
  317. ##End i3 Controls
  318. ##Begin i3status
  319. bar {
  320. output $Mon1
  321. position top
  322. mode dock
  323. # hidden_state show
  324. # modifier Mod1
  325. tray_output primary
  326. # font -misc-fixed-medium-r-normal--13-120-75-75-C-70-iso10646-1
  327. # font pango:DejaVu Sans Mono 10
  328. workspace_buttons yes
  329. colors {
  330. separator #BBFF00
  331. statusline #FFFFFF
  332. background #000033
  333. # Border Background Text
  334. focused_workspace #4c7899 #285577 #ffffff
  335. active_workspace #333333 #5f676a #ffffff
  336. inactive_workspace #333333 #222222 #888888
  337. urgent_workspace #2f343a #900000 #ffffff
  338. }
  339. status_command i3cat --cmd-file="/home/tom/.i3/i3cat.0.conf"
  340. }
  341. bar {
  342. output $Mon2
  343. position top
  344. mode dock
  345. # hidden_state show
  346. # modifier Mod1
  347. tray_output none
  348. # font -misc-fixed-medium-r-normal--13-120-75-75-C-70-iso10646-1
  349. # font pango:DejaVu Sans Mono 10
  350. workspace_buttons yes
  351. colors {
  352. separator #BBFF00
  353. statusline #FFFFFF
  354. background #000044
  355. # Border Background Text
  356. focused_workspace #4c7899 #285577 #ffffff
  357. active_workspace #333333 #5f676a #ffffff
  358. inactive_workspace #333333 #222222 #888888
  359. urgent_workspace #2f343a #900000 #ffffff
  360. }
  361. status_command i3cat --cmd-file="/home/tom/.i3/i3cat.1.conf"
  362. }
  363. ##End i3status
  364. ###END USER DEFINED