Advertisement
Guest User

Untitled

a guest
Aug 16th, 2015
253
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.02 KB | None | 0 0
  1. # Please see http://i3wm.org/docs/userguide.html for a complete reference!
  2.  
  3. # =======================================================
  4. # Basic settings
  5.  
  6. # Mod1 is Alt key, Mod4 is Win key
  7. set $mod Mod1
  8.  
  9. # Really small borders and no title for windows
  10. for_window [class="^."] border pixel 2
  11.  
  12. # Use Mouse+$mod to drag floating windows to their wanted position
  13. floating_modifier $mod
  14.  
  15. # Default volume
  16. #exec amixer sset Master mute
  17. # exec amixer sset Master unmute
  18. exec --no-startup-id amixer sset Master 60%
  19.  
  20. # Wallpaper restoring
  21. #exec --no-startup-id nitrogen --restore
  22. exec feh --bg-scale /home/michal/Obrazy/wallpaper.jpg
  23.  
  24. # Press again $mod+number to return to workspace you were working on
  25. workspace_auto_back_and_forth yes
  26.  
  27. # Name the workspaces
  28. #set $tag1 "1: Internet"
  29. #set $tag2 "2: Files"
  30. #set $tag3 "3: Terminals"
  31. #set $tag4 "4: Other_stuff"
  32.  
  33. # basic colors=============================
  34. #
  35. # default blue
  36. set $de #00688B
  37. # cool red
  38. set $cr #f7003a
  39.  
  40. # # set some nice colors border background text
  41. client.focused $de $de $tx
  42. client.unfocused $de $bg $ia
  43. client.focused_inactive $de $bg $de
  44. client.urgent $de $rd $tx
  45.  
  46. # Bar
  47. bar
  48. {
  49. colors
  50. {
  51. # Whole color settings
  52. background #000000
  53. statusline #00688B
  54. separator #0EBFE9
  55.  
  56. # Type border background font
  57. focused_workspace #3e79d1 #00688B #ffffff
  58. active_workspace #f7003a #5f676a #ffffff
  59. inactive_workspace #333333 #222222 #888888
  60. urgent_workspace #f7003a #990000 #ffffff
  61. }
  62.  
  63. # i3bar position
  64. #position top
  65. position bottom
  66.  
  67. status_command i3status
  68. font xtf:Cousine 8
  69. }
  70. # =======================================================
  71. #
  72. # =======================================================
  73. # Bindings
  74.  
  75. # Start a terminal
  76. bindsym $mod+Return exec lxterminal
  77. bindsym $mod+F5 exec amixer sset Master toggle
  78. # Kill focused window
  79. bindsym $mod+c kill
  80.  
  81. # Start dmenu (a program launcher)
  82. bindsym $mod+d exec dmenu_run
  83.  
  84. # Open menu with system commands
  85. bindsym $mod+F2 mode "$mode_system"
  86. bindsym --release Print exec scrot ~/tmp/%H:%M:%S-%d-%m_screenshot.png
  87. bindsym --release $mod+Print exec scrot -s ~/tmp/%H:%M:%S-%d-%m_screenshot.png
  88.  
  89. # Change focused window
  90. bindsym $mod+h focus left
  91. bindsym $mod+j focus down
  92. bindsym $mod+k focus up
  93. bindsym $mod+l focus right
  94. # Or, with the arrow keys
  95. bindsym $mod+Left focus left
  96. bindsym $mod+Down focus down
  97. bindsym $mod+Up focus up
  98. bindsym $mod+Right focus right
  99.  
  100. # Move focused window
  101. bindsym $mod+Shift+j move left
  102. bindsym $mod+Shift+k move down
  103. bindsym $mod+Shift+l move up
  104. bindsym $mod+Shift+semicolon move right
  105. # Or, with the arrow keys
  106. bindsym $mod+Shift+Left move left
  107. bindsym $mod+Shift+Down move down
  108. bindsym $mod+Shift+Up move up
  109. bindsym $mod+Shift+Right move right
  110.  
  111. # split in horizontal orientation
  112. bindsym $mod+g split h
  113. # split in vertical orientation
  114. bindsym $mod+v split v
  115.  
  116. # enter fullscreen mode for the focused container
  117. bindsym $mod+f fullscreen
  118.  
  119. # change container layout (stacked, tabbed, toggle split)
  120. bindsym $mod+s layout stacking
  121. bindsym $mod+w layout tabbed
  122. bindsym $mod+e layout toggle split
  123.  
  124. # toggle tiling / floating
  125. bindsym $mod+Shift+space floating toggle
  126.  
  127. # change focus between tiling / floating windows
  128. bindsym $mod+space focus mode_toggle
  129.  
  130. # focus the parent container
  131. bindsym $mod+a focus parent
  132.  
  133. # switch to workspace
  134. bindsym $mod+1 workspace 1
  135. bindsym $mod+2 workspace 2
  136. bindsym $mod+3 workspace 3
  137. bindsym $mod+4 workspace 4
  138. bindsym $mod+5 workspace 5
  139. bindsym $mod+6 workspace 6
  140. bindsym $mod+7 workspace 7
  141. bindsym $mod+8 workspace 8
  142. bindsym $mod+9 workspace 9
  143. bindsym $mod+0 workspace 10
  144.  
  145. # move focused container to workspace
  146. bindsym $mod+Shift+1 move container to workspace 1
  147. bindsym $mod+Shift+2 move container to workspace 2
  148. bindsym $mod+Shift+3 move container to workspace 3
  149. bindsym $mod+Shift+4 move container to workspace 4
  150. bindsym $mod+Shift+5 move container to workspace 5
  151. bindsym $mod+Shift+6 move container to workspace 6
  152. bindsym $mod+Shift+7 move container to workspace 7
  153. bindsym $mod+Shift+8 move container to workspace 8
  154. bindsym $mod+Shift+9 move container to workspace 9
  155. bindsym $mod+Shift+0 move container to workspace 10
  156.  
  157. # Volume control
  158. bindsym $mod+F11 exec amixer set Master 5%-
  159. bindsym $mod+F12 exec amixer set Master 5%+
  160. # Brightness control
  161. bindsym $mod+F9 exec xbacklight -dec 5
  162. bindsym $mod+F10 exec xbacklight -inc 5
  163.  
  164. # focus the child container
  165. #bindsym $mod+d focus child
  166.  
  167. # Reload the configuration file
  168. bindsym $mod+Shift+c reload
  169. # Restart i3 inplace (preserves your layout/session, can be used to upgrade i3)
  170. bindsym $mod+Shift+r restart
  171. # Exit i3 (logs you out of your X session)
  172. 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'"
  173.  
  174. # resize window (you can also use the mouse for that)
  175. bindsym $mod+r mode "resize"
  176.  
  177. # There also is the (new) i3-dmenu-desktop which only displays applications
  178. # shipping a .desktop file. It is a wrapper around dmenu, so you need that
  179. # installed.
  180. # bindsym $mod+d exec --no-startup-id i3-dmenu-desktop
  181. # =======================================================
  182.  
  183. # =======================================================
  184. # Shutdown, reboot, lock screen
  185.  
  186. #set $Locker i3lock -c 000000 && sleep 1
  187. # set $Locker i3lock -i ~/Pictures/i3lock-arch.png --color=ff0000
  188. set $Locker i3lock -i ~/Pictures/i3lock-deb.png --color=ff0000
  189.  
  190. set $mode_system System (l) lock, (e) logout, (s) suspend, (h) hibernate, (r) reboot, (Shift+s) shutdown
  191. mode "$mode_system" {
  192. bindsym l exec --no-startup-id $Locker, mode "default"
  193. bindsym e exec --no-startup-id i3-msg exit, mode "default"
  194. bindsym s exec --no-startup-id $Locker && systemctl suspend, mode "default"
  195. bindsym h exec --no-startup-id $Locker && systemctl hibernate, mode "default"
  196. bindsym r exec --no-startup-id systemctl reboot, mode "default"
  197. bindsym Shift+s exec --no-startup-id systemctl poweroff -i, mode "default"
  198.  
  199. # back to normal: Enter or Escape
  200. bindsym Return mode "default"
  201. bindsym Escape mode "default"
  202. }
  203. # =======================================================
  204.  
  205. mode "resize" {
  206. set $Size 3
  207. # These bindings trigger as soon as you enter the resize mode
  208. bindsym j resize shrink width $Size px or $Size ppt
  209. bindsym k resize grow height $Size px or $Size ppt
  210. bindsym l resize shrink height $Size px or $Size ppt
  211. bindsym semicolon resize grow width $Size px or $Size ppt
  212.  
  213. # Same bindings, but for the arrow keys
  214. bindsym Left resize shrink width $Size px or $Size ppt
  215. bindsym Down resize grow height $Size px or $Size ppt
  216. bindsym Up resize shrink height $Size px or $Size ppt
  217. bindsym Right resize grow width $Size px or $Size ppt
  218.  
  219. # Back to normal: Enter or Escape
  220. bindsym Return mode "default"
  221. bindsym Escape mode "default"
  222. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement