Advertisement
Guest User

Untitled

a guest
May 20th, 2016
115
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.93 KB | None | 0 0
  1. # vim:filetype=i3
  2.  
  3.  
  4. ### i3-colors
  5. ## unfinished/placeholder colors!
  6.  
  7. #name #top #border #text
  8. client.focused #402e2e #978965 #402e2e #978965
  9. client.unfocused #402e2e #402e2e #978965 #402e2e
  10. client.focused_inactive #402e2e #402e2e #978965 #402e2e
  11. client.urgent #402e2e #402e2e #978965 #402e2e
  12.  
  13.  
  14. ### Init i3bar and set colors
  15. bar {
  16. status_command i3status -c ~/.config/i3status/config
  17. strip_workspace_numbers yes
  18.  
  19. colors {
  20. statusline #978965
  21. background #1f1f1f
  22.  
  23. #name #border #bg #text
  24. focused_workspace #978965 #402e2e #978965
  25. active_workspace #402e2e #402e2e #978965
  26. inactive_workspace #402e2e #402e2e #978965
  27. urgent_workspace #402e2e #402e2e #978965
  28. }
  29. }
  30.  
  31. ### Floating Windows
  32. for_window [class="URxvt"] floating enable
  33. for_window [class="feh"] floating enable
  34. for_window [class="thunar"] floating enable
  35. for_window [class="alsa-tray"] floating enable
  36. for_window [class="mpv"] floating enable
  37. for_window [class="Gretl_x11"] floating enable
  38. for_window [class="Galculator"] floating enable
  39. for_window [class="Globaltime"] floating enable
  40.  
  41.  
  42. ### Borderless Windows
  43. for_window [class="Firefox"] border none
  44. for_window [class="Firefox-Nightly"] border none
  45. for_window [class="Chromium"] border none
  46. ### 1pixel border Windows
  47. for_window [class="URxvt"] border 1pixel
  48. for_window [class="feh"] border 1pixel
  49. for_window [class="mpv"] border 1pixel
  50. for_window [class="Zathura"] border 1pixel
  51.  
  52.  
  53. ### Modkey
  54. set $mod Mod1
  55. set $othermod Mod4
  56.  
  57. ### Font
  58. font -*-terminus-*-*-*-*-*-*-*-*-*-*-*-*
  59.  
  60.  
  61. ### Windowtype
  62. # none = no border, normal = default i3, 1pixel = 1pixel border
  63. for_window [class="^.*"] border pixel 0
  64. bindsym $mod+Shift+x border none
  65. bindsym $mod+Shift+n border normal
  66. bindsym $mod+Shift+o border 1pixel
  67. bindsym $mod+Tab focus right
  68. bindsym $mod+Shift+Tab focus left
  69.  
  70. ### Gaps
  71.  
  72. #gaps inner all set 20
  73. #gaps outer current plus 5
  74. set $mode_gaps Gaps: (o) outer, (i) inner
  75. set $mode_gaps_outer Outer Gaps: +|-|0 (local), Shift + +|-|0 (global)
  76. set $mode_gaps_inner Inner Gaps: +|-|0 (local), Shift + +|-|0 (global)
  77. bindsym $mod+Shift+g mode "$mode_gaps"
  78.  
  79. mode "$mode_gaps" {
  80. bindsym o mode "$mode_gaps_outer"
  81. bindsym i mode "$mode_gaps_inner"
  82. bindsym Return mode "default"
  83. bindsym Escape mode "default"
  84. }
  85.  
  86. mode "$mode_gaps_inner" {
  87. bindsym plus gaps inner current plus 5
  88. bindsym minus gaps inner current minus 5
  89. bindsym 0 gaps inner current set 0
  90.  
  91. bindsym Shift+plus gaps inner all plus 5
  92. bindsym Shift+minus gaps inner all minus 5
  93. bindsym Shift+0 gaps inner all set 0
  94.  
  95. bindsym Return mode "default"
  96. bindsym Escape mode "default"
  97. }
  98. mode "$mode_gaps_outer" {
  99. bindsym plus gaps outer current plus 5
  100. bindsym minus gaps outer current minus 5
  101. bindsym 0 gaps outer current set 0
  102.  
  103. bindsym Shift+plus gaps outer all plus 5
  104. bindsym Shift+minus gaps outer all minus 5
  105. bindsym Shift+0 gaps outer all set 0
  106.  
  107. bindsym Return mode "default"
  108. bindsym Escape mode "default"
  109. }
  110.  
  111. ### Keybind to move floating windows with the mouse cursor while holding
  112. floating_modifier $mod
  113.  
  114.  
  115. ### urxvt keybind
  116. bindsym $mod+Return exec --no-startup-id urxvtc
  117.  
  118.  
  119. ### Kill window
  120. bindsym $mod+Shift+q kill
  121.  
  122.  
  123. ### dmenu keybind
  124. bindsym $mod+d exec --no-startup-id dmenu_run
  125. #bindsym $mod+D exec --no-startup-id j4-dmenu-desktop
  126.  
  127. ### Scrot screenshot
  128. bindsym $mod+Shift+s exec --no-startup-id "sh ~/scripts/scrot"
  129.  
  130. ### Scrot window
  131. bindsym $mod+Shift+w exec --no-startup-id "sh ~/scripts/scrot-window"
  132.  
  133.  
  134. ### Change window focus with arrow keys
  135. bindsym $mod+Left focus left
  136. bindsym $mod+Down focus down
  137. bindsym $mod+Up focus up
  138. bindsym $mod+Right focus right
  139.  
  140.  
  141. ### Move focused window with arrow keys
  142. # mod+Shift+Arrows for short movements and mod+Control+Arrows for longer movements
  143. bindsym $mod+Shift+Left move left
  144. bindsym $mod+Shift+Down move down
  145. bindsym $mod+Shift+Up move up
  146. bindsym $mod+Shift+Right move right
  147. bindsym $mod+Control+Left exec "i3-msg move left && i3-msg move left && i3-msg move left && i3-msg move left && i3-msg move left"
  148. bindsym $mod+Control+Down exec "i3-msg move down && i3-msg move down && i3-msg move down && i3-msg move down && i3-msg move down"
  149. bindsym $mod+Control+Up exec "i3-msg move up && i3-msg move up && i3-msg move up && i3-msg move up && i3-msg move up"
  150. bindsym $mod+Control+Right exec "i3-msg move right && i3-msg move right && i3-msg move right && i3-msg move right && i3-msg move right"
  151.  
  152.  
  153. ### Change window split into horizontal
  154. bindsym $mod+h split h
  155.  
  156.  
  157. ### Change window split into vertical
  158. bindsym $mod+v split v
  159.  
  160. ## Change window layout n
  161. bindsym Mod1+s layout stacking
  162. bindsym Mod1+w layout tabbed
  163. bindsym Mod1+e layout default
  164.  
  165.  
  166. ### Fullscreen mode for focused window
  167. bindsym $mod+f fullscreen
  168.  
  169.  
  170. ### Jump to urgent window
  171. bindsym $mod+u [urgent=latest] focus
  172.  
  173.  
  174. ### Toggle tiling/floating mode
  175. bindsym $mod+Shift+space floating toggle
  176.  
  177.  
  178. ### Toggle focus between tiling/floating windows
  179. bindsym $mod+space focus mode_toggle
  180.  
  181.  
  182. ### Reload i3-config (~/.i3/config)
  183. bindsym $mod+Shift+c reload
  184.  
  185.  
  186. ### Restart i3
  187. bindsym $mod+Shift+r restart
  188.  
  189.  
  190. ### Exit i3
  191. bindsym $mod+Shift+e exec "i3-msg exit"
  192.  
  193.  
  194. ### Lock i3
  195. bindsym $mod+Shift+l exec "~/bin/lock.sh"
  196.  
  197.  
  198. ### Increase/Decrease Brightness
  199. bindsym XF86MonBrightnessUp exec --no-startup-id "xbacklight -inc 5"
  200. bindsym XF86MonBrightnessDown exec --no-startup-id "xbacklight -dec 5"
  201. ### Workspace variables - change the workspace labels here!
  202. set $WS1 web
  203. set $WS2 term
  204. set $WS3 media
  205. set $WS4 message
  206. set $WS5 dev
  207. set $WS6 work
  208. set $WS7 misc
  209. set $WS8 VIII
  210. set $WS9 IX
  211. set $WS10 X
  212.  
  213. ### Other Manually made keybindings
  214. ## Volume
  215. bindsym XF86AudioRaiseVolume exec --no-startup-id "amixer set Master 5%+"
  216. bindsym XF86AudioLowerVolume exec --no-startup-id "amixer set Master 5%-"
  217. bindsym XF86AudioMute exec --no-startup-id "amixer set Master toggle"
  218.  
  219. ## MPD controls
  220. bindsym Mod1+Ctrl+x exec --no-startup-id "mpc next"
  221. bindsym Mod1+Ctrl+z exec --no-startup-id "mpc prev"
  222. bindsym Mod1+Ctrl+period exec --no-startup-id "mpc next"
  223. bindsym Mod1+Ctrl+comma exec --no-startup-id "mpc prev"
  224. bindsym Mod1+Ctrl+w exec --no-startup-id "sh ~/scripts/whatsplaying.sh"
  225. bindsym Mod1+Ctrl+space exec --no-startup-id "mpc toggle"
  226.  
  227. ##Main application keybinds
  228. bindsym $othermod+w exec --no-startup-id "firefox"
  229. bindsym $othermod+e exec --no-startup-id "mousepad"
  230. bindsym $othermod+g exec --no-startup-id "GTK_THEME=/usr/share/themes/Animus-b/gtk-3.0/gtk.css pcmanfm"
  231. bindsym $othermod+f exec --no-startup-id "pcmanfm"
  232. bindsym $othermod+m exec --no-startup-id "thunderbird"
  233. bindsym $othermod+t exec --no-startup-id "urxvtc"
  234.  
  235. bindsym XF86RotateWindows exec --no-startup-id "thinkpad-rotate"
  236. bindsym XF86Launch1 exec --no-startup-id "pavucontrol"
  237.  
  238. ##Disable touchpad
  239. #bindsym Mod1+Shift+X exec --no-startup-id 'xinput set-prop 13 "Device Enabled" 0'
  240. #bindsym Mod1+Shift+Z exec --no-startup-id 'xinput set-prop 13 "Device Enabled" 1'
  241.  
  242. #display back notifications
  243. bindsym $Mod+Ctrl+d exec --no-startup-id "kdeconnect-cli -d bf9e10a2be123c28 --list-notifications"
  244. ### Power Management (hopefully)
  245. set $Locker i3lock && sleep 1
  246.  
  247. set $mode_system System (l) lock, (e) logout, (s) suspend, (h) hibernate, (r) reboot, (Shift+s) shutdown
  248. bindsym $mod+F12 mode "$mode_system"
  249.  
  250. mode "$mode_system" {
  251. bindsym l exec --no-startup-id $Locker, mode "default"
  252. bindsym e exec --no-startup-id i3-msg exit, mode "default"
  253. bindsym s exec --no-startup-id $Locker && systemctl suspend, mode "default"
  254. bindsym h exec --no-startup-id $Locker && systemctl hibernate, mode "default"
  255. bindsym r exec --no-startup-id systemctl reboot, mode "default"
  256. bindsym Shift+s exec --no-startup-id systemctl poweroff -i, mode "default"
  257.  
  258. # back to normal: Enter or Escape
  259. bindsym Return mode "default"
  260. bindsym Escape mode "default"
  261. }
  262.  
  263.  
  264. ### Switch workspaces
  265. bindsym $mod+1 workspace $WS1
  266. bindsym $mod+2 workspace $WS2
  267. bindsym $mod+3 workspace $WS3
  268. bindsym $mod+4 workspace $WS4
  269. bindsym $mod+5 workspace $WS5
  270. bindsym $mod+6 workspace $WS6
  271. bindsym $mod+7 workspace $WS7
  272. bindsym $mod+8 workspace $WS8
  273. bindsym $mod+9 workspace $WS9
  274. bindsym $mod+0 workspace $WS10
  275.  
  276.  
  277. ### Send focused container to workspace
  278. bindsym $mod+Shift+1 move container to workspace $WS1
  279. bindsym $mod+Shift+2 move container to workspace $WS2
  280. bindsym $mod+Shift+3 move container to workspace $WS3
  281. bindsym $mod+Shift+4 move container to workspace $WS4
  282. bindsym $mod+Shift+5 move container to workspace $WS5
  283. bindsym $mod+Shift+6 move container to workspace $WS6
  284. bindsym $mod+Shift+7 move container to workspace $WS7
  285. bindsym $mod+Shift+8 move container to workspace $WS8
  286. bindsym $mod+Shift+9 move container to workspace $WS9
  287. bindsym $mod+Shift+0 move container to workspace $WS10
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement