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.

248 lines
8.0 KiB

  1. # applications {{{ #
  2. # startup {{{ #
  3. exec redshift -O 4000
  4. exec /home/kevin/.local/bin/wal -i "/home/kevin/Pictures/Backgrounds/"
  5. # exec_always /home/kevin/.local/bin/wal -i "/home/kevin/Pictures/Backgrounds/japan-street.jpg"
  6. exec imwheel
  7. exec $def_term
  8. # }}} startup #
  9. set $def_term "rxvt-unicode"
  10. bindsym $mod+control+Return exec $def_term
  11. bindsym Mod4+a exec cd /usr/local/android-studio/bin/ && ./studio.sh
  12. bindsym Mod4+e exec thunar
  13. set $run_chrome "google-chrome-stable --force-device-scale-factor=1.5"
  14. bindsym Mod4+c exec $run_chrome
  15. bindsym Mod4+p exec ksnapshot
  16. bindsym Mod4+r exec urxvt -e ranger
  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. bindsym $mod+g exec /home/kevin/.local/bin/wal -i "/home/kevin/Pictures/Backgrounds/"
  63. # enter fullscreen mode for the focused container
  64. bindsym $mod+f fullscreen toggle
  65. # change container layout (stacked, tabbed, toggle split)
  66. bindsym $mod+s layout stacking
  67. bindsym $mod+t layout tabbed
  68. bindsym $mod+e layout toggle split
  69. # toggle tiling / floating
  70. bindsym $mod+Shift+space floating toggle
  71. # change focus between tiling / floating windows
  72. bindsym $mod+space focus mode_toggle
  73. # focus the parent container
  74. bindsym $mod+a focus parent
  75. # focus the child container
  76. #bindsym $mod+d focus child
  77. # }}} container display #
  78. # workspace {{{ #
  79. # ws names {{{ #
  80. set $ws1 "1 "
  81. bindsym F1 workspace $ws1; exec $def_term
  82. set $ws2 "2 "
  83. bindsym F2 workspace $ws2; exec $def_term
  84. set $ws3 "3 🌐"
  85. bindsym F3 workspace $ws3; exec $run_chrome
  86. set $ws4 "4 🖹"
  87. set $ws5 "5 "
  88. set $ws6 "6 🗪"
  89. bindsym Mod4+d workspace $ws6; exec discord
  90. bindsym Mod4+l workspace $ws6; exec slack
  91. set $ws7 "7 ↥"
  92. set $ws8 "8 𝅘𝅥𝅮"
  93. bindsym Mod4+s workspace $ws8; exec spotify
  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+minus move workspace to output left
  104. bindsym $mod+plus move workspace to output right
  105. bindsym $mod+1 workspace $ws1
  106. bindsym $mod+2 workspace $ws2
  107. bindsym $mod+3 workspace $ws3
  108. bindsym $mod+4 workspace $ws4
  109. bindsym $mod+5 workspace $ws5
  110. bindsym $mod+6 workspace $ws6
  111. bindsym $mod+7 workspace $ws7
  112. bindsym $mod+8 workspace $ws8
  113. bindsym $mod+9 workspace $ws9
  114. bindsym $mod+0 workspace $ws10
  115. # }}} ws bindings #
  116. # move container to ws {{{ #
  117. # move focused container to workspace
  118. # bindsym $mod+control+1 move container to workspace $ws1
  119. # bindsym $mod+control+2 move container to workspace $ws2
  120. # bindsym $mod+control+3 move container to workspace $ws3
  121. # bindsym $mod+control+4 move container to workspace $ws4
  122. bindsym $mod+control+1 move container to workspace $ws1; workspace $ws1
  123. bindsym $mod+control+2 move container to workspace $ws2; workspace $ws2
  124. bindsym $mod+control+3 move container to workspace $ws3; workspace $ws3
  125. bindsym $mod+control+4 move container to workspace $ws4; workspace $ws4
  126. bindsym $mod+control+5 move container to workspace $ws5; workspace $ws5
  127. bindsym $mod+control+6 move container to workspace $ws6; workspace $ws6
  128. bindsym $mod+control+7 move container to workspace $ws7; workspace $ws7
  129. bindsym $mod+control+8 move container to workspace $ws8; workspace $ws8
  130. bindsym $mod+control+9 move container to workspace $ws9; workspace $ws9
  131. bindsym $mod+control+0 move container to workspace $ws10; workspace $ws10
  132. # }}} move container to ws #
  133. # gaps {{{ #
  134. # gaps inner 10
  135. # gaps outer 20
  136. # }}} gaps #
  137. # }}} workspace #
  138. # reload config/computer {{{ #
  139. bindsym $mod+Shift+s exec systemctl suspend
  140. # restart i3 inplace (preserves your layout/session, can be used to upgrade i3)
  141. bindsym $mod+control+r restart
  142. # reload the configuration file
  143. bindsym $mod+Shift+c reload
  144. # exit i3 (logs you out of your X session)
  145. 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'"
  146. # }}} reload config #
  147. # resizing windows {{{ #
  148. bindsym $mod+control+h resize grow width 10 px or 10 ppt
  149. bindsym $mod+control+l resize shrink width 10 px or 10 ppt
  150. bindsym $mod+control+k resize grow height 10 px or 10 ppt
  151. bindsym $mod+control+j resize shrink height 10 px or 10 ppt
  152. # bindsym $mod+control+k resize grow height 1 px or 1 ppt
  153. # bindsym $mod+control+j resize shrink height 1 px or 1 ppt
  154. # }}} resizing windows #
  155. # gaps {{{ #
  156. for_window [class="^.*"] border pixel 0
  157. gaps inner 30
  158. gaps outer 2
  159. bindsym control+shift+plus gaps inner all plus 5;gaps outer all plus 5
  160. bindsym control+shift+0 gaps inner all minus 5;gaps outer all minus 5
  161. # }}} gaps #
  162. # status bar {{{ #
  163. # Start i3bar to display a workspace bar (plus the system information i3status
  164. # finds out, if available)
  165. set $sb_font Hack Bold 16
  166. bar {
  167. font pango:$sb_font
  168. status_command i3blocks -c ~/.config/i3blocks/i3blocks.conf
  169. tray_output none
  170. }
  171. # }}} status bar #
  172. # mod key/font {{{ #
  173. set $mod Mod1
  174. # Font for window titles. Will also be used by the bar unless a different font
  175. # is used in the bar {} block below.
  176. font pango:Hack 10
  177. # This font is widely installed, provides lots of unicode glyphs, right-to-left
  178. # text rendering and scalability on retina/hidpi displays (thanks to pango).
  179. #font pango:DejaVu Sans Mono 8
  180. # Before i3 v4.8, we used to recommend this one as the default:
  181. # font -misc-fixed-medium-r-normal--13-120-75-75-C-70-iso10646-1
  182. # The font above is very space-efficient, that is, it looks good, sharp and
  183. # clear in small sizes. However, its unicode glyph coverage is limited, the old
  184. # X core fonts rendering does not support right-to-left and this being a bitmap
  185. # font, it doesn’t scale on retina/hidpi displays.
  186. # }}} mod key/font #
  187. # function keys {{{ #
  188. # backlight {{{ #
  189. bindsym $mod+control+plus exec xbacklight -inc 2
  190. bindsym $mod+control+minus exec xbacklight -dec 2
  191. # }}} backlight #
  192. # connect/disconnect wifi {{{ #
  193. bindsym $mod+control+w exec nmcli radio wifi on
  194. bindsym $mod+control+q exec nmcli radio wifi off
  195. # }}} connect/disconnect wifi #
  196. # volume keys {{{ #
  197. bindsym XF86AudioRaiseVolume exec --no-startup-id amixer -c 1 sset Master 5%+
  198. bindsym XF86AudioLowerVolume exec --no-startup-id amixer -c 1 sset Master 5%-
  199. bindsym XF86AudioMute exec --no-startup-id amixer -c 1 amixer -D pulse set Master 1+ toggle
  200. # }}} volume keys #
  201. # media keys {{{ #
  202. bindsym XF86AudioPlay exec playerctl play
  203. bindsym XF86AudioPause exec playerctl pause
  204. bindsym XF86AudioNext exec playerctl next
  205. bindsym XF86AudioPrev exec playerctl previous
  206. # }}} media keys #
  207. # volume keys }}} #