Advertisement
Marini21

i3-gaps config

Feb 16th, 2017
1,299
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.24 KB | None | 0 0
  1. # i3 config file (v4)
  2. #
  3. # Please see http://i3wm.org/docs/userguide.html for a complete reference!
  4.  
  5. set $mod Mod4
  6.  
  7. font pango: System San Francisco Display 10
  8.  
  9. # Use Mouse+$mod to drag floating windows to their wanted position
  10. floating_modifier $mod
  11.  
  12. # start a terminal
  13. bindsym $mod+Return exec gnome-terminal
  14.  
  15. bindsym $mod+Shift+q kill
  16.  
  17. bindsym $mod+d exec rofi -show run -lines 3 -eh 2 -width 100 -padding 300 -opacity "80" -bw 0 -bc "white" -bg "#303641" -fg "#aab3c1" -font "System San Francisco Display 18"
  18.  
  19. bindsym $mod+j focus down
  20. bindsym $mod+k focus up
  21. bindsym $mod+h focus left
  22. bindsym $mod+l focus right
  23.  
  24. bindsym $mod+Shift+j move up
  25. bindsym $mod+Shift+k move down
  26. bindsym $mod+Shift+h move left
  27. bindsym $mod+Shift+l move right
  28.  
  29. bindsym $mod+Shift+v split h
  30. bindsym $mod+v split v
  31.  
  32. bindsym $mod+f fullscreen toggle
  33.  
  34. bindsym $mod+s layout stacking
  35. bindsym $mod+w layout tabbed
  36. bindsym $mod+e layout toggle split
  37.  
  38. bindsym $mod+Shift+space floating toggle
  39.  
  40. bindsym $mod+space focus mode_toggle
  41.  
  42. bindsym $mod+a focus parent
  43.  
  44. set $workspace1 "1"
  45. set $workspace2 "2"
  46. set $workspace3 "3"
  47. set $workspace4 "4"
  48. set $workspace5 "5"
  49. set $workspace6 "6"
  50. set $workspace7 "7"
  51. set $workspace8 "8"
  52. set $workspace9 "9"
  53. set $workspace10 "10"
  54.  
  55. # switch to workspace
  56. bindsym $mod+1 workspace $workspace1
  57. bindsym $mod+2 workspace $workspace2
  58. bindsym $mod+3 workspace $workspace3
  59. bindsym $mod+4 workspace $workspace4
  60. bindsym $mod+5 workspace $workspace5
  61. bindsym $mod+6 workspace $workspace6
  62. bindsym $mod+7 workspace $workspace7
  63. bindsym $mod+8 workspace $workspace8
  64. bindsym $mod+9 workspace $workspace9
  65. bindsym $mod+0 workspace $workspace10
  66.  
  67. # move focused container to workspace
  68. bindsym $mod+Shift+1 move container to workspace $workspace1
  69. bindsym $mod+Shift+2 move container to workspace $workspace2
  70. bindsym $mod+Shift+3 move container to workspace $workspace3
  71. bindsym $mod+Shift+4 move container to workspace $workspace4
  72. bindsym $mod+Shift+5 move container to workspace $workspace5
  73. bindsym $mod+Shift+6 move container to workspace $workspace6
  74. bindsym $mod+Shift+7 move container to workspace $workspace7
  75. bindsym $mod+Shift+8 move container to workspace $workspace8
  76. bindsym $mod+Shift+9 move container to workspace $workspace9
  77. bindsym $mod+Shift+0 move container to workspace $workspace10
  78.  
  79. assign [class="google-chrome"] $workspace1
  80. assign [class="Gnome-terminal"] $workspace2
  81. assign [class="Nautilus"] $workspace4
  82. assign [class="Thunderbird"] $workspace8
  83. assign [class="Skype"] $workspace9
  84. assign [class="Spotify"] $workspace10
  85.  
  86. bindsym $mod+t exec nautilus
  87.  
  88. bindsym $mod+Shift+c reload
  89. bindsym $mod+Shift+r restart
  90.  
  91. bindsym $mod+m move workspace to output left
  92.  
  93. set $control power
  94. bindsym $mod+Shift+e mode "$control"
  95.  
  96. mode "$control" {
  97. bindsym p exec systemctl poweroff
  98. bindsym r exec systemctl reboot
  99. bindsym l exec i3-msg exit
  100. bindsym k exec i3lock
  101. bindsym s exec pm-suspend
  102. bindsym Escape mode "default"
  103. }
  104.  
  105. mode "resize" {
  106. bindsym k resize shrink height 10 px or 10 ppt
  107. bindsym j resize grow height 10 px or 10 ppt
  108. bindsym l resize shrink width 10 px or 10 ppt
  109. bindsym h resize grow width 10 px or 10 ppt
  110.  
  111. # same bindings, but for the arrow keys
  112. bindsym Right resize shrink width 10 px or 10 ppt
  113. bindsym Down resize grow height 10 px or 10 ppt
  114. bindsym Up resize shrink height 10 px or 10 ppt
  115. bindsym Left resize grow width 10 px or 10 ppt
  116.  
  117. # back to normal: Enter or Escape
  118. bindsym Return mode "default"
  119. bindsym Escape mode "default"
  120. }
  121.  
  122. bindsym $mod+r mode "resize"
  123.  
  124. new_window none
  125.  
  126. # Colors
  127. #set $yellow #E9CC24
  128. set $yellow #E9CC10
  129. set $black0 #2D2D2D
  130. set $black1 #3D3D3D
  131. set $black2 #535353
  132. set $black3 #DCDCDC
  133. set $black #292B24
  134. set $grey #30322A
  135. set $lightgrey #757965
  136. set $red #E93624
  137.  
  138. set $border #002B36
  139. set $background $base03
  140. set $foreground $base02
  141. set $text #93a1a1
  142.  
  143. # SET COLOR ALIASES
  144. set $bg.color #1d1d1d
  145. set $fg.color #d1d1d1
  146. set $bd.color #d1d1d1
  147. set $alt.color #585858
  148. set $alt.color2 #ae95c7
  149. set $warn.color #c795ae
  150.  
  151.  
  152. # window colors
  153. # border background text indicator
  154. client.focused $black1 $black1 $lightgrey #00ff00
  155. client.unfocused $black1 $black2 $lightgrey #00ff00
  156. client.focused_inactive $black1 $black2 $lightgrey #00ff00
  157. client.urgent $red $red $lightgrey #00ff00
  158.  
  159. bindsym XF86AudioRaiseVolume exec --no-startup-id pactl set-sink-volume 1 +5% #increase sound volume
  160. bindsym XF86AudioLowerVolume exec --no-startup-id pactl set-sink-volume 1 -5% #decrease sound volume
  161. bindsym XF86AudioMute exec --no-startup-id pactl set-sink-mute 1 toggle # mute sound
  162.  
  163. # Sreen brightness controls
  164. bindsym XF86MonBrightnessUp exec xbacklight -inc 10
  165. bindsym XF86MonBrightnessDown exec xbacklight -dec 5
  166.  
  167. # Touchpad controls
  168. bindsym XF86TouchpadToggle exec ~/.config/i3/toggletouchpad.sh
  169.  
  170. # Media player controls
  171. bindsym XF86AudioPlay exec playerctl play-pause
  172. bindsym XF86AudioStop exec playerctl stop
  173. bindsym XF86AudioNext exec playerctl next
  174. bindsym XF86AudioPrev exec playerctl previous
  175.  
  176. smart_gaps on
  177.  
  178. bar {
  179. status_command polybar Bar
  180. tray_output primary
  181. separator_symbol "//"
  182. strip_workspace_numbers yes
  183.  
  184. position bottom
  185. mode invisible
  186.  
  187. colors{
  188. background $bg.color
  189. statusline $fg.color
  190. separator $alt.color
  191. # class border background font
  192. focused_workspace #00FF00 $alt.color $fg.color
  193. inactive_workspace #0000FF $bg.color $fg.color
  194. active_workspace #00CCFF $alt.color $fg.color
  195. urgent_workspace $bg.color $warn.color #ffffff
  196. }
  197.  
  198. }
  199.  
  200.  
  201. # lock
  202. bindsym $mod+Ctrl+l exec lock -f Source-Sans-Pro -- scrot -z
  203.  
  204. #exec --no-startup-id nm-applet
  205. #exec --no-startup-id xflux -l 11 -g 55
  206. exec xinput --set-prop 12 "Synaptics Two-Finger Scrolling" 1 1
  207. exec --no-startup-id setxkbmap -option caps:swapescape
  208. exec_always --no-startup-id compton -f
  209. exec_always --no-startup-id feh --bg-scale /home/piero/Pictures/mountain-water.jpg
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement