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.7 KiB

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