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.

238 lines
7.5 KiB

  1. # applications {{{ #
  2. # startup {{{ #
  3. exec redshift -O 4000
  4. exec_always feh --bg-scale ~/Pictures/space-wallpaper.jpg
  5. exec imwheel
  6. # enable horizontal scrolling
  7. exec --no-startup-id synclient HorizTwoFingerScroll=1
  8. # disable touchscreen
  9. exec xinput disable 12
  10. exec terminator
  11. # }}} startup #
  12. bindsym Mod4+e exec cd /usr/local/android-studio/bin/ && ./studio.sh
  13. bindsym $mod+control+Return exec terminator
  14. bindsym Mod4+c exec google-chrome-stable --force-device-scale-factor=1.5
  15. bindsym Mod4+p exec ksnapshot
  16. bindsym Mod4+t exec thunar
  17. # redshift {{{ #
  18. bindsym $mod+Mod4+1 exec redshift -O 1500
  19. bindsym $mod+Mod4+2 exec redshift -O 2000
  20. bindsym $mod+Mod4+3 exec redshift -O 3000
  21. bindsym $mod+Mod4+4 exec redshift -O 4000
  22. bindsym $mod+Mod4+5 exec redshift -O 5000
  23. bindsym $mod+Mod4+0 exec redshift -x
  24. # }}} redshift #
  25. # menu {{{ #
  26. # start dmenu (a program launcher)
  27. bindsym Mod4+Return exec dmenu_run
  28. # There also is the (new) i3-dmenu-desktop which only displays applications
  29. # shipping a .desktop file. It is a wrapper around dmenu, so you need that
  30. # installed.
  31. # bindsym $mod+d exec --no-startup-id i3-dmenu-desktop
  32. # }}} menu #
  33. # Use Mouse+$mod to drag floating windows to their wanted position
  34. floating_modifier $mod
  35. # }}} applications #
  36. # changing/focusing/moving windows {{{ #
  37. # change focus
  38. bindsym control+h focus left
  39. bindsym control+j focus down
  40. bindsym control+k focus up
  41. bindsym control+l focus right
  42. # move workspace to other monitor
  43. bindsym $mod+h move workspace to output left
  44. bindsym $mod+l move workspace to output 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. bindsym $mod+F1 workspace $ws1; exec terminator
  81. set $ws2 "2 "
  82. bindsym $mod+F2 workspace $ws2; exec terminator
  83. set $ws3 "3 🌐"
  84. bindsym $mod+F3 workspace $ws3; exec google-chrome
  85. set $ws4 "4 🖹"
  86. set $ws5 "5 "
  87. set $ws6 "6 🗪"
  88. bindsym Mod4+d workspace $ws6; exec discord
  89. set $ws7 "7 ↥"
  90. set $ws8 "8 📱"
  91. set $ws9 "9 ✎"
  92. bindsym $mod+F9 workspace $ws9; exec terminator
  93. set $ws10 "10 "
  94. bindsym $mod+F10 workspace $ws10; exec terminator
  95. # }}} ws names #
  96. # ws bindings {{{ #
  97. # switch to workspace
  98. bindsym $mod+plus workspace next
  99. bindsym $mod+minus workspace prev
  100. bindsym $mod+1 workspace $ws1
  101. bindsym $mod+2 workspace $ws2
  102. bindsym $mod+3 workspace $ws3
  103. bindsym $mod+4 workspace $ws4
  104. bindsym $mod+5 workspace $ws5
  105. bindsym $mod+6 workspace $ws6
  106. bindsym $mod+7 workspace $ws7
  107. bindsym $mod+8 workspace $ws8
  108. bindsym $mod+9 workspace $ws9
  109. bindsym $mod+0 workspace $ws10
  110. # }}} ws bindings #
  111. # move container to ws {{{ #
  112. # move focused container to workspace
  113. # bindsym $mod+control+1 move container to workspace $ws1
  114. # bindsym $mod+control+2 move container to workspace $ws2
  115. # bindsym $mod+control+3 move container to workspace $ws3
  116. # bindsym $mod+control+4 move container to workspace $ws4
  117. bindsym $mod+control+1 move container to workspace $ws1; workspace $ws1
  118. bindsym $mod+control+2 move container to workspace $ws2; workspace $ws2
  119. bindsym $mod+control+3 move container to workspace $ws3; workspace $ws3
  120. bindsym $mod+control+4 move container to workspace $ws4; workspace $ws4
  121. bindsym $mod+control+5 move container to workspace $ws5; workspace $ws5
  122. bindsym $mod+control+6 move container to workspace $ws6; workspace $ws6
  123. bindsym $mod+control+7 move container to workspace $ws7; workspace $ws7
  124. bindsym $mod+control+8 move container to workspace $ws8; workspace $ws8
  125. bindsym $mod+control+9 move container to workspace $ws9; workspace $ws9
  126. bindsym $mod+control+0 move container to workspace $ws10; workspace $ws10
  127. # }}} move container to ws #
  128. # gaps {{{ #
  129. # gaps inner 10
  130. # gaps outer 20
  131. # }}} gaps #
  132. # }}} workspace #
  133. # reload config/computer {{{ #
  134. bindsym $mod+Shift+s exec systemctl suspend
  135. # restart i3 inplace (preserves your layout/session, can be used to upgrade i3)
  136. bindsym $mod+control+r restart
  137. # reload the configuration file
  138. bindsym $mod+Shift+c reload
  139. # exit i3 (logs you out of your X session)
  140. 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'"
  141. # }}} reload config #
  142. # resizing windows {{{ #
  143. bindsym $mod+control+h resize grow width 10 px or 10 ppt
  144. bindsym $mod+control+k resize grow height 10 px or 10 ppt
  145. bindsym $mod+control+j resize shrink height 10 px or 10 ppt
  146. bindsym $mod+control+l resize shrink width 10 px or 10 ppt
  147. # }}} resizing windows #
  148. # gaps {{{ #
  149. for_window [class="^.*"] border pixel 0
  150. gaps inner 20
  151. gaps outer 0
  152. bindsym control+shift+plus gaps inner all plus 5;gaps outer all plus 5
  153. bindsym control+shift+0 gaps inner all minus 5;gaps outer all minus 5
  154. # }}} gaps #
  155. # status bar {{{ #
  156. # Start i3bar to display a workspace bar (plus the system information i3status
  157. # finds out, if available)
  158. set $sb_font Hack Bold 16
  159. bar {
  160. font pango:$sb_font
  161. status_command i3blocks -c ~/.config/i3blocks/i3blocks.conf
  162. tray_output none
  163. }
  164. # }}} status bar #
  165. # mod key/font {{{ #
  166. set $mod Mod1
  167. # Font for window titles. Will also be used by the bar unless a different font
  168. # is used in the bar {} block below.
  169. font pango:Hack 10
  170. # This font is widely installed, provides lots of unicode glyphs, right-to-left
  171. # text rendering and scalability on retina/hidpi displays (thanks to pango).
  172. #font pango:DejaVu Sans Mono 8
  173. # Before i3 v4.8, we used to recommend this one as the default:
  174. # font -misc-fixed-medium-r-normal--13-120-75-75-C-70-iso10646-1
  175. # The font above is very space-efficient, that is, it looks good, sharp and
  176. # clear in small sizes. However, its unicode glyph coverage is limited, the old
  177. # X core fonts rendering does not support right-to-left and this being a bitmap
  178. # font, it doesn’t scale on retina/hidpi displays.
  179. # }}} mod key/font #
  180. # function keys {{{ #
  181. # backlight {{{ #
  182. bindsym $mod+Shift+plus exec xbacklight -inc 2
  183. bindsym $mod+Shift+minus exec xbacklight -dec 2
  184. # }}} backlight #
  185. # connect/disconnect wifi {{{ #
  186. bindsym $mod+control+w exec nmcli radio wifi on
  187. bindsym $mod+control+q exec nmcli radio wifi off
  188. # }}} connect/disconnect wifi #
  189. # volume keys {{{ #
  190. bindsym XF86AudioRaiseVolume exec --no-startup-id amixer -c 1 sset Master 5%+
  191. bindsym XF86AudioLowerVolume exec --no-startup-id amixer -c 1 sset Master 5%-
  192. bindsym XF86AudioMute exec --no-startup-id amixer -c 1 amixer -D pulse set Master 1+ toggle
  193. # }}} volume keys #
  194. # media keys {{{ #
  195. bindsym XF86AudioPlay exec playerctl play
  196. bindsym XF86AudioPause exec playerctl pause
  197. bindsym XF86AudioNext exec playerctl next
  198. bindsym XF86AudioPrev exec playerctl previous
  199. # }}} media keys #
  200. # volume keys }}} #