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.

286 lines
9.6 KiB

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