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.

227 lines
8.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 /home/igneo676/bin/libinput-gestures
  12. exec --no-startup-id /home/igneo676/bin/pullover
  13. exec --no-startup-id /home/igneo676/bin/mail-checker
  14. exec --no-startup-id xcalib /usr/share/color/icc/colord/D6500XYZLUT+MTX.icc
  15. exec --no-startup-id nightshift -l 39.0315533:-94.4954291 -d
  16. font pango:Roboto Mono 10
  17. bindsym $mod+F7 exec --no-startup-id xset r rate 250 25 && xset b off && setxkbmap -option caps:escape
  18. # Use Mouse+$mod to drag floating windows to their wanted position
  19. floating_modifier $mod
  20. # start a terminal
  21. bindsym $mod+Return exec --no-startup-id termite
  22. # kill focused window
  23. bindsym $mod+q kill
  24. # start dmenu (a program launcher)
  25. bindsym XF86LaunchA exec --no-startup-id rofi -fullscreen -show run
  26. bindcode 225 exec --no-startup-id rofi -fullscreen -show run
  27. bindsym $mod+F9 exec --no-startup-id rofi -fullscreen -show run
  28. bindsym $mod+space exec --no-startup-id rofi -fullscreen -show run
  29. # change focus
  30. bindsym $mod+j focus left
  31. bindsym $mod+k focus down
  32. bindsym $mod+l focus up
  33. bindsym $mod+semicolon focus right
  34. # alternatively, you can use the cursor keys:
  35. bindsym $mod+Left focus left
  36. bindsym $mod+Down focus down
  37. bindsym $mod+Up focus up
  38. bindsym $mod+Right focus right
  39. # move focused window
  40. bindsym $mod+Shift+j move left
  41. bindsym $mod+Shift+k move down
  42. bindsym $mod+Shift+l move up
  43. bindsym $mod+Shift+semicolon 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+h split h
  51. # split in vertical orientation
  52. bindsym $mod+v split v
  53. # enter fullscreen mode for the focused container
  54. bindsym $mod+d fullscreen
  55. bindsym $mod+$alt+f fullscreen
  56. # change container layout (stacked, tabbed, toggle split)
  57. bindsym $mod+s layout stacking
  58. bindsym $mod+t layout tabbed
  59. bindsym $mod+e layout toggle split
  60. # toggle tiling / floating
  61. bindsym $mod+Shift+space floating toggle
  62. # change focus between tiling / floating windows
  63. bindsym $mod+$alt+space focus mode_toggle
  64. # focus the parent container
  65. bindsym $mod+p focus parent
  66. # focus the child container
  67. bindsym $mod+c focus child
  68. # switch to workspace
  69. bindsym $mod+1 workspace 1: Browser
  70. bindsym $mod+2 workspace 2: CK
  71. bindsym $mod+3 workspace 3: Chat
  72. bindsym $mod+4 workspace 4: Term
  73. bindsym $mod+5 workspace 5: Code
  74. bindsym $mod+6 workspace 6: Code
  75. bindsym $mod+7 workspace 7: Code
  76. bindsym $mod+8 workspace 8: Code
  77. bindsym $mod+9 workspace 9: Code
  78. bindsym $mod+0 workspace 10: Code
  79. bindsym Mod1+Control+Right workspace next
  80. bindsym Mod1+Control+Left workspace prev
  81. workspace_auto_back_and_forth yes
  82. bindsym $mod+z workspace back_and_forth
  83. bindsym $mod+Shift+z move container to workspace back_and_forth
  84. # move focused container to workspace
  85. bindsym $mod+Shift+1 move container to workspace number 1: Browser
  86. bindsym $mod+Shift+2 move container to workspace number 2: CK
  87. bindsym $mod+Shift+3 move container to workspace number 3: Chat
  88. bindsym $mod+Shift+4 move container to workspace number 4: Term
  89. bindsym $mod+Shift+5 move container to workspace number 5: Code
  90. bindsym $mod+Shift+6 move container to workspace number 6: Code
  91. bindsym $mod+Shift+7 move container to workspace number 7: Code
  92. bindsym $mod+Shift+8 move container to workspace number 8: Code
  93. bindsym $mod+Shift+9 move container to workspace number 9: Code
  94. bindsym $mod+Shift+0 move container to workspace number 10: Code
  95. #Custom Keybindings
  96. bindsym XF86MonBrightnessUp exec --no-startup-id xbacklight -inc 10% #-steps 1
  97. bindsym XF86MonBrightnessDown exec --no-startup-id xbacklight -dec 10% #-steps 1
  98. bindsym $mod+w exec --no-startup-id google-chrome-beta
  99. bindsym $mod+f exec --no-startup-id termite -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. #Make sure these windows behave as they should
  104. for_window [class="Android SDK Manager" instance="Android SDK Manager"] floating enable
  105. for_window [class="Cb-exit" instance="cb-exit"] floating enable
  106. for_window [class="Cb-exit" instance="cb-exit"] border none
  107. for_window [class="Pidgin" instance="Pidgin"] floating enable
  108. for_window [instance="crx_gaedmjdfmmahhbjefcbgaolhhanlaolb"] floating enable
  109. for_window [class="Google-chrome" instance="crx_nckgahadagoaajjgafhacjanaoiihapd"] floating enable
  110. for_window [class="chrome_app_list"] floating enable
  111. assign [class="Pidgin"] "3: Chat"
  112. new_window 1pixel
  113. #Hide border if 1 window
  114. hide_edge_borders both
  115. # reload the configuration file
  116. bindsym $mod+Shift+c reload
  117. # restart i3 inplace (preserves your layout/session, can be used to upgrade i3)
  118. bindsym $mod+Shift+r restart
  119. # exit i3 (logs you out of your X session)
  120. 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'"
  121. # resize window (you can also use the mouse for that)
  122. mode "resize" {
  123. # These bindings trigger as soon as you enter the resize mode
  124. # Pressing left will shrink the window’s width.
  125. # Pressing right will grow the window’s width.
  126. # Pressing up will shrink the window’s height.
  127. # Pressing down will grow the window’s height.
  128. bindsym j resize shrink width 10 px or 10 ppt
  129. bindsym k resize grow height 10 px or 10 ppt
  130. bindsym l resize shrink height 10 px or 10 ppt
  131. bindsym semicolon resize grow width 10 px or 10 ppt
  132. # same bindings, but for the arrow keys
  133. bindsym Left resize shrink width 10 px or 10 ppt
  134. bindsym Down resize grow height 10 px or 10 ppt
  135. bindsym Up resize shrink height 10 px or 10 ppt
  136. bindsym Right resize grow width 10 px or 10 ppt
  137. # back to normal: Enter or Escape
  138. bindsym Return mode "default"
  139. bindsym Escape mode "default"
  140. }
  141. bindsym $mod+r mode "resize"
  142. # Resize Containers, Vim-style ($mod+Control+[hjkl])
  143. bindsym $mod+Control+j resize grow height 5 px or 5 ppt
  144. bindsym $mod+Control+k resize shrink height 5 px or 5 ppt
  145. bindsym $mod+Control+l resize grow width 5 px or 5 ppt
  146. bindsym $mod+Control+h resize shrink width 5 px or 5 ppt
  147. bindsym $mod+Control+Up resize grow height 5 px or 5 ppt
  148. bindsym $mod+Control+Down resize shrink height 5 px or 5 ppt
  149. bindsym $mod+Control+Right resize grow width 5 px or 5 ppt
  150. bindsym $mod+Control+Left resize shrink width 5 px or 5 ppt
  151. # Start i3bar to display a workspace bar (plus the system information i3status
  152. # finds out, if available)
  153. bar {
  154. position top
  155. status_command i3blocks
  156. font pango:Roboto Mono 12
  157. # strip_workspace_numbers yes
  158. colors {
  159. separator #586e75
  160. background #0c1014
  161. statusline #aea79f
  162. focused_workspace #091f2e #091f2e #ffffff
  163. active_workspace #073642 #073642 #ffffff
  164. inactive_workspace #0c1014 #0c1014 #aea79f
  165. urgent_workspace #77216f #77216f #ffffff
  166. }
  167. }
  168. # class border backgr. text indicator
  169. client.focused #586e75 #586e75 #fdf6e3 #268bd2
  170. client.focused_inactive #073642 #073642 #93a1a1 #002b36
  171. client.unfocused #002b36 #002b36 #586e75 #002b36
  172. client.urgent #dc322f #dc322f #fdf6e3 #dc322f
  173. # exec --no-startup-id xfce4-volumed-pulse
  174. # exec --no-startup-id pasystray
  175. exec --no-startup-id pcmanfm -d
  176. # exec --no-startup-id rescuetime
  177. exec --no-startup-id blueman-applet
  178. exec --no-startup-id dunst
  179. bindsym XF86AudioLowerVolume exec --no-startup-id "pulseaudio-ctl down ; pkill -RTMIN+1 i3blocks"
  180. bindsym XF86AudioRaiseVolume exec --no-startup-id "pulseaudio-ctl up ; pkill -RTMIN+1 i3blocks"
  181. bindsym XF86AudioMute exec --no-startup-id "pulseaudio-ctl mute ; pkill -RTMIN+1 i3blocks"
  182. # Chrome special flags and others set in /etc/profiles.d/variables.sh like the following: --touch-devices=2 --force-device-scale-factor=2
  183. #
  184. exec --nostartup-id compton -b