Advertisement
Guest User

Untitled

a guest
May 15th, 2017
1,293
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.61 KB | None | 0 0
  1. set $mod Mod4
  2.  
  3. # Font for window titles. Will also be used by the bar unless a different font
  4. # is used in the bar {} block below.
  5. font pango:hack 12
  6.  
  7. # Use Mouse+$mod to drag floating windows to their wanted position
  8. floating_modifier Mod1
  9.  
  10. # start a terminal
  11. bindsym $mod+Return exec i3-sensible-terminal
  12.  
  13. # kill focused window
  14. bindsym $mod+q kill
  15.  
  16. # start dmenu (a program launcher)
  17. # bindsym $mod+d exec dmenu_run #
  18. bindsym $mod+d exec rofi -show run
  19. # There also is the (new) i3-dmenu-desktop which only displays applications
  20. # shipping a .desktop file. It is a wrapper around dmenu, so you need that
  21. # installed.
  22. # bindsym $mod+d exec --no-startup-id i3-dmenu-desktop
  23.  
  24. # Lock desktop
  25. bindsym $mod+l exec ~/.config/i3/lock.sh
  26.  
  27. # change focus
  28. # bindsym $mod+j focus left
  29. # bindsym $mod+k focus down
  30. # bindsym $mod+l focus up
  31. # bindsym $mod+semicolon focus right
  32.  
  33. # alternatively, you can use the cursor keys:
  34. bindsym $mod+Left focus left
  35. bindsym $mod+Down focus down
  36. bindsym $mod+Up focus up
  37. bindsym $mod+Right focus right
  38.  
  39. # move focused window
  40. # bindsym $mod+Shift+j move left
  41. # bindsym $mod+Shift+k move down
  42. # bindsym $mod+Shift+l move up
  43. # bindsym $mod+Shift+semicolon move right
  44.  
  45. # alternatively, you can use the cursor keys:
  46. bindsym $mod+Shift+Left move left
  47. bindsym $mod+Shift+Down move down
  48. bindsym $mod+Shift+Up move up
  49. bindsym $mod+Shift+Right move right
  50.  
  51. # split in horizontal orientation
  52. bindsym $mod+h split h
  53. bindsym $mod+Shift+h focus left, split h
  54.  
  55. # split in vertical orientation
  56. bindsym $mod+v split v
  57. bindsym $mod+Shift+v focus up, split v
  58.  
  59. # enter fullscreen mode for the focused container
  60. bindsym $mod+f fullscreen toggle
  61.  
  62. # change container layout (stacked, tabbed, toggle split)
  63. bindsym $mod+s layout stacking
  64. bindsym $mod+w layout tabbed
  65. bindsym $mod+e layout toggle split
  66.  
  67. # toggle tiling / floating
  68. bindsym $mod+Shift+S floating toggle
  69.  
  70. # change focus between tiling / floating windows
  71. bindsym $mod+space focus mode_toggle
  72.  
  73. # focus the parent container
  74. bindsym $mod+a focus parent
  75.  
  76. # focus the child container
  77. #bindsym $mod+d focus child
  78.  
  79. # switch to workspace
  80. bindsym $mod+1 workspace 1
  81. bindsym $mod+2 workspace 2
  82. bindsym $mod+3 workspace 3
  83. bindsym $mod+4 workspace 4
  84. bindsym $mod+5 workspace 5
  85. bindsym $mod+6 workspace 6
  86. bindsym $mod+7 workspace 7
  87. bindsym $mod+8 workspace 8
  88. bindsym $mod+9 workspace 9
  89. bindsym $mod+0 workspace 10
  90.  
  91. # move focused container to workspace
  92. bindsym $mod+Shift+1 move container to workspace 1
  93. bindsym $mod+Shift+2 move container to workspace 2
  94. bindsym $mod+Shift+3 move container to workspace 3
  95. bindsym $mod+Shift+4 move container to workspace 4
  96. bindsym $mod+Shift+5 move container to workspace 5
  97. bindsym $mod+Shift+6 move container to workspace 6
  98. bindsym $mod+Shift+7 move container to workspace 7
  99. bindsym $mod+Shift+8 move container to workspace 8
  100. bindsym $mod+Shift+9 move container to workspace 9
  101. bindsym $mod+Shift+0 move container to workspace 10
  102.  
  103. # reload the configuration file
  104. bindsym $mod+Shift+c reload
  105. # restart i3 inplace (preserves your layout/session, can be used to upgrade i3)
  106. bindsym $mod+Shift+r restart
  107. # exit i3 (logs you out of your X session)
  108. 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'"
  109.  
  110. # resize window (you can also use the mouse for that)
  111. mode "resize" {
  112. # These bindings trigger as soon as you enter the resize mode
  113.  
  114. # Pressing left will shrink the window’s width.
  115. # Pressing right will grow the window’s width.
  116. # Pressing up will shrink the window’s height.
  117. # Pressing down will grow the window’s height.
  118. bindsym j resize shrink width 10 px or 10 ppt
  119. bindsym k resize grow height 10 px or 10 ppt
  120. bindsym l resize shrink height 10 px or 10 ppt
  121. bindsym semicolon resize grow width 10 px or 10 ppt
  122.  
  123. # same bindings, but for the arrow keys
  124. bindsym Left resize shrink width 10 px or 10 ppt
  125. bindsym Down resize grow height 10 px or 10 ppt
  126. bindsym Up resize shrink height 10 px or 10 ppt
  127. bindsym Right resize grow width 10 px or 10 ppt
  128.  
  129. # back to normal: Enter or Escape
  130. bindsym Return mode "default"
  131. bindsym Escape mode "default"
  132. }
  133.  
  134. bindsym $mod+r mode "resize"
  135.  
  136. # New window size
  137. new_window pixel
  138.  
  139. # Pulse Audio controls
  140. bindsym XF86AudioRaiseVolume exec --no-startup-id pactl set-sink-volume 0 +5% #increase sound volume
  141. bindsym XF86AudioLowerVolume exec --no-startup-id pactl set-sink-volume 0 -5% #decrease sound volume
  142. bindsym XF86AudioMute exec --no-startup-id pactl set-sink-mute 0 toggle # mute sound
  143.  
  144. # Sreen brightness controls
  145. bindsym XF86MonBrightnessUp exec xbacklight -inc 20 # increase screen brightness
  146. bindsym XF86MonBrightnessDown exec xbacklight -dec 20 # decrease screen brightness
  147.  
  148.  
  149. # Media player controls
  150. bindsym XF86AudioPlay exec playerctl play
  151. bindsym XF86AudioPause exec playerctl pause
  152. bindsym XF86AudioNext exec playerctl next
  153. bindsym XF86AudioPrev exec playerctl previous
  154.  
  155. # Gaps
  156. smart_gaps on
  157. gaps inner 5
  158. gaps outer 2
  159.  
  160. # Start i3bar to display a workspace bar (plus the system information i3status
  161. # finds out, if available)
  162. # bar {
  163. # status_command i3blocks
  164. # position top
  165. # colors {
  166. # separator #666666
  167. # background #222222
  168. # statusline #dddddd
  169. # focused_workspace #0088CC #0088CC #ffffff
  170. # active_workspace #333333 #333333 #ffffff
  171. # inactive_workspace #333333 #333333 #888888
  172. # urgent_workspace #2f343a #900000 #ffffff
  173. # }
  174. # }
  175.  
  176.  
  177. # AUTOSTART
  178. exec ~/.config/i3/set_resolution.sh &
  179. exec feh --bg-scale /usr/share/backgrounds/gnome/Godafoss_Iceland.jpg &
  180.  
  181. # Screenlock
  182. exec xautolock -locker ~/.config/i3/lock.sh -time 2 &
  183.  
  184. # exec emacs25 --daemon &
  185. # exec pasystray &
  186. exec nm-applet &
  187. exec compton &
  188. exec conky -c ~/.conkyrc &
  189. exec killall dunst && dunst -conf ~/.config/dunst &
  190.  
  191. # Screen color temp
  192. exec redshift &
  193.  
  194. # Autostart on workspaces
  195. exec --no-startup-id i3-msg 'workspace 1; exec firefox'
  196. exec --no-startup-id i3-msg 'workspace 2; exec gnome-terminal'
  197. exec --no-startup-id i3-msg 'workspace 3; exec emacs25'
  198. exec --no-startup-id i3-msg 'workspace 4; exec pidgin'
  199. # exec --no-startup-id i3-msg 'workspace 4; exec slack'
  200. exec --no-startup-id i3-msg 'workspace 5; exec evolution'
  201.  
  202. # Panel
  203. exec ~/.local/bin/polybar main &
  204.  
  205. client.focused #0088CC #0088CC #0088CC #0088CC
  206. client.focused_inactive #333333 #333333 #888888 #292d2e
  207. client.unfocused #333333 #333333 #888888 #292d2e
  208. client.urgent #2f343a #900000 #ffffff #900000
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement