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.

242 lines
7.6 KiB

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