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.

289 lines
10 KiB

  1. # Please see http://i3wm.org/docs/userguide.html for a complete reference!
  2. set $mod Mod4
  3. set $alt Mod1
  4. font pango:FiraCode, FontAwesome 12
  5. bindsym $mod+F7 exec --no-startup-id xset r rate 250 25 && xset b off && setxkbmap -option caps:escape
  6. # Use Mouse+$mod to drag floating windows to their wanted position
  7. floating_modifier $mod
  8. # start a terminal
  9. bindsym $mod+Return exec --no-startup-id alacritty
  10. # kill focused window
  11. bindsym $mod+q kill
  12. # lock screen
  13. bindsym $mod+$alt+s exec swaylock
  14. exec swayidle -w \
  15. timeout 300 'swaylock'
  16. exec swayidle -w \
  17. timeout 600 'swaymsg "output * dpms off"'\
  18. resume 'swaymsg "output * dpms on"'
  19. # before-sleep 'swaylock'
  20. # start rofi (a program launcher)
  21. bindsym XF86LaunchA exec --no-startup-id rofi -show run
  22. bindcode 225 exec --no-startup-id rofi -show run
  23. bindsym $mod+space exec --no-startup-id rofi -show run
  24. # change focus
  25. bindsym $mod+j focus left
  26. bindsym $mod+k focus down
  27. bindsym $mod+l focus up
  28. bindsym $mod+semicolon focus right
  29. # alternatively, you can use the cursor keys:
  30. bindsym $mod+Left focus left
  31. bindsym $mod+Down focus down
  32. bindsym $mod+Up focus up
  33. bindsym $mod+Right focus right
  34. # move focused window
  35. bindsym $mod+Shift+j move left
  36. bindsym $mod+Shift+k move down
  37. bindsym $mod+Shift+l move up
  38. bindsym $mod+Shift+semicolon move right
  39. # alternatively, you can use the cursor keys:
  40. bindsym $mod+Shift+Left move left
  41. bindsym $mod+Shift+Down move down
  42. bindsym $mod+Shift+Up move up
  43. bindsym $mod+Shift+Right move right
  44. # split in horizontal orientation
  45. bindsym $mod+h split h
  46. # split in vertical orientation
  47. bindsym $mod+v split v
  48. # enter fullscreen mode for the focused container
  49. bindsym $mod+d fullscreen
  50. bindsym $mod+$alt+f fullscreen
  51. # change container layout (stacked, tabbed, toggle split)
  52. bindsym $mod+s layout stacking
  53. bindsym $mod+t layout tabbed
  54. bindsym $mod+e layout toggle split
  55. # toggle tiling / floating
  56. bindsym $mod+Shift+space floating toggle
  57. # change focus between tiling / floating windows
  58. bindsym $mod+$alt+space focus mode_toggle
  59. # focus the parent container
  60. bindsym $mod+p focus parent
  61. # focus the child container
  62. bindsym $mod+c focus child
  63. # reload the configuration file
  64. bindsym $mod+Shift+c reload
  65. # restart i3 inplace (preserves your layout/session, can be used to upgrade i3)
  66. bindsym $mod+Shift+r restart
  67. # exit i3 (logs you out of your X session)
  68. 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'"
  69. # switch to workspace
  70. bindsym $mod+1 workspace 1
  71. bindsym $mod+2 workspace 2
  72. bindsym $mod+3 workspace 3
  73. bindsym $mod+4 workspace 4
  74. bindsym $mod+5 workspace 5
  75. bindsym $mod+6 workspace 6
  76. bindsym $mod+7 workspace 7
  77. bindsym $mod+8 workspace 8
  78. bindsym $mod+9 workspace 9
  79. bindsym $mod+0 workspace 10
  80. bindsym Mod1+Control+Right workspace next
  81. bindsym Mod1+Control+Left workspace prev
  82. workspace_auto_back_and_forth yes
  83. bindsym $mod+z workspace back_and_forth
  84. bindsym $mod+Shift+z move container to workspace back_and_forth
  85. # move focused container to workspace
  86. bindsym $mod+Shift+1 move container to workspace 1
  87. bindsym $mod+Shift+2 move container to workspace 2
  88. bindsym $mod+Shift+3 move container to workspace 3
  89. bindsym $mod+Shift+4 move container to workspace 4
  90. bindsym $mod+Shift+5 move container to workspace number 5
  91. bindsym $mod+Shift+6 move container to workspace number 6
  92. bindsym $mod+Shift+7 move container to workspace number 7
  93. bindsym $mod+Shift+8 move container to workspace number 8
  94. bindsym $mod+Shift+9 move container to workspace number 9
  95. bindsym $mod+Shift+0 move container to workspace number 10
  96. ########################
  97. ## Custom Keybindings
  98. ########################
  99. bindsym $mod+f exec --no-startup-id alacrity -e ranger
  100. bindsym Print exec scrot -s -e 'mv $f ~/Downloads'
  101. bindsym $mod+m move scratchpad
  102. bindsym $mod+n scratchpad show
  103. bindsym $mod+Shift+s sticky toggle
  104. #bindsym Control+k exec --no-startup-id echo "core.weechat */buffer_dmenu" >> $(find ~/.weechat -type p)
  105. # Notifications
  106. bindsym $mod+Control+Shift+space exec --no-startup-id makoctl dismiss -a
  107. bindsym $mod+Control+space exec --no-startup-id makoctl dismiss
  108. #########################
  109. ## Floating Windows
  110. #########################
  111. for_window [class="Android SDK Manager" instance="Android SDK Manager"] floating enable
  112. for_window [class="Cb-exit" instance="cb-exit"] floating enable
  113. for_window [class="Cb-exit" instance="cb-exit"] border none
  114. for_window [class="^Pavucontrol$"] floating enable
  115. for_window [instance="crx_gaedmjdfmmahhbjefcbgaolhhanlaolb"] floating enable
  116. for_window [class="Google-chrome" instance="crx_nckgahadagoaajjgafhacjanaoiihapd"] floating enable
  117. for_window [class="chrome_app_list"] floating enable
  118. for_window [class="Plexamp"] floating enable
  119. for_window [class="blueman-manager"] floating enable
  120. for_window [class="^Bluetooth Devices"] floating enable
  121. # https://github.com/ValveSoftware/steam-for-linux/issues/1040
  122. for_window [class="^Steam$" title="^Friends$"] floating enable
  123. for_window [class="^Steam$" title="Steam - News"] floating enable
  124. for_window [class="^Steam$" title=".* - Chat"] floating enable
  125. for_window [class="^Steam$" title="^Settings$"] floating enable
  126. for_window [class="^Steam$" title=".* - event started"] floating enable
  127. for_window [class="^Steam$" title=".* CD key"] floating enable
  128. for_window [class="^Steam$" title="^Steam - Self Updater$"] floating enable
  129. for_window [class="^Steam$" title="^Screenshot Uploader$"] floating enable
  130. for_window [class="^Steam$" title="^Steam Guard - Computer Authorization Required$"] floating enable
  131. for_window [title="^Steam Keyboard$"] floating enable
  132. ###########################
  133. ## Assign Workspaces
  134. ##########################
  135. assign [class="Slack"] 3
  136. assign [class="Plexamp"] 3
  137. ##########################
  138. ## Gaps
  139. ##########################
  140. # new_window 1pixel
  141. default_border pixel 2
  142. #Hide border if 1 window
  143. hide_edge_borders both
  144. set $default_gaps_inner 10
  145. set $default_gaps_outer 0
  146. gaps inner $default_gaps_inner
  147. gaps outer $default_gaps_outer
  148. smart_gaps on
  149. # resize window (you can also use the mouse for that)
  150. mode "resize" {
  151. # These bindings trigger as soon as you enter the resize mode
  152. # Pressing left will shrink the window’s width.
  153. # Pressing right will grow the window’s width.
  154. # Pressing up will shrink the window’s height.
  155. # Pressing down will grow the window’s height.
  156. bindsym j resize shrink width 10 px or 10 ppt
  157. bindsym k resize grow height 10 px or 10 ppt
  158. bindsym l resize shrink height 10 px or 10 ppt
  159. bindsym semicolon resize grow width 10 px or 10 ppt
  160. # same bindings, but for the arrow keys
  161. bindsym Left resize shrink width 10 px or 10 ppt
  162. bindsym Down resize grow height 10 px or 10 ppt
  163. bindsym Up resize shrink height 10 px or 10 ppt
  164. bindsym Right resize grow width 10 px or 10 ppt
  165. # back to normal: Enter or Escape
  166. bindsym Return mode "default"
  167. bindsym Escape mode "default"
  168. }
  169. bindsym $mod+r mode "resize"
  170. # Resize Containers, Vim-style ($mod+Control+[hjkl])
  171. bindsym $mod+Control+j resize grow height 5 px or 5 ppt
  172. bindsym $mod+Control+k resize shrink height 5 px or 5 ppt
  173. bindsym $mod+Control+l resize grow width 5 px or 5 ppt
  174. bindsym $mod+Control+h resize shrink width 5 px or 5 ppt
  175. bindsym $mod+Control+Up resize grow height 5 px or 5 ppt
  176. bindsym $mod+Control+Down resize shrink height 5 px or 5 ppt
  177. bindsym $mod+Control+Right resize grow width 5 px or 5 ppt
  178. bindsym $mod+Control+Left resize shrink width 5 px or 5 ppt
  179. # Start i3bar to display a workspace bar (plus the system information i3status
  180. # finds out, if available)
  181. bar {
  182. position top
  183. status_command i3blocks
  184. font pango:Liberation 10, FontAwesome 12
  185. strip_workspace_numbers yes
  186. colors {
  187. separator #586e75
  188. background #0c1014
  189. statusline #aea79f
  190. focused_workspace #091f2e #091f2e #ffffff
  191. active_workspace #073642 #073642 #ffffff
  192. inactive_workspace #0c1014 #0c1014 #aea79f
  193. urgent_workspace #77216f #77216f #ffffff
  194. }
  195. }
  196. # class border backgr. text indicator child_border
  197. client.focused #FFFFFF #BF360C #fdf6e3 #FF0000 #FFFFFF
  198. client.focused_inactive #073642 #FF9800 #93a1a1 #002b36 #073642
  199. client.unfocused #002b36 #311B92 #586e75 #002b36 #002b36
  200. client.urgent #dc322f #b71c1c #fdf6e3 #dc322f #dc322f
  201. ############################
  202. ## Displays
  203. ############################
  204. output DVI-D-1 pos 0 0 res 1920x1080
  205. output DP-1 pos 1920 0 res 1920x1200
  206. output DP-2 pos 3840 0 res 1920x1200
  207. # background images
  208. #output eDP-1 bg ~/Wallpapers/xp-sunrise.png stretch
  209. #output DP-1 bg ~/Wallpapers/xp-sunrise.png stretch
  210. #output DP-2 bg ~/Wallpapers/xp-sunrise.png stretch
  211. output * bg ~/Wallpapers/homer-stars.jpg stretch
  212. ##############################
  213. ## Startup Things
  214. ##############################
  215. exec --no-startup-id pcmanfm -d
  216. # exec --no-startup-id nm-applet
  217. # exec --no-startup-id xss-lock -- i3lock-fancy
  218. #exec --no-startup-id xset r rate 250 25
  219. #exec --no-startup-id xset b off
  220. #exec --no-startup-id setxkbmap -option caps:escape
  221. exec --no-startup-id nightshift -l 39.0315533:-94.4954291 -d
  222. #exec --no-startup-id setxkbmap -model apple_laptop -layout us -variant dvp
  223. exec --no-startup-id mako
  224. #############################
  225. ## Media Keys
  226. #############################
  227. bindsym XF86AudioLowerVolume exec --no-startup-id "pulseaudio-ctl down ; pkill -RTMIN+1 i3blocks"
  228. bindsym XF86AudioRaiseVolume exec --no-startup-id "pulseaudio-ctl up ; pkill -RTMIN+1 i3blocks"
  229. bindsym XF86AudioMute exec --no-startup-id "pulseaudio-ctl mute ; pkill -RTMIN+1 i3blocks"
  230. # bindsym XF86AudioPlay exec --no-startup-id playerctl play-pause
  231. # bindsym XF86AudioPause exec --no-startup-id playerctl play-pause
  232. # bindsym XF86AudioPlayPause exec --no-startup-id playerctl play-pause
  233. #bindsym $mod1+Shift+p exec --no-startup-id echo "cycle pause" > ~/.config/mpv/control
  234. bindsym XF86MonBrightnessUp exec --no-startup-id "brightnessctl s +10%; brightnessctl -d gmux_backlight s +10%"
  235. bindsym XF86MonBrightnessDown exec --no-startup-id "brightnessctl s 10%-; brightnessctl -d gmux_backlight s 10%-"
  236. set $gnome-schema org.gnome.desktop.interface
  237. exec_always {
  238. gsettings set $gnome-schema gtk-theme 'Flat-Remix-GTK-Red-Darkest'
  239. gsettings set $gnome-schema icon-theme 'Flat-Remix-Red-Dark'
  240. }