Advertisement
Guest User

Untitled

a guest
Dec 15th, 2016
161
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.11 KB | None | 0 0
  1. font pango:SFNS Display 10, FontAwesome 10
  2.  
  3. #Global color
  4. set $bg-color #2f343f
  5. set $inactive-bg-color #2f343f
  6. set $text-color #f3f4f5
  7. set $inactive-text-color #676E7D
  8. set $urgent-bg-color #E53935
  9.  
  10. # Define button
  11. set $super Mod4
  12.  
  13. #Following mouse
  14. focus_follows_mouse no
  15.  
  16. #No Title bar
  17. for_window [class="^.*"] border pixel 0
  18.  
  19. #Reload the configuration file
  20. bindsym $super+Shift+c reload
  21. #Restart i3 inplace
  22. bindsym $super+Shift+r restart
  23.  
  24. #Name Workspace
  25. set $WS1 1·
  26. set $WS2 2·
  27. set $WS3 3·
  28. set $WS4 4·
  29. set $WS5 5·
  30.  
  31. set $WS6 6·
  32. set $WS7 7·
  33. set $WS8 8·
  34.  
  35. # Define other scren
  36.  
  37. workspace $WS1 output eDP1
  38. workspace $WS2 output eDP1
  39. workspace $WS3 output eDP1
  40. workspace $WS4 output eDP1
  41. workspace $WS5 output eDP1
  42.  
  43. workspace $WS6 output HDMI2
  44. workspace $WS7 output HDMI2
  45. workspace $WS8 output HDMI2
  46.  
  47. #Switch to workspace
  48. bindsym $super+1 workspace $WS1
  49. bindsym $super+2 workspace $WS2
  50. bindsym $super+3 workspace $WS3
  51. bindsym $super+4 workspace $WS4
  52. bindsym $super+5 workspace $WS5
  53. bindsym $super+6 workspace $WS6
  54. bindsym $super+7 workspace $WS7
  55. bindsym $super+8 workspace $WS8
  56.  
  57.  
  58. #Move focused container to workspace
  59. bindsym $super+Shift+1 move container to workspace $WS1
  60. bindsym $super+Shift+2 move container to workspace $WS2
  61. bindsym $super+Shift+3 move container to workspace $WS3
  62. bindsym $super+Shift+4 move container to workspace $WS4
  63. bindsym $super+Shift+5 move container to workspace $WS5
  64. bindsym $super+Shift+6 move container to workspace $WS6
  65. bindsym $super+Shift+7 move container to workspace $WS7
  66. bindsym $super+Shift+8 move container to workspace $WS8
  67.  
  68.  
  69. #Use Mouse+$super to drag floating windows to their wanted position
  70. floating_modifier mod1
  71.  
  72. #Enable/disable sticky
  73. bindsym $super+space sticky toggle
  74.  
  75. #Kill focused window
  76. bindsym mod1+F4 kill
  77.  
  78. #Start launcher
  79.  
  80. bindsym $super+d exec --no-startup-id rofi -show run -opacity "80" -width "100" -lines "5" -font "SFNS Display 15" -padding 452 -terminal "terminator" -dpi "96"
  81. bindsym $super+Shift+d exec --no-startup-id rofi -show ssh -opacity "80" -width "100" -lines "5" -font "SFNS Display 15" -padding 452 -terminal "terminator" -dpi "96"
  82. bindsym mod1+Tab exec --no-startup-id rofi -show window -opacity "80" -width "100" -lines "5" -font "SFNS Display 15" -padding 452 -terminal "terminator" -dpi "96"
  83.  
  84. #Change focus
  85. bindsym $super+Left focus left
  86. bindsym $super+Down focus down
  87. bindsym $super+Up focus up
  88. bindsym $super+Right focus right
  89.  
  90. #Move focused window
  91. bindsym Mod1+Shift+Left move Left
  92. bindsym Mod1+Shift+Down move down
  93. bindsym Mod1+Shift+Up move up
  94. bindsym Mod1+Shift+Right move right
  95.  
  96. #Split in horizontal orientation
  97. bindsym $super+h split h
  98. #Split in vertical orientation
  99. bindsym $super+v split v
  100.  
  101. #Fullscreen
  102. bindsym $super+f fullscreen toggle
  103.  
  104. #Tiling / floating
  105. bindsym mod1+space floating toggle
  106.  
  107. #Focus all container
  108. bindsym $super+a focus parent
  109.  
  110. mode "resize" {
  111. bindsym Left resize shrink width 10 px or 10 ppt
  112. bindsym Down resize grow height 10 px or 10 ppt
  113. bindsym Up resize shrink height 10 px or 10 ppt
  114. bindsym Right resize grow width 10 px or 10 ppt
  115.  
  116. bindsym Return mode "default"
  117. bindsym Escape mode "default"
  118. }
  119. #Resize mode
  120. bindsym $super+r mode "resize"
  121.  
  122. #i3 bar
  123. bar {
  124. font pango:SFNS Display 10, FontAwesome 10
  125. position bottom
  126. tray_output eDP1
  127. separator_symbol "  "
  128. colors {
  129. background $bg-color
  130. # border background text
  131. focused_workspace $bg-color $bg-color $text-color
  132. inactive_workspace $inactive-bg-color $inactive-bg-color $inactive-text-color
  133. urgent_workspace $urgent-bg-color $urgent-bg-color $text-color
  134. }
  135. status_command i3blocks
  136.  
  137. }
  138.  
  139. #exec --no-startup-id $HOME/.config/i3/lemonbar.sh;
  140.  
  141.  
  142. #Lock screen
  143. set $Locker i3lock -i ~/.config/i3/lock.png
  144. bindsym $super+l exec --no-startup-id $Locker
  145.  
  146. #System menu with mod-i
  147. set $supere_system (l) lock, (e) logout, (h) hibernate, (r) reboot, (Shift+s) shutdown
  148. mode "$supere_system" {
  149. bindsym l exec --no-startup-id $Locker, mode "default"
  150. bindsym e exec --no-startup-id "i3-msg exit", mode "default"
  151. bindsym h exec --no-startup-id $Locker && systemctl suspend, mode "default"
  152. bindsym r exec --no-startup-id systemctl reboot, mode "default"
  153. bindsym Shift+s exec --no-startup-id systemctl poweroff, mode "default"
  154.  
  155. # back to normal: Enter or Escape
  156. bindsym Return mode "default"
  157. bindsym Escape mode "default"
  158. }
  159. bindsym $super+i mode "$supere_system"
  160.  
  161.  
  162. #MULTI-MONITOR
  163. set $supere_monitor VGA (v) HDMI (h)
  164. set $supere_positionVGA Left (j) Right (k)
  165. set $supere_positionHDMI Left (j) Right (k)
  166. set $supere_monitorKILL VGA(v) HDMI(h)
  167. mode "$supere_positionVGA" {
  168. bindsym j exec --no-startup-id xrandr --output VGA1 --auto --left-of eDP1, mode "default"
  169. bindsym k exec --no-startup-id xrandr --output VGA1 --auto --right-of eDP1, mode "default"
  170. bindsym Return mode "default"
  171. bindsym Escape mode "default"
  172. }
  173. mode "$supere_positionHDMI" {
  174. bindsym j exec --no-startup-id xrandr --output HDMI2 --auto --left-of eDP1, mode "default"
  175. bindsym k exec --no-startup-id xrandr --output HDMI2 --auto --right-of eDP1, mode "default"
  176. bindsym Return mode "default"
  177. bindsym Escape mode "default"
  178. }
  179. mode "$supere_monitorKILL" {
  180. bindsym v exec --no-startup-id xrandr --output VGA1 --off, mode "default"
  181. bindsym h exec --no-startup-id xrandr --output HDMI2 --off, mode "default"
  182. #default
  183. bindsym Return mode "default"
  184. bindsym Escape mode "default"
  185. }
  186. mode "$supere_monitor" {
  187. bindsym v mode "$supere_positionVGA"
  188. bindsym h mode "$supere_positionHDMI"
  189. #default
  190. bindsym Return mode "default"
  191. bindsym Escape mode "default"
  192. }
  193. bindsym $super+p mode "$supere_monitor"
  194. bindsym $super+Shift+p mode "$supere_monitorKILL"
  195.  
  196. # Move Workspaceo
  197. bindsym mod1+l move workspace to output right
  198. bindsym mod1+h move workspace to output left
  199.  
  200. # Toggle touchpad
  201. bindsym $super+t exec --no-startup-id $HOME/.config/i3/scripts/toggleTouchPad
  202.  
  203. # SCreenshot
  204. bindsym Print exec scrot '%Y-%m-%d_%H-%M_$wx$h_screenshot.png' -e 'mv $f ~/Pictures/Screenshots/'
  205. bindsym Shift+Print --release exec scrot -s '%Y-%m-%d_%H-%M_select_$wx$h_screenshot.png' -e 'mv $f ~/Pictures/Screenshots/'
  206.  
  207. #Start a terminal
  208. bindsym $super+Return exec "i3-msg 'workspace $WS3; exec terminator'"
  209. bindsym $super+Shift+Return exec terminator
  210.  
  211. #Custom launcher application
  212. bindsym $super+w exec "firefox"
  213. bindsym $super+Shift+w exec "google-chrome"
  214. bindsym $super+Shift+n exec "terminator -x nmtui"
  215. bindsym $super+e exec nautilus
  216. bindsym mod1+v exec gvim
  217.  
  218. #Assign
  219. assign [class="Firefox"] $WS1
  220. assign [class="google-chrome"] $WS2
  221. assign [class="IBM Notes"] $WS4
  222. assign [class="Sametime"] $WS8
  223. assign [class="Remmina"] $WS5
  224. assign [class="LibreOffice"] $WS6
  225. assign [class="Evince"] $WS6
  226.  
  227. #Default Floating
  228. for_window [class="Nautilus"] floating enable sticky enable
  229.  
  230. #Startup
  231. exec --no-startup-id $HOME/.config/i3/startup.sh
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement