Dotfiles for my tiling window manager + terminal workflow.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

282 lines
9.4 KiB

  1. # applications {{{ #
  2. # startup {{{ #
  3. exec redshift -O 4000
  4. # random bg
  5. # exec_always feh -z --bg-fill ~/Pictures/Backgrounds/*
  6. # exec_always feh --bg-fill ~/Pictures/Backgrounds/
  7. # exec_always ~/.local/bin/wal -i "$HOME/Pictures/Backgrounds/"
  8. exec_always ~/.local/bin/wal -i "$HOME/Pictures/Backgrounds/retro-mountains-pink.jpg"
  9. exec imwheel
  10. exec --no-startup-id i3-msg 'workspace 1 ; exec terminator'
  11. exec --no-startup-id i3-msg 'workspace 2 ; exec terminator'
  12. exec --no-startup-id i3-msg 'workspace 3 ; exec google-chrome'
  13. # }}} startup #
  14. set $sch_dir "$HOME/Documents/School"
  15. # app shortcuts {{{ #
  16. bindsym Mod4+a exec studio
  17. # bindsym $mod+control+Return exec i3-sensible-terminal
  18. # bindsym $mod+control+Return exec rxvt-unicode
  19. bindsym $mod+control+Return exec xrdb .Xresources; exec rxvt-unicode
  20. bindsym Mod4+c exec google-chrome
  21. bindsym Mod4+e exec nemo
  22. bindsym Mod4+o exec okular
  23. bindsym Mod4+m exec okular $sch_dir/calc-textbook.pdf
  24. bindsym Mod4+p exec pycharm
  25. bindsym Print exec ksnapshot
  26. # }}} app shortcuts #
  27. # redshift {{{ #
  28. bindsym $mod+Mod4+1 exec redshift -O 1500
  29. bindsym $mod+Mod4+2 exec redshift -O 2000
  30. bindsym $mod+Mod4+3 exec redshift -O 2500
  31. bindsym $mod+Mod4+4 exec redshift -O 3000
  32. bindsym $mod+Mod4+5 exec redshift -O 4000
  33. bindsym $mod+Mod4+0 exec redshift -x
  34. # }}} redshift #
  35. # menu {{{ #
  36. # start dmenu (a program launcher)
  37. bindsym Mod4+Return exec dmenu_run
  38. # There also is the (new) i3-dmenu-desktop which only displays applications
  39. # shipping a .desktop file. It is a wrapper around dmenu, so you need that
  40. # installed.
  41. # bindsym $mod+d exec --no-startup-id i3-dmenu-desktop
  42. # }}} menu #
  43. # Use Mouse+$mod to drag floating windows to their wanted position
  44. floating_modifier $mod
  45. # }}} applications #
  46. # changing/focusing/moving windows {{{ #
  47. # change focus
  48. bindsym control+h focus left
  49. bindsym control+j focus down
  50. bindsym control+k focus up
  51. bindsym control+l focus right
  52. # move workspace to other monitor
  53. bindsym $mod+minus move workspace to output left
  54. bindsym $mod+plus move workspace to output right
  55. # alternatively, you can use the cursor keys:
  56. bindsym $mod+Left focus left
  57. bindsym $mod+Down focus down
  58. bindsym $mod+Up focus up
  59. bindsym $mod+Right focus right
  60. # move focused window
  61. bindsym control+Shift+h move left
  62. bindsym control+Shift+j move down
  63. bindsym control+Shift+k move up
  64. bindsym control+Shift+l move right
  65. # alternatively, you can use the cursor keys:
  66. bindsym $mod+Shift+Left move left
  67. bindsym $mod+Shift+Down move down
  68. bindsym $mod+Shift+Up move up
  69. bindsym $mod+Shift+Right move right
  70. # split in horizontal orientation
  71. bindsym $mod+b split h
  72. # split in vertical orientation
  73. bindsym $mod+v split v
  74. bindsym control+Shift+x kill
  75. # }}} changing/focusing/moving windows #
  76. # container display {{{ #
  77. # backgrounds
  78. # bindsym $mod+g exec feh -z --bg-fill ~/Pictures/Backgrounds/*
  79. bindsym $mod+g exec ~/.local/bin/wal -i "$HOME/Pictures/Backgrounds/"
  80. # bindsym $mod+z exec feh --bg-max ~/Pictures/Backgrounds/deadpool.png
  81. bindsym $mod+z exec ~/.local/bin/wal -i "$HOME/Pictures/Backgrounds/sunset-2.jpg"
  82. # enter fullscreen mode for the focused container
  83. bindsym $mod+f fullscreen toggle
  84. # change container layout (stacked, tabbed, toggle split)
  85. bindsym $mod+s layout stacking
  86. bindsym $mod+t layout tabbed
  87. bindsym $mod+e layout toggle split
  88. # toggle tiling / floating
  89. bindsym $mod+Shift+space floating toggle
  90. # change focus between tiling / floating windows
  91. bindsym $mod+space focus mode_toggle
  92. # focus the parent container
  93. bindsym $mod+a focus parent
  94. # focus the child container
  95. #bindsym $mod+d focus child
  96. # }}} container display #
  97. # workspace {{{ #
  98. # ws names {{{ #
  99. set $samsung "DVI-I-1"
  100. set $benq "HDMI-0"
  101. set $ws1 "1 "
  102. workspace $ws1 output $samsung
  103. bindsym $mod+F1 workspace $ws1; exec terminator
  104. set $ws2 "2 "
  105. workspace $ws2 output $benq
  106. bindsym $mod+F2 workspace $ws2; exec terminator
  107. set $ws3 "3 "
  108. workspace $ws3 output $benq
  109. bindsym $mod+F3 workspace $ws3; exec google-chrome
  110. set $ws4 "4 "
  111. workspace $ws4 output $samsung
  112. assign [class="Okular"] $ws4
  113. set $ws5 "5 "
  114. workspace $ws5 output $benq
  115. bindsym $mod+F5 workspace $ws5; exec google-chrome
  116. set $ws6 "6 "
  117. workspace $ws6 output $samsung
  118. bindsym Mod4+d workspace $ws6; exec discord
  119. assign [class="Slack"] $ws6
  120. set $ws7 "7 "
  121. workspace $ws7 output $samsung
  122. set $ws8 "8 "
  123. assign [class="jetbrains-"] $ws8
  124. set $ws9 "9 "
  125. workspace $ws9 output $samsung
  126. bindsym $mod+F9 workspace $ws9; exec terminator
  127. set $ws10 "10 "
  128. assign [class="VirtualBox"] $ws10
  129. bindsym Mod4+s workspace $ws10; exec spotify
  130. set $ws11 "11 "
  131. workspace $ws11 output $benq
  132. bindsym $mod+F11 workspace $ws11; exec terminator
  133. # }}} ws names #
  134. # ws bindings {{{ #
  135. # switch to workspace
  136. bindsym $mod+h workspace prev
  137. bindsym $mod+l workspace next
  138. bindsym $mod+1 workspace $ws1
  139. bindsym $mod+2 workspace $ws2
  140. bindsym $mod+3 workspace $ws3
  141. bindsym $mod+4 workspace $ws4
  142. bindsym $mod+5 workspace $ws5
  143. bindsym $mod+6 workspace $ws6
  144. bindsym $mod+7 workspace $ws7
  145. bindsym $mod+8 workspace $ws8
  146. bindsym $mod+9 workspace $ws9
  147. bindsym $mod+0 workspace $ws10
  148. bindsym $mod+Shift+1 workspace $ws11
  149. # }}} ws bindings #
  150. # move container to ws {{{ #
  151. # move focused container to workspace
  152. # bindsym $mod+control+1 move container to workspace $ws1
  153. # bindsym $mod+control+2 move container to workspace $ws2
  154. # bindsym $mod+control+3 move container to workspace $ws3
  155. # bindsym $mod+control+4 move container to workspace $ws4
  156. bindsym $mod+control+1 move container to workspace $ws1; workspace $ws1
  157. bindsym $mod+control+2 move container to workspace $ws2; workspace $ws2
  158. bindsym $mod+control+3 move container to workspace $ws3; workspace $ws3
  159. bindsym $mod+control+4 move container to workspace $ws4; workspace $ws4
  160. bindsym $mod+control+5 move container to workspace $ws5; workspace $ws5
  161. bindsym $mod+control+6 move container to workspace $ws6; workspace $ws6
  162. bindsym $mod+control+7 move container to workspace $ws7; workspace $ws7
  163. bindsym $mod+control+8 move container to workspace $ws8; workspace $ws8
  164. bindsym $mod+control+9 move container to workspace $ws9; workspace $ws9
  165. bindsym $mod+control+0 move container to workspace $ws10; workspace $ws10
  166. bindsym $mod+control+Shift+1 move container to workspace $ws11
  167. # }}} move container to ws #
  168. # }}} workspace #
  169. # reload config/computer {{{ #
  170. bindsym $mod+Shift+s exec systemctl suspend
  171. # restart i3 inplace (preserves your layout/session, can be used to upgrade i3)
  172. bindsym $mod+control+r restart
  173. # reload the configuration file
  174. bindsym $mod+Shift+c reload
  175. # exit i3 (logs you out of your X session)
  176. 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'"
  177. # }}} reload config #
  178. # resizing windows {{{ #
  179. bindsym $mod+control+h resize grow width 10 px or 10 ppt
  180. bindsym $mod+control+k resize grow height 10 px or 10 ppt
  181. bindsym $mod+control+j resize shrink height 10 px or 10 ppt
  182. bindsym $mod+control+l resize shrink width 10 px or 10 ppt
  183. # }}} resizing windows #
  184. # gaps {{{ #
  185. # remove window titlebars
  186. for_window [class="^.*"] border pixel 0
  187. # default gaps
  188. gaps inner 25
  189. gaps outer 5
  190. # increase/decrease gaps
  191. bindsym control+shift+plus gaps inner all plus 2;gaps outer all plus 2
  192. # bindsym control+shift+plus gaps inner all plus 2
  193. bindsym control+shift+0 gaps inner all minus 2;gaps outer all minus 2
  194. # }}} gaps #
  195. # status bar {{{ #
  196. # Start i3bar to display a workspace bar (plus the system information i3status
  197. # finds out, if available)
  198. set $sb_font Hack Bold
  199. bar {
  200. font pango:$sb_font 17
  201. tray_output none
  202. status_command i3blocks -c ~/.config/i3blocks/i3blocks.conf
  203. output HDMI-0
  204. }
  205. bar {
  206. output $samsung
  207. status_command i3blocks -c ~/.config/sam-i3blocks/sam-i3blocks.conf
  208. tray_output none
  209. font pango:$sb_font 22
  210. # font pango:monospace 22, FontAwesome 22
  211. }
  212. # }}} status bar #
  213. # mod key/font {{{ #
  214. set $mod Mod1
  215. # Font for window titles. Will also be used by the bar unless a different font
  216. # is used in the bar {} block below.
  217. font pango:Hack 11
  218. # This font is widely installed, provides lots of unicode glyphs, right-to-left
  219. # text rendering and scalability on retina/hidpi displays (thanks to pango).
  220. #font pango:DejaVu Sans Mono 8
  221. # Before i3 v4.8, we used to recommend this one as the default:
  222. # font -misc-fixed-medium-r-normal--13-120-75-75-C-70-iso10646-1
  223. # The font above is very space-efficient, that is, it looks good, sharp and
  224. # clear in small sizes. However, its unicode glyph coverage is limited, the old
  225. # X core fonts rendering does not support right-to-left and this being a bitmap
  226. # font, it doesn’t scale on retina/hidpi displays.
  227. # }}} mod key/font #
  228. # media keys {{{ #
  229. bindsym XF86AudioRaiseVolume exec --no-startup-id amixer -c 1 sset Master 5+
  230. bindsym XF86AudioLowerVolume exec --no-startup-id amixer -c 1 sset Master 5-
  231. bindsym XF86AudioMute exec --no-startup-id amixer -D pulse set Master 1+ toggle
  232. # Media player controls
  233. bindsym XF86AudioPlay exec "dbus-send --print-reply --dest=org.mpris.MediaPlayer2.spotify /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.PlayPause"
  234. bindsym XF86AudioStop exec "dbus-send --print-reply --dest=org.mpris.MediaPlayer2.spotify /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.Stop"
  235. bindsym XF86AudioPrev exec "dbus-send --print-reply --dest=org.mpris.MediaPlayer2.spotify /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.Previous"
  236. bindsym XF86AudioNext exec "dbus-send --print-reply --dest=org.mpris.MediaPlayer2.spotify /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.Next"
  237. # }}} media keys #