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.

213 lines
6.7 KiB

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