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.

214 lines
6.6 KiB

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