emkay443

config

Jul 1st, 2015
417
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 9.57 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. # == Variables ==
  6. set $mod Mod4
  7. font pango:Terminus 9
  8. floating_modifier $mod
  9. set $locker xflock4
  10.  
  11. # == Gaps ==
  12. gaps inner 14
  13. gaps outer 4
  14. for_window [class="^.*"] border pixel 4
  15. smart_borders on
  16. smart_gaps on
  17.  
  18. # == Colors ==
  19.  
  20. # class border backgr. text indicator
  21. # bindsym $mod+d exec dmenu_run -h 19 -fn "Terminus-9" -nb \#2d2d2d -nf \#dcdcdc -sb \#d64937 -sf \#2d2d2d
  22.  
  23. # NUMIX
  24. client.focused #d64937 #d64937 #ffffff #ff9000
  25. client.unfocused #2d2d2d #2d2d2d #ffffff #2d2d2d
  26. client.focused_inactive #303030 #303030 #d64937 #2d2d2d
  27. client.urgent #e75959 #e75959 #d64937 #900000
  28. client.placeholder #000000 #6a3c00 #ffffff #000000
  29.  
  30. # ORANGE
  31. # client.focused #ff9000 #ff9000 #ffffff #ff9000
  32. # client.unfocused #303030 #303030 #ffffff #303030
  33. # client.focused_inactive #303030 #303030 #ffffff #303030
  34. # client.urgent #e75959 #e75959 #ffffff #900000
  35. # client.placeholder #000000 #6a3c00 #ffffff #000000
  36.  
  37. # BLUE
  38. # client.focused #cc9966 #39c6fe #F7F7F7 #39c6fe
  39. # client.focused_inactive #1c727d #1c727d #F7F7F7 #1c727d
  40. # client.unfocused #1c727d #1c727d #F7F7F7 #1c727d
  41. # client.urgent #C75646 #C75646 #F7F7F7 #C75646
  42. # client.placeholder #1c727d #1c727d #F7F7F7 #1c727d
  43.  
  44. # GREY
  45. # client.focused #a0a0a0 #a0a0a0 #ffffff #a0a0a0
  46. # client.unfocused #404040 #404040 #ffffff #404040
  47. # client.focused_inactive #404040 #404040 #ffffff #404040
  48. # client.urgent #e75959 #e75959 #ffffff #900000
  49. # client.placeholder #000000 #404040 #ffffff #000000
  50.  
  51. # == Keybinds ==
  52.  
  53. bindsym $mod+Return exec xfce4-terminal
  54. bindsym $mod+Shift+q kill
  55. bindsym Mod1+F4 kill
  56. #bindsym $mod+d exec xfrun4
  57. #bindsym Mod1+F2 exec xfrun4
  58. #bindsym $mod+d exec dmenu_run
  59. bindsym $mod+d exec dmenu_run -h 19 -fn "Terminus-9" -nb \#2d2d2d -nf \#dcdcdc -sb \#d64937 -sf \#2d2d2d
  60. bindsym Mod1+F2 exec dmenu_run
  61. bindsym $mod+space exec xfce4-appfinder
  62. bindsym $mod+e exec thunar
  63. bindsym Mod1+ctrl+t exec xfce4-terminal
  64. bindsym Mod1+ctrl+w exec chromium
  65. bindsym Mod1+ctrl+l exec $locker
  66. bindsym XF86ScreenSaver exec $locker
  67. bindsym $mod+l exec $locker
  68. bindsym XF86TaskPane exec xfce4-appfinder
  69. bindsym XF86RotateWindows exec onboard
  70.  
  71. # screenshot tools
  72. bindsym Print exec /media/Daten/Skripte/screenshot --desktop
  73. bindsym ctrl+Print exec /media/Daten/Skripte/screenshot --window
  74. bindsym shift+Print exec /media/Daten/Skripte/screenshot --area
  75.  
  76. # audacious control
  77. bindsym $mod+F1 exec /media/Daten/Skripte/audmultitool playpause
  78. bindsym $mod+F2 exec /media/Daten/Skripte/audmultitool stop
  79. bindsym $mod+F3 exec /media/Daten/Skripte/audmultitool prev
  80. bindsym $mod+F4 exec /media/Daten/Skripte/audmultitool next
  81. bindsym $mod+F5 exec /media/Daten/Skripte/audmultitool voldown
  82. bindsym $mod+F6 exec /media/Daten/Skripte/audmultitool volup
  83. bindsym $mod+F7 exec /media/Daten/Skripte/audmultitool mute
  84. bindsym $mod+F8 exec audacious
  85.  
  86. # volume control
  87. bindsym XF86AudioMute exec pactl set-sink-mute 0 toggle
  88. bindsym XF86AudioLowerVolume exec "pactl set-sink-mute 0 false; pactl -- set-sink-volume 0 -5%"
  89. bindsym XF86AudioRaiseVolume exec "pactl set-sink-mute 0 false; pactl -- set-sink-volume 0 +5%"
  90.  
  91. # change focus
  92. bindsym $mod+Left focus left
  93. bindsym $mod+Down focus down
  94. bindsym $mod+Up focus up
  95. bindsym $mod+Right focus right
  96.  
  97. # move focused window
  98. bindsym $mod+Shift+Left move left
  99. bindsym $mod+Shift+Down move down
  100. bindsym $mod+Shift+Up move up
  101. bindsym $mod+Shift+Right move right
  102.  
  103. # split
  104. bindsym $mod+h split h
  105. bindsym $mod+v split v
  106.  
  107. # fullscreen for focused container
  108. bindsym $mod+f fullscreen toggle
  109. bindsym Mod1+Return fullscreen toggle
  110.  
  111. # change container layout (stacked, tabbed, toggle split)
  112. bindsym $mod+s layout stacking
  113. bindsym $mod+w layout tabbed
  114. bindsym $mod+t layout toggle split
  115.  
  116. # toggle tiling / floating
  117. bindsym $mod+Shift+f floating toggle
  118. bindsym $mod+Shift+space floating toggle
  119.  
  120. # open whisker menu
  121. # bindsym $mod+space exec xfce4-popup-whiskermenu
  122.  
  123. # focus the parent container
  124. bindsym $mod+a focus parent
  125.  
  126. # focus the child container
  127. bindsym $mod+c focus child
  128.  
  129. # switch to workspace
  130. bindsym $mod+1 workspace 1
  131. bindsym $mod+2 workspace 2
  132. bindsym $mod+3 workspace 3
  133. bindsym $mod+4 workspace 4
  134. bindsym $mod+5 workspace 5
  135. bindsym $mod+6 workspace 6
  136. bindsym $mod+7 workspace 7
  137. bindsym $mod+8 workspace 8
  138. bindsym $mod+9 workspace 9
  139. bindsym $mod+0 workspace 10
  140.  
  141. # semi alt-tab behaviour
  142. bindsym Mod1+Tab focus right
  143. bindsym Mod1+Shift+Tab focus left
  144. bindsym $mod+Tab workspace next
  145. bindsym $mod+Shift+Tab workspace prev
  146.  
  147. # move focused container to workspace
  148. bindsym $mod+Shift+1 move container to workspace 1
  149. bindsym $mod+Shift+2 move container to workspace 2
  150. bindsym $mod+Shift+3 move container to workspace 3
  151. bindsym $mod+Shift+4 move container to workspace 4
  152. bindsym $mod+Shift+5 move container to workspace 5
  153. bindsym $mod+Shift+6 move container to workspace 6
  154. bindsym $mod+Shift+7 move container to workspace 7
  155. bindsym $mod+Shift+8 move container to workspace 8
  156. bindsym $mod+Shift+9 move container to workspace 9
  157. bindsym $mod+Shift+0 move container to workspace 10
  158.  
  159. # move workspace to screen
  160. bindsym $mod+Mod1+Left move workspace to output left
  161. bindsym $mod+Mod1+Right move workspace to output right
  162.  
  163. # reload the configuration file
  164. bindsym $mod+Shift+c reload
  165. # restart i3 inplace (preserves your layout/session, can be used to upgrade i3)
  166. bindsym $mod+Shift+r restart
  167. # exit i3 (logs you out of your X session)
  168. 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'"
  169.  
  170. # resize window (you can also use the mouse for that)
  171. mode "resize" {
  172. # These bindings trigger as soon as you enter the resize mode
  173.  
  174. # Pressing left will shrink the window’s width.
  175. # Pressing right will grow the window’s width.
  176. # Pressing up will grow the window’s height.
  177. # Pressing down will shrink the window’s height.
  178. bindsym Left resize shrink width 2 px or 2 ppt
  179. bindsym Down resize shrink height 2 px or 2 ppt
  180. bindsym Up resize grow height 2 px or 2 ppt
  181. bindsym Right resize grow width 2 px or 2 ppt
  182. bindsym plus resize grow width 2 px or 2 ppt
  183. bindsym underscore resize shrink width 2 px or 2 ppt
  184.  
  185. # back to normal: Enter or Escape
  186. bindsym Return mode "default"
  187. bindsym Escape mode "default"
  188. }
  189.  
  190. bindsym $mod+r mode "resize"
  191.  
  192. # == Power menu ==
  193. set $mode_system System (l) lock, (e) logout, (s) suspend, (h) hibernate, (r) reboot, (Shift+s) shutdown
  194. mode "$mode_system" {
  195. bindsym l exec --no-startup-id $locker, mode "default"
  196. bindsym e exec --no-startup-id i3-msg exit, mode "default"
  197. bindsym s exec --no-startup-id $locker && sleep 2 && systemctl suspend, mode "default"
  198. bindsym h exec --no-startup-id $locker && sleep 2 && systemctl hibernate, mode "default"
  199. bindsym r exec --no-startup-id systemctl reboot, mode "default"
  200. bindsym Shift+s exec --no-startup-id systemctl poweroff -i, mode "default"
  201.  
  202. bindsym Return mode "default"
  203. bindsym Escape mode "default"
  204. bindsym Mod1+Ctrl+Delete mode "default"
  205. }
  206. # the first two don't seem to work...
  207. bindsym XF86PowerOff mode "$mode_system"
  208. bindsym XF86Sleep exec $locker && sleep 2 && systemctl suspend
  209. bindsym Mod1+Ctrl+Delete mode "$mode_system"
  210.  
  211. # == Bar ==
  212. bar {
  213. position top
  214. status_command py3status -c /home/emkay/.config/i3status/config
  215. height 20
  216. # tray_output primary
  217. colors {
  218. background #2d2d2d
  219. statusline #ffffff
  220.  
  221. focused_workspace #ffffff #d64937 #ffffff
  222. active_workspace #000000 #d64937 #000000
  223. inactive_workspace #2d2d2d #2d2d2d #ffffff
  224. urgent_workspace #ff9000 #800000 #ff9000
  225. }
  226. }
  227.  
  228. # == Special things (floating, automove, borders) ===
  229. for_window [title="xfce4-notifyd"] floating enable, border none
  230. # for_window [class="Thunderbird"] move to workspace 3, floating enable
  231. for_window [class="Audacious"] move to workspace 6
  232. for_window [class="Pidgin"] move to workspace 1
  233. for_window [class="Kodi"] move to workspace 6, fullscreen
  234. for_window [class="VLC"] move to workspace 6
  235. # for_window [class="Audacious"] border none
  236. for_window [class="Xfrun4"] floating enable
  237. for_window [class="Xfce4-appfinder"] floating enable
  238. for_window [class="Wrapper-1.0"] border none
  239. for_window [class="Pnmixer"] border none, floating enable
  240. for_window [class="KeePass2"] move to workspace 10
  241. for_window [class="Steam" title="Freunde"] floating enable
  242. for_window [class="Steam" title="Steam - Update-News"] floating enable
  243.  
  244. # == Wallpaper ==
  245. # exec --no-startup-id xsetroot -solid "#202020"
  246. exec --no-startup-id feh --bg-fill /media/Daten/Bilder/.wallpaper
  247.  
  248. # == Autostart applications ==
  249. exec --no-startup-id i3-msg 'workspace 3; exec thunderbird'
  250. exec --no-startup-id i3-msg 'workspace 1; exec pidgin'
  251. exec --no-startup-id i3-msg 'workspace 10; exec keepass -keyfile:/media/Daten/ownCloud/Privat/kpass.key /media/Daten/ownCloud/Privat/kpass.kdbx'
  252. exec --no-startup-id pnmixer
  253. exec --no-startup-id xinput set-prop "SynPS/2 Synaptics TouchPad" "Synaptics Edge Scrolling" 1 1 1
  254. exec --no-startup-id xinput set-prop "SynPS/2 Synaptics TouchPad" "Device Accel Profile" -1
  255. exec --no-startup-id xinput set-prop "SynPS/2 Synaptics TouchPad" "Device Accel Velocity Scaling" 12.5
  256. exec --no-startup-id xset r
  257. exec --no-startup-id xset r 500
  258. exec --no-startup-id xset b off
  259. exec --no-startup-id compton
  260. exec --no-startup-id owncloud
  261. exec --no-startup-id xscreensaver -no-splash
  262. exec --no-startup-id /media/Daten/Skripte/startup_disablekeyboard
  263. exec --no-startup-id xmodmap -e "pointer = 1 2 3 4 5 6 7 9 8"
  264. exec --no-startup-id xfce4-power-manager
  265. exec --no-startup-id /media/Daten/Skripte/nm-applet-autorestart
Advertisement
Add Comment
Please, Sign In to add comment