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.

256 lines
8.3 KiB

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