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.

251 lines
8.0 KiB

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