config 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370
  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. # i3 config file (v4)
  8. #
  9. # Please see http://i3wm.org/docs/userguide.html for a complete reference!
  10. set $mod Mod4
  11. # Font for window titles. Will also be used by the bar unless a different font
  12. # is used in the bar {} block below.
  13. font pango:monospace 8
  14. # This font is widely installed, provides lots of unicode glyphs, right-to-left
  15. # text rendering and scalability on retina/hidpi displays (thanks to pango).
  16. #font pango:DejaVu Sans Mono 8
  17. # Before i3 v4.8, we used to recommend this one as the default:
  18. # font -misc-fixed-medium-r-normal--13-120-75-75-C-70-iso10646-1
  19. # The font above is very space-efficient, that is, it looks good, sharp and
  20. # clear in small sizes. However, its unicode glyph coverage is limited, the old
  21. # X core fonts rendering does not support right-to-left and this being a bitmap
  22. # font, it doesn’t scale on retina/hidpi displays.
  23. ## If you try to go to the same workspace you are on, jump to last workspace
  24. workspace_auto_back_and_forth yes
  25. ### Variables ### {{{
  26. set $Locker i3lock e -c 2E3436 && sleep 1
  27. ### Workspace Names ### {{{
  28. set $ws1 1:
  29. set $ws2 2:
  30. set $ws3 3:
  31. set $ws4 4:
  32. set $ws5 5
  33. set $ws6 6
  34. set $ws7 7:
  35. set $ws8 8
  36. set $ws9 9
  37. set $ws10 10
  38. ### End Workspace Names ### }}}
  39. ### End Variables ### }}}
  40. ### Bindings ### {{{
  41. ### Workspace Bindings ### {{{
  42. ### Last Workspace ### {{{
  43. ## Move to last workspace
  44. bindsym $mod+Tab workspace back_and_forth
  45. ## Send container to last workspace
  46. bindsym $mod+Shift+Tab move container to workspace back_and_forth
  47. ### End Last Workspace ### }}}
  48. ### Switch Workspace ### {{{
  49. # switch to workspace
  50. bindsym $mod+1 workspace $ws1
  51. bindsym $mod+2 workspace $ws2
  52. bindsym $mod+3 workspace $ws3
  53. bindsym $mod+4 workspace $ws4
  54. bindsym $mod+5 workspace $ws5
  55. bindsym $mod+6 workspace $ws6
  56. bindsym $mod+7 workspace $ws7
  57. bindsym $mod+8 workspace $ws8
  58. bindsym $mod+9 workspace $ws9
  59. bindsym $mod+0 workspace $ws10
  60. ### End Switch Workspace ### }}}
  61. ### Send Workspace ### {{{
  62. # move focused container to workspace
  63. bindsym $mod+Shift+1 move container to workspace $ws1
  64. bindsym $mod+Shift+2 move container to workspace $ws2
  65. bindsym $mod+Shift+3 move container to workspace $ws3
  66. bindsym $mod+Shift+4 move container to workspace $ws4
  67. bindsym $mod+Shift+5 move container to workspace $ws5
  68. bindsym $mod+Shift+6 move container to workspace $ws6
  69. bindsym $mod+Shift+7 move container to workspace $ws7
  70. bindsym $mod+Shift+8 move container to workspace $ws8
  71. bindsym $mod+Shift+9 move container to workspace $ws9
  72. bindsym $mod+Shift+0 move container to workspace $ws10
  73. ### End Send Workspace ### }}}
  74. ### Move Workspace Different Monitor ### {{{
  75. # Move the current workspace to the next output
  76. bindsym $mod+Mod1+Left move workspace to output Left
  77. bindsym $mod+Mod1+Down move workspace to output Down
  78. bindsym $mod+Mod1+Up move workspace to output Up
  79. bindsym $mod+Mod1+Right move workspace to output right
  80. ### End Move Workspace Different Monitor ### }}}
  81. ### End Workspace Bindings ### }}}
  82. ### Window Bindings ### {{{
  83. # kill focused window
  84. bindsym $mod+Shift+q kill
  85. ### Sticky Windows, good for picture in picture
  86. bindsym $mod+Shift+s sticky toggle
  87. ### Split Orientation ### {{{
  88. # split in horizontal orientation
  89. bindsym $mod+h split h
  90. # split in vertical orientation
  91. bindsym $mod+v split v
  92. ### End Split Orientation ### }}}
  93. ### End Window Bindings ### }}}
  94. ### Focus Bindings ### {{{
  95. # enter fullscreen mode for the focused container
  96. bindsym $mod+f fullscreen toggle
  97. ### Tile / Float ### {{{
  98. # toggle tiling / floating
  99. bindsym $mod+Shift+space floating toggle
  100. # change focus between tiling / floating windows
  101. bindsym $mod+space focus mode_toggle
  102. ### End Tile / Float ### }}}
  103. ### Change Focus ### {{{
  104. # change focus
  105. bindsym $mod+j focus left
  106. bindsym $mod+k focus down
  107. bindsym $mod+l focus up
  108. bindsym $mod+semicolon focus right
  109. # alternatively, you can use the cursor keys:
  110. bindsym $mod+Left focus left
  111. bindsym $mod+Down focus down
  112. bindsym $mod+Up focus up
  113. bindsym $mod+Right focus right
  114. ### End Change Focus ### }}}
  115. ### Move Focused Window ### {{{
  116. # move focused window
  117. bindsym $mod+Shift+j move left
  118. bindsym $mod+Shift+k move down
  119. bindsym $mod+Shift+l move up
  120. bindsym $mod+Shift+semicolon move right
  121. # alternatively, you can use the cursor keys:
  122. bindsym $mod+Shift+Left move left
  123. bindsym $mod+Shift+Down move down
  124. bindsym $mod+Shift+Up move up
  125. bindsym $mod+Shift+Right move right
  126. ### End Move Focused Window ### }}}
  127. ### Focus Urgent Workspace {{{
  128. bindsym $mod+x [urgent=latest] focus
  129. ### End Focus Urgent Workspace ###}}}
  130. ### End Focus Bindings ### }}}
  131. ### Container Bindings ### {{{
  132. ### Change Container Layout ### {{{
  133. # change container layout (stacked, tabbed, toggle split)
  134. bindsym $mod+s layout stacking
  135. bindsym $mod+w layout tabbed
  136. bindsym $mod+e layout toggle split
  137. ### End Change Container Layout ### }}}
  138. ### Parent / Child Container ### {{{
  139. # focus the parent container
  140. bindsym $mod+a focus parent
  141. # focus the child container
  142. bindsym $mod+d focus child
  143. ### End Parent / Child Container ### }}}
  144. ### End Container Bindings ### }}}
  145. ### i3 Modes ### {{{
  146. ### Handy Menu Mode ### {{{
  147. set $mode_system System (l) lock, (e) logout, (s) suspend, (h) hibernate, (r) reboot, (Shift+s) shutdown
  148. mode "$mode_system" {
  149. bindsym l exec --no-startup-id $Locker, mode "default"
  150. bindsym e exec --no-startup-id i3-msg exit, mode "default"
  151. bindsym s exec --no-startup-id $Locker && systemctl suspend, mode "default"
  152. bindsym h exec --no-startup-id $Locker && systemctl hibernate, mode "default"
  153. bindsym r exec --no-startup-id systemctl reboot, mode "default"
  154. bindsym Shift+s exec --no-startup-id systemctl poweroff -i, mode "default"
  155. # back to normal: Enter or Escape
  156. bindsym Return mode "default"
  157. bindsym Escape mode "default"
  158. }
  159. bindsym $mod+Pause mode "$mode_system"
  160. ### End Handy Menu Mode ### }}}
  161. ### App Focus Mode ### {{{
  162. mode "App Focus" {
  163. # hardcoded focus keybindings
  164. bindsym b [class="(?i)uzbl"] focus, mode "default"
  165. bindsym w [class="(?i)terminal" title="weechat"] focus, mode "default"
  166. bindsym m [class="(?i)icedove"] focus, mode "default"
  167. bindsym f [class="(?i)spacefm"] focus, mode "default"
  168. bindsym z [class="(?i)zathura"] focus, mode "default"
  169. # back to normal: Enter or Escape
  170. bindsym Return mode "default"
  171. bindsym Escape mode "default"
  172. }
  173. bindsym $Mod+g mode "App Focus"
  174. ### End App Focus Mode ### }}}
  175. ### Resize Window ### {{{
  176. # resize window (you can also use the mouse for that)
  177. mode "resize" {
  178. # These bindings trigger as soon as you enter the resize mode
  179. # Pressing left will shrink the window’s width.
  180. # Pressing right will grow the window’s width.
  181. # Pressing up will shrink the window’s height.
  182. # Pressing down will grow the window’s height.
  183. bindsym j resize shrink width 10 px or 10 ppt
  184. bindsym k resize grow height 10 px or 10 ppt
  185. bindsym l resize shrink height 10 px or 10 ppt
  186. bindsym semicolon resize grow width 10 px or 10 ppt
  187. # same bindings, but for the arrow keys
  188. bindsym Left resize shrink width 10 px or 10 ppt
  189. bindsym Down resize grow height 10 px or 10 ppt
  190. bindsym Up resize shrink height 10 px or 10 ppt
  191. bindsym Right resize grow width 10 px or 10 ppt
  192. # back to normal: Enter or Escape
  193. bindsym Return mode "default"
  194. bindsym Escape mode "default"
  195. }
  196. bindsym $mod+r mode "resize"
  197. ### End Resize ### }}}
  198. ## xrandr mode?
  199. ##control-pianobar mode?
  200. ### End i3 Modes ### }}}
  201. ### Misc Bindings ### {{{
  202. ### i3 Keys ### {{{
  203. # reload the configuration file
  204. bindsym $mod+Shift+c reload
  205. # restart i3 inplace (preserves your layout/session, can be used to upgrade i3)
  206. bindsym $mod+Shift+r restart
  207. # exit i3 (logs you out of your X session)
  208. 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'"
  209. ### End i3 Keys ### }}}
  210. ### Launch Term ### {{{
  211. # start a terminal
  212. bindsym $mod+Return exec i3-sensible-terminal
  213. ### End Launch Term ### }}}
  214. ### Screen Shots ### {{{
  215. bindsym $mod+Print exec $HOME/bin/screenshot.sh full
  216. ## Note, you need to click on the window, after key combo, to capture it.
  217. bindsym $mod+Shift+Print exec $HOME/bin/screenshot.sh window
  218. ### End Screen Shots ### }}}
  219. ### Rofi Bindings ### {{{
  220. ## Use rofi, it's better
  221. # start dmenu (a program launcher)
  222. #bindsym $mod+d exec dmenu_run
  223. bindsym $mod+p exec rofi -sidebar-mode -show run -font 'Pragmata Pro 10' -fg \#505050 -bg \#000000 -bgalt \#101010 -hlfg \#008080 -hlbg \#454A4F -bc \#008080 -bw 1 -location 2 -width 100 -padding 0 -lines 10 -no-disable-history -no-levenshtein-sort
  224. ### rofi-pass binding
  225. bindsym $mod+Shift+p exec rofi-pass
  226. ### End Rofi Bindings ### }}}
  227. ### Handy Menu GUI ### {{{
  228. bindsym $mod+Shift+Pause exec "i3-nagbar -t warning -m 'Options:' -b 'lock' 'exec $Locker' -b 'logout' 'exec --no-startup-id i3-msg exit' -b 'suspend' 'exec --no-startup-id $Locker && systemctl suspend' -b 'hibernate' 'exec iino-startup-id $Locker && systemctl hibernate' -b 'reboot' 'exec --no-startup-id systemctl reboot' -b 'shutdown' 'exec --no-startup-id systemctl poweroff -i'"
  229. ### End Handy Menu GUI ### }}}
  230. ### control-pianobar Commands ### {{{
  231. bindsym $mod+F12 exec ~/.config/pianobar/control-pianobar.sh play
  232. bindsym $mod+F11 exec ~/.config/pianobar/control-pianobar.sh quit
  233. bindsym $mod+F9 exec ~/.config/pianobar/control-pianobar.sh history
  234. bindsym $mod+F1 exec ~/.config/pianobar/control-pianobar.sh next
  235. bindsym $mod+F2 exec ~/.config/pianobar/control-pianobar.sh tired
  236. bindsym $mod+F7 exec ~/.config/pianobar/control-pianobar.sh switchstation
  237. #bindsym $mod+F## exec ~/.config/pianobar/control-pianobar.sh previousstation
  238. #bindsym $mod+F## exec ~/.config/pianobar/control-pianobar.sh nextstation
  239. bindsym $mod+F3 exec ~/.config/pianobar/control-pianobar.sh love
  240. bindsym $mod+F5 exec ~/.config/pianobar/control-pianobar.sh ban
  241. #bindsym $mod+F## exec ~/.config/pianobar/control-pianobar.sh explain
  242. bindsym $mod+F8 exec ~/.config/pianobar/control-pianobar.sh current
  243. ### End control-pianobar Commandss ### }}}
  244. ### Pulse Audio Controls ### {{{
  245. bindsym XF86AudioRaiseVolume exec --no-startup-id amixer -D pulse sset Master 3%+ #increase sound volume
  246. bindsym XF86AudioLowerVolume exec --no-startup-id amixer -D pulse sset Master 3%- #decrease sound volume
  247. bindsym XF86AudioMute exec --no-startup-id pactl set-sink-mute 0 toggle # mute sound
  248. ### End Pulse Audio ### }}}
  249. ### Toggle redshift ### {{{
  250. bindsym $mod+slash exec --no-startup-id pkill -USR1 redshift
  251. ### End Toggle redshift ### }}}
  252. ### End Misc Bindings ### }}}
  253. ### Mouse Bindings ### {{{
  254. # Use Mouse+$mod to drag floating windows to their wanted position
  255. floating_modifier $mod
  256. ### End Mouse Bindings ### }}}
  257. ### Scratch Pad ### {{{
  258. # Make the currently focused window a scratchpad
  259. bindsym $mod+Shift+minus move scratchpad
  260. # Show the first scratchpad window
  261. bindsym $mod+minus scratchpad show
  262. ### End Scratch Pad ### }}}
  263. ### End Bindings ### }}}
  264. ### Window Treatments ### {{{
  265. ### Program Floating ### {{{
  266. for_window [class="mpv|feh"] floating enable
  267. for_window [class="mpv|URxvt|chromium|terminator"] border 1pixel
  268. ### End Program Floating ### }}}
  269. ### uzbl Tabs ### {{{
  270. for_window [class="Uzbl-core"] focus child, layout tabbed, focus
  271. ### End uzbl Tabs ### }}}
  272. ### Deal with pop ups ### {{{
  273. for_window [window_role="pop-up"] floating enable
  274. for_window [window_role="task_dialog"] floating enable
  275. for_window [title="Preferences$"] floating enable
  276. ### End Popups ### }}}
  277. ### Scratchpad ### {{{
  278. for_window [title="nvPY"] move scratchpad
  279. ### End Scratchpad ### }}}
  280. ### End Window Treatments ### }}}
  281. ### Assign Application Workspace ### {{{
  282. assign [class="(?i)chromium"] $ws3
  283. assign [class="(?i)icedove"] $ws4
  284. assign [class="(?i)spacefm"] $ws7
  285. ### End Assign Application Workspace ### }}}
  286. ### Bar Settings ### {{{
  287. # Start i3bar to display a workspace bar (plus the system information i3status
  288. # finds out, if available)
  289. #bar {
  290. #status_command i3status
  291. #tray_output primary
  292. #}
  293. bar {
  294. i3bar_command ~/.i3/lemonbar/i3_lemonbar.sh
  295. binding_mode_indicator yes
  296. ## This isn't working? primary display set to lvms1.
  297. #tray_output primary
  298. }
  299. ### End Bar Settings ### }}}
  300. ### Exec Programs ### {{{
  301. exec --no-startup-id /home/demure/.fehbg
  302. exec --no-startup-id clipit
  303. exec --no-startup-id xss-lock -- i3lock -e -c 2E3436
  304. exec --no-startup-id redshift
  305. exec --no-startup-id dropbox start
  306. exec nvpy
  307. ### End Exec Programs ### }}}