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.

249 lines
9.2 KiB

  1. # Please see http://i3wm.org/docs/userguide.html for a complete reference!
  2. set $mod Mod4
  3. set $alt Mod1
  4. exec --no-startup-id nitrogen --restore ~/Wallpapers
  5. # exec --no-startup-id compton -b
  6. exec --no-startup-id nm-applet
  7. exec --no-startup-id xss-lock -- i3lock-wrapper
  8. exec --no-startup-id xset r rate 250 25
  9. exec --no-startup-id xset b off
  10. exec --no-startup-id setxkbmap -option caps:escape
  11. exec --no-startup-id nightshift -l 39.0315533:-94.4954291 -d
  12. font pango:Liberation, FontAwesome 12
  13. bindsym $mod+F7 exec --no-startup-id xset r rate 250 25 && xset b off && setxkbmap -option caps:escape
  14. # Use Mouse+$mod to drag floating windows to their wanted position
  15. floating_modifier $mod
  16. # start a terminal
  17. bindsym $mod+Return exec --no-startup-id termite
  18. # kill focused window
  19. bindsym $mod+q kill
  20. # start dmenu (a program launcher)
  21. bindsym XF86LaunchA exec --no-startup-id rofi -fullscreen -show run
  22. bindcode 225 exec --no-startup-id rofi -fullscreen -show run
  23. bindsym $mod+F9 exec --no-startup-id rofi -fullscreen -show run
  24. bindsym $mod+space exec --no-startup-id rofi -fullscreen -show run
  25. # screenshot
  26. bindsym $mod+Shift+Control+4 exec --no-startup-id deepin-screenshot
  27. # change focus
  28. bindsym $mod+j focus left
  29. bindsym $mod+k focus down
  30. bindsym $mod+l focus up
  31. bindsym $mod+semicolon focus right
  32. # alternatively, you can use the cursor keys:
  33. bindsym $mod+Left focus left
  34. bindsym $mod+Down focus down
  35. bindsym $mod+Up focus up
  36. bindsym $mod+Right focus right
  37. #change screen layout
  38. bindsym $mod+Shift+m exec --no-startup-id /home/joshfabean/.screenlayout/work-2-monitors.sh
  39. bindsym $mod+Shift+n exec --no-startup-id /home/joshfabean/.screenlayout/just-lappy.sh
  40. # move focused window
  41. bindsym $mod+Shift+j move left
  42. bindsym $mod+Shift+k move down
  43. bindsym $mod+Shift+l move up
  44. bindsym $mod+Shift+semicolon move right
  45. # alternatively, you can use the cursor keys:
  46. bindsym $mod+Shift+Left move left
  47. bindsym $mod+Shift+Down move down
  48. bindsym $mod+Shift+Up move up
  49. bindsym $mod+Shift+Right move right
  50. # split in horizontal orientation
  51. bindsym $mod+h split h
  52. # split in vertical orientation
  53. bindsym $mod+v split v
  54. # enter fullscreen mode for the focused container
  55. bindsym $mod+d fullscreen
  56. bindsym $mod+$alt+f fullscreen
  57. # change container layout (stacked, tabbed, toggle split)
  58. bindsym $mod+s layout stacking
  59. bindsym $mod+t layout tabbed
  60. bindsym $mod+e layout toggle split
  61. # toggle tiling / floating
  62. bindsym $mod+Shift+space floating toggle
  63. # change focus between tiling / floating windows
  64. bindsym $mod+$alt+space focus mode_toggle
  65. # focus the parent container
  66. bindsym $mod+p focus parent
  67. # focus the child container
  68. bindsym $mod+c focus child
  69. set $workSpace1 "1: "
  70. set $workSpace2 "2: CK"
  71. set $workSpace3 "3: "
  72. set $workSpace4 "4: "
  73. # switch to workspace
  74. bindsym $mod+1 workspace $workSpace1
  75. bindsym $mod+2 workspace $workSpace2
  76. bindsym $mod+3 workspace $workSpace3
  77. bindsym $mod+4 workspace $workSpace4
  78. bindsym $mod+5 workspace 5: 
  79. bindsym $mod+6 workspace 6: 
  80. bindsym $mod+7 workspace 7: 
  81. bindsym $mod+8 workspace 8: 
  82. bindsym $mod+9 workspace 9: 
  83. bindsym $mod+0 workspace 10: 
  84. bindsym Mod1+Control+Right workspace next
  85. bindsym Mod1+Control+Left workspace prev
  86. workspace_auto_back_and_forth yes
  87. bindsym $mod+z workspace back_and_forth
  88. bindsym $mod+Shift+z move container to workspace back_and_forth
  89. # move focused container to workspace
  90. bindsym $mod+Shift+1 move container to workspace $workSpace1
  91. bindsym $mod+Shift+2 move container to workspace $workSpace2
  92. bindsym $mod+Shift+3 move container to workspace $workSpace3
  93. bindsym $mod+Shift+4 move container to workspace $workSpace4
  94. bindsym $mod+Shift+5 move container to workspace number 5: 
  95. bindsym $mod+Shift+6 move container to workspace number 6: 
  96. bindsym $mod+Shift+7 move container to workspace number 7: 
  97. bindsym $mod+Shift+8 move container to workspace number 8: 
  98. bindsym $mod+Shift+9 move container to workspace number 9: 
  99. bindsym $mod+Shift+0 move container to workspace number 10: 
  100. #Custom Keybindings
  101. bindsym XF86MonBrightnessUp exec --no-startup-id xbacklight -inc 10% #-steps 1
  102. bindsym XF86MonBrightnessDown exec --no-startup-id xbacklight -dec 10% #-steps 1
  103. bindsym $mod+w exec --no-startup-id google-chrome-beta
  104. bindsym $mod+f exec --no-startup-id termite -e ranger
  105. bindsym Print exec scrot -s -e 'mv $f ~/Downloads'
  106. bindsym $mod+m move scratchpad
  107. bindsym $mod+n scratchpad show
  108. #Make sure these windows behave as they should
  109. for_window [class="Android SDK Manager" instance="Android SDK Manager"] floating enable
  110. for_window [class="Cb-exit" instance="cb-exit"] floating enable
  111. for_window [class="Cb-exit" instance="cb-exit"] border none
  112. for_window [class="^Pavucontrol$"] floating enable
  113. for_window [instance="crx_gaedmjdfmmahhbjefcbgaolhhanlaolb"] floating enable
  114. for_window [class="Google-chrome" instance="crx_nckgahadagoaajjgafhacjanaoiihapd"] floating enable
  115. for_window [class="chrome_app_list"] floating enable
  116. # https://github.com/ValveSoftware/steam-for-linux/issues/1040
  117. for_window [class="^Steam$" title="^Friends$"] floating enable
  118. for_window [class="^Steam$" title="Steam - News"] floating enable
  119. for_window [class="^Steam$" title=".* - Chat"] floating enable
  120. for_window [class="^Steam$" title="^Settings$"] floating enable
  121. for_window [class="^Steam$" title=".* - event started"] floating enable
  122. for_window [class="^Steam$" title=".* CD key"] floating enable
  123. for_window [class="^Steam$" title="^Steam - Self Updater$"] floating enable
  124. for_window [class="^Steam$" title="^Screenshot Uploader$"] floating enable
  125. for_window [class="^Steam$" title="^Steam Guard - Computer Authorization Required$"] floating enable
  126. for_window [title="^Steam Keyboard$"] floating enable
  127. assign [class="Slack"] $workSpace3
  128. new_window 1pixel
  129. #Hide border if 1 window
  130. hide_edge_borders both
  131. # reload the configuration file
  132. bindsym $mod+Shift+c reload
  133. # restart i3 inplace (preserves your layout/session, can be used to upgrade i3)
  134. bindsym $mod+Shift+r restart
  135. # exit i3 (logs you out of your X session)
  136. 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'"
  137. # resize window (you can also use the mouse for that)
  138. mode "resize" {
  139. # These bindings trigger as soon as you enter the resize mode
  140. # Pressing left will shrink the window’s width.
  141. # Pressing right will grow the window’s width.
  142. # Pressing up will shrink the window’s height.
  143. # Pressing down will grow the window’s height.
  144. bindsym j resize shrink width 10 px or 10 ppt
  145. bindsym k resize grow height 10 px or 10 ppt
  146. bindsym l resize shrink height 10 px or 10 ppt
  147. bindsym semicolon resize grow width 10 px or 10 ppt
  148. # same bindings, but for the arrow keys
  149. bindsym Left resize shrink width 10 px or 10 ppt
  150. bindsym Down resize grow height 10 px or 10 ppt
  151. bindsym Up resize shrink height 10 px or 10 ppt
  152. bindsym Right resize grow width 10 px or 10 ppt
  153. # back to normal: Enter or Escape
  154. bindsym Return mode "default"
  155. bindsym Escape mode "default"
  156. }
  157. bindsym $mod+r mode "resize"
  158. # Resize Containers, Vim-style ($mod+Control+[hjkl])
  159. bindsym $mod+Control+j resize grow height 5 px or 5 ppt
  160. bindsym $mod+Control+k resize shrink height 5 px or 5 ppt
  161. bindsym $mod+Control+l resize grow width 5 px or 5 ppt
  162. bindsym $mod+Control+h resize shrink width 5 px or 5 ppt
  163. bindsym $mod+Control+Up resize grow height 5 px or 5 ppt
  164. bindsym $mod+Control+Down resize shrink height 5 px or 5 ppt
  165. bindsym $mod+Control+Right resize grow width 5 px or 5 ppt
  166. bindsym $mod+Control+Left resize shrink width 5 px or 5 ppt
  167. # Start i3bar to display a workspace bar (plus the system information i3status
  168. # finds out, if available)
  169. bar {
  170. position top
  171. status_command i3blocks
  172. font pango:Liberation 10, FontAwesome 12
  173. # strip_workspace_numbers yes
  174. colors {
  175. separator #586e75
  176. background #0c1014
  177. statusline #aea79f
  178. focused_workspace #091f2e #091f2e #ffffff
  179. active_workspace #073642 #073642 #ffffff
  180. inactive_workspace #0c1014 #0c1014 #aea79f
  181. urgent_workspace #77216f #77216f #ffffff
  182. }
  183. }
  184. # class border backgr. text indicator
  185. client.focused #586e75 #586e75 #fdf6e3 #268bd2
  186. client.focused_inactive #073642 #073642 #93a1a1 #002b36
  187. client.unfocused #002b36 #002b36 #586e75 #002b36
  188. client.urgent #dc322f #dc322f #fdf6e3 #dc322f
  189. # launch messager (Pulse)
  190. bindsym $mod+Shift+t exec /opt/google/chrome/google-chrome --profile-directory=Default --app-id=nimjciaekjijpinhkhpmcbaoanjjojfi
  191. # exec --no-startup-id xfce4-volumed-pulse
  192. # exec --no-startup-id pasystray
  193. exec --no-startup-id pcmanfm -d
  194. # exec --no-startup-id rescuetime
  195. exec --no-startup-id blueman-applet
  196. exec --no-startup-id dunst
  197. bindsym XF86AudioLowerVolume exec --no-startup-id "pulseaudio-ctl down ; pkill -RTMIN+1 i3blocks"
  198. bindsym XF86AudioRaiseVolume exec --no-startup-id "pulseaudio-ctl up ; pkill -RTMIN+1 i3blocks"
  199. bindsym XF86AudioMute exec --no-startup-id "pulseaudio-ctl mute ; pkill -RTMIN+1 i3blocks"
  200. # Chrome special flags and others set in /etc/profiles.d/variables.sh like the following: --touch-devices=2 --force-device-scale-factor=2
  201. #
  202. exec --nostartup-id compton -b