Guest User

Untitled

a guest
Dec 10th, 2017
225
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.33 KB | None | 0 0
  1. # Please see http://i3wm.org/docs/userguide.html for a complete reference!
  2.  
  3. # Mod4 Win
  4. # Mod1 Alt
  5.  
  6. set $mod Mod4
  7. set $alt Mod1
  8.  
  9. ## ## ######## ## ## ######## #### ## ## ######## #### ## ## ###### ######
  10. ## ## ## ## ## ## ## ## ### ## ## ## ## ### ## ## ## ## ##
  11. ## ## ## #### ## ## ## #### ## ## ## ## #### ## ## ##
  12. ##### ###### ## ######## ## ## ## ## ## ## ## ## ## ## ## #### ######
  13. ## ## ## ## ## ## ## ## #### ## ## ## ## #### ## ## ##
  14. ## ## ## ## ## ## ## ## ### ## ## ## ## ### ## ## ## ##
  15. ## ## ######## ## ######## #### ## ## ######## #### ## ## ###### ######
  16.  
  17. # Use Mouse+$mod to drag floating windows to their wanted position
  18. floating_modifier $mod
  19.  
  20. # start a terminal
  21. bindsym $mod+Return exec xfce4-terminal
  22.  
  23. # kill focused window
  24. bindsym $mod+q kill
  25.  
  26. # change focus
  27. bindsym $mod+h focus left
  28. bindsym $mod+j focus down
  29. bindsym $mod+k focus up
  30. bindsym $mod+l focus right
  31.  
  32. # move focused window
  33. bindsym $mod+Shift+h move left
  34. bindsym $mod+Shift+j move down
  35. bindsym $mod+Shift+k move up
  36. bindsym $mod+Shift+l move right
  37.  
  38. # split in horizontal orientation
  39. bindsym $mod+n split h
  40.  
  41. # split in vertical orientation
  42. bindsym $mod+m split v
  43.  
  44. # enter fullscreen mode for the focused container
  45. bindsym $mod+f fullscreen toggle
  46.  
  47. # change container layout (stacked, tabbed, toggle split)
  48. bindsym $mod+s layout stacking
  49. bindsym $mod+w layout tabbed
  50. bindsym $mod+e layout toggle split
  51.  
  52. # toggle tiling / floating
  53. bindsym $mod+Shift+space floating toggle
  54.  
  55. # change focus between tiling / floating windows
  56. bindsym $mod+space focus mode_toggle
  57.  
  58. bindsym $mod+a focus parent
  59. bindsym $mod+Shift+a focus child
  60.  
  61. # Media controls
  62. bindsym XF86AudioPlay exec playerctl play
  63. bindsym XF86AudioPause exec playerctl pause
  64. bindsym XF86AudioNext exec playerctl next
  65. bindsym XF86AudioPrev exec playerctl previous
  66.  
  67. bindsym XF86MonBrightnessDown exec light -U 10 # decrease screen brightness
  68. bindsym XF86MonBrightnessUp exec light -A 10 # increase screen brightness
  69.  
  70. bindsym XF86AudioRaiseVolume exec --no-startup-id pactl set-sink-volume 0 +5% #increase sound volume
  71. bindsym XF86AudioLowerVolume exec --no-startup-id pactl set-sink-volume 0 -5% #decrease sound volume
  72. bindsym XF86AudioMute exec --no-startup-id pactl set-sink-mute 0 toggle # mute sound
  73.  
  74. bindsym $mod+d exec rofi -show run
  75.  
  76. bindsym $mod+Shift+c reload
  77. bindsym $mod+Shift+r restart
  78. 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'"
  79.  
  80. # Shortuts
  81.  
  82. bindsym $mod+Shift+g exec google-chrome-stable
  83. bindsym $mod+g [class="google-chrome"] focus
  84. bindsym $mod+Control+l exec "i3lock -i /home/lpp/Pictures/lock.png"
  85.  
  86. ## ## ####### ######## ## ## ###### ######## ### ###### ########
  87. ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ##
  88. ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ##
  89. ## ## ## ## ## ######## ##### ###### ######## ## ## ## ######
  90. ## ## ## ## ## ## ## ## ## ## ## ######### ## ##
  91. ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ##
  92. ### ### ####### ## ## ## ## ###### ## ## ## ###### ########
  93.  
  94. bindsym Control+$alt+h workspace prev
  95. bindsym Control+$alt+j workspace prev
  96.  
  97. bindsym Control+$alt+k workspace next
  98. bindsym Control+$alt+l workspace next
  99.  
  100. set $w1 "1 www "
  101. set $w2 "2 "
  102. set $w3 "3 "
  103. set $w4 "4 "
  104. set $w5 "5 "
  105. set $w6 "6 "
  106. set $w7 "7 "
  107. set $w8 "8 "
  108. set $w9 "9 "
  109. set $w10 "10 "
  110.  
  111.  
  112. #default workspace
  113. # For some reason spotify's not working properly
  114. assign [class="Spotify"] → $w10
  115. assign [instance="spotify"] → $w10
  116. assign [class="Franz"] → $w9
  117. assign [class="Slack"] → $w9
  118. assign [title="WeeChat"] → $w9
  119. assign [instance="weechat"] $w9
  120.  
  121. # move focused container to workspace
  122. bindsym $mod+Shift+1 move container to workspace $w1
  123. bindsym $mod+Shift+2 move container to workspace $w2
  124. bindsym $mod+Shift+3 move container to workspace $w3
  125. bindsym $mod+Shift+4 move container to workspace $w4
  126. bindsym $mod+Shift+5 move container to workspace $w5
  127. bindsym $mod+Shift+6 move container to workspace $w6
  128. bindsym $mod+Shift+7 move container to workspace $w7
  129. bindsym $mod+Shift+8 move container to workspace $w8
  130. bindsym $mod+Shift+9 move container to workspace $w9
  131. bindsym $mod+Shift+0 move container to workspace $w10
  132.  
  133. # switch to workspace
  134. bindsym $mod+1 workspace $w1
  135. bindsym $mod+2 workspace $w2
  136. bindsym $mod+3 workspace $w3
  137. bindsym $mod+4 workspace $w4
  138. bindsym $mod+5 workspace $w5
  139. bindsym $mod+6 workspace $w6
  140. bindsym $mod+7 workspace $w7
  141. bindsym $mod+8 workspace $w8
  142. bindsym $mod+9 workspace $w9
  143. bindsym $mod+0 workspace $w10
  144.  
  145.  
  146. # resize window (you can also use the mouse for that)
  147. mode "resize" {
  148. # These bindings trigger as soon as you enter the resize mode
  149.  
  150. # Pressing left will shrink the window’s width.
  151. # Pressing right will grow the window’s width.
  152. # Pressing up will shrink the window’s height.
  153. # Pressing down will grow the window’s height.
  154. bindsym j resize shrink width 10 px or 10 ppt
  155. bindsym k resize grow height 10 px or 10 ppt
  156. bindsym l resize shrink height 10 px or 10 ppt
  157. bindsym semicolon resize grow width 10 px or 10 ppt
  158.  
  159. # same bindings, but for the arrow keys
  160. bindsym Left resize shrink width 10 px or 10 ppt
  161. bindsym Down resize grow height 10 px or 10 ppt
  162. bindsym Up resize shrink height 10 px or 10 ppt
  163. bindsym Right resize grow width 10 px or 10 ppt
  164.  
  165. # back to normal: Enter or Escape
  166. bindsym Return mode "default"
  167. bindsym Escape mode "default"
  168. }
  169.  
  170. bindsym $mod+r mode "resize"
  171.  
  172.  
  173. ######## ## ## ######## ######
  174. ## ## ## ## ## ##
  175. ## ## ## ## ##
  176. ###### ### ###### ##
  177. ## ## ## ## ##
  178. ## ## ## ## ## ##
  179. ######## ## ## ######## ######
  180.  
  181. # exec franz-bin
  182. exec_always --no-startup-id "sleep 0.5 && xmodmap /home/lpp/.Xmodmap"
  183. exec_always compton
  184. exec --no-startup-id "transmission-gtk --minimized"
  185. exec --no-startup-id "nm-applet"
  186. exec --no-startup-id "polybar example"
  187.  
  188. # Keys
  189. exec_always setxkbmap hr us
  190.  
  191. ## ####### ####### ## ## #### ######## ######## ######## ##
  192. ## ## ## ## ## ## ## ## ## ## ## ## ##
  193. ## ## ## ## ## ## ## #### ## ## ## ##
  194. ## ## ## ## ## ##### #### ###### ###### ###### ##
  195. ## ## ## ## ## ## ## ## ## ## ## ## ## ##
  196. ## ## ## ## ## ## ## ## ## ## ## ## ##
  197. ######## ####### ####### ## ## #### ## ## ######## ######## ########
  198. # for_window [class=".*"] title_format " %title"
  199. # for_window [class=".*"] normal 0
  200. for_window [class=".*"] border pixel 0
  201. # gaps inner 10
  202. # gaps outer 0
  203. # smart_gaps off
  204. # smart_borders on
  205.  
  206. exec_always feh --bg-fill ~/Pictures/wall/*
Advertisement
Add Comment
Please, Sign In to add comment