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