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.

202 lines
6.7 KiB

  1. # applications {{{ #
  2. # startup {{{ #
  3. exec redshift -O 4000
  4. exec_always feh --bg-scale ~/Pictures/Backgrounds/samurai-astronaut.jpg
  5. exec imwheel
  6. exec terminator
  7. exec google-chrome
  8. # }}} startup #
  9. bindsym control+x kill
  10. bindsym $mod+control+Return exec i3-sensible-terminal
  11. bindsym Mod4+c exec google-chrome
  12. # redshift {{{ #
  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. # }}} redshift #
  18. # menu {{{ #
  19. # start dmenu (a program launcher)
  20. bindsym Mod4+Return exec dmenu_run
  21. # There also is the (new) i3-dmenu-desktop which only displays applications
  22. # shipping a .desktop file. It is a wrapper around dmenu, so you need that
  23. # installed.
  24. # bindsym $mod+d exec --no-startup-id i3-dmenu-desktop
  25. # }}} menu #
  26. # Use Mouse+$mod to drag floating windows to their wanted position
  27. floating_modifier $mod
  28. # }}} applications #
  29. # changing/focusing/moving windows {{{ #
  30. # change focus
  31. bindsym control+h focus left
  32. bindsym control+j focus down
  33. bindsym control+k focus up
  34. bindsym control+l focus right
  35. # move workspace to other monitor
  36. bindsym $mod+h move workspace to output left
  37. bindsym $mod+l move workspace to output right
  38. # alternatively, you can use the cursor keys:
  39. bindsym $mod+Left focus left
  40. bindsym $mod+Down focus down
  41. bindsym $mod+Up focus up
  42. bindsym $mod+Right focus right
  43. # move focused window
  44. bindsym control+Shift+h move left
  45. bindsym control+Shift+j move down
  46. bindsym control+Shift+k move up
  47. bindsym control+Shift+l move right
  48. # alternatively, you can use the cursor keys:
  49. bindsym $mod+Shift+Left move left
  50. bindsym $mod+Shift+Down move down
  51. bindsym $mod+Shift+Up move up
  52. bindsym $mod+Shift+Right move right
  53. # split in horizontal orientation
  54. bindsym $mod+b split h
  55. # split in vertical orientation
  56. bindsym $mod+v split v
  57. # }}} changing/focusing/moving windows #
  58. # container display {{{ #
  59. # enter fullscreen mode for the focused container
  60. bindsym $mod+f fullscreen toggle
  61. # change container layout (stacked, tabbed, toggle split)
  62. bindsym $mod+s layout stacking
  63. bindsym $mod+t layout tabbed
  64. bindsym $mod+e layout toggle split
  65. # toggle tiling / floating
  66. bindsym $mod+Shift+space floating toggle
  67. # change focus between tiling / floating windows
  68. bindsym $mod+space focus mode_toggle
  69. # focus the parent container
  70. bindsym $mod+a focus parent
  71. # focus the child container
  72. #bindsym $mod+d focus child
  73. # }}} container display #
  74. # workspace {{{ #
  75. # switch to workspace
  76. set $ws1 "1: "
  77. set $ws2 "2"
  78. set $ws3 "3"
  79. set $ws4 "4"
  80. # ws bindings {{{ #
  81. bindsym $mod+1 workspace $ws1
  82. bindsym $mod+2 workspace $ws2
  83. bindsym $mod+3 workspace $ws3
  84. bindsym $mod+4 workspace $ws4
  85. bindsym $mod+5 workspace 5
  86. bindsym $mod+6 workspace 6
  87. bindsym $mod+7 workspace 7
  88. bindsym $mod+8 workspace 8
  89. bindsym $mod+9 workspace 9
  90. bindsym $mod+0 workspace 10
  91. # }}} ws bindings #
  92. # move container to ws {{{ #
  93. # move focused container to workspace
  94. bindsym $mod+Shift+1 move container to workspace $ws1; workspace $ws1
  95. bindsym $mod+Shift+2 move container to workspace $ws2; workspace $ws2
  96. bindsym $mod+Shift+3 move container to workspace $ws3; workspace $ws3
  97. bindsym $mod+Shift+4 move container to workspace $ws4; workspace $ws4
  98. bindsym $mod+Shift+5 move container to workspace 5
  99. bindsym $mod+Shift+6 move container to workspace 6
  100. bindsym $mod+Shift+7 move container to workspace 7
  101. bindsym $mod+Shift+8 move container to workspace 8
  102. bindsym $mod+Shift+9 move container to workspace 9
  103. bindsym $mod+Shift+0 move container to workspace 10
  104. # }}} move container to ws #
  105. # }}} workspace #
  106. # reload config/computer {{{ #
  107. bindsym $mod+Shift+s exec systemctl suspend
  108. # restart i3 inplace (preserves your layout/session, can be used to upgrade i3)
  109. bindsym $mod+control+r restart
  110. # reload the configuration file
  111. bindsym $mod+Shift+c reload
  112. # exit i3 (logs you out of your X session)
  113. 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'"
  114. # }}} reload config #
  115. # resizing windows {{{ #
  116. # resize window (you can also use the mouse for that)
  117. mode "resize" {
  118. # These bindings trigger as soon as you enter the resize mode
  119. # Pressing left will shrink the window’s width.
  120. # Pressing right will grow the window’s width.
  121. # Pressing up will shrink the window’s height.
  122. # Pressing down will grow the window’s height.
  123. bindsym h resize shrink width 10 px or 10 ppt
  124. bindsym k resize grow height 10 px or 10 ppt
  125. bindsym j resize shrink height 10 px or 10 ppt
  126. bindsym l resize grow width 10 px or 10 ppt
  127. # same bindings, but for the arrow keys
  128. bindsym Left resize shrink width 10 px or 10 ppt
  129. bindsym Down resize grow height 10 px or 10 ppt
  130. bindsym Up resize shrink height 10 px or 10 ppt
  131. bindsym Right resize grow width 10 px or 10 ppt
  132. # back to normal: Enter or Escape
  133. bindsym Return mode "default"
  134. bindsym Escape mode "default"
  135. }
  136. bindsym control+r mode "resize"
  137. # }}} resizing windows #
  138. # status bar {{{ #
  139. # Start i3bar to display a workspace bar (plus the system information i3status
  140. # finds out, if available)
  141. bar {
  142. font pango:System San Francisco Display 12
  143. status_command i3blocks -c ~/.config/i3blocks/i3blocks.conf
  144. tray_output primary
  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:System San Francisco Display 10
  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. # media keys {{{ #
  163. # Pulse Audio controls
  164. bindsym XF86AudioRaiseVolume exec --no-startup-id pactl set-sink-volume 0 +5% #increase sound volume
  165. bindsym XF86AudioLowerVolume exec --no-startup-id pactl set-sink-volume 0 -5% #decrease sound volume
  166. bindsym XF86AudioMute exec --no-startup-id pactl set-sink-mute 0 toggle # mute sound
  167. # Media player controls
  168. bindsym XF86AudioPlay exec playerctl play
  169. bindsym XF86AudioPause exec playerctl pause
  170. bindsym XF86AudioNext exec playerctl next
  171. bindsym XF86AudioPrev exec playerctl previous
  172. # }}} media keys #