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.

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