Advertisement
Guest User

Untitled

a guest
Aug 18th, 2019
234
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.50 KB | None | 0 0
  1. # set modifier to Super key
  2. set $mod Mod4
  3.  
  4. # workspaces
  5. set $ws_chat 1: Chat
  6. set $ws_web 2: Web
  7. set $ws_code 3: Code
  8. set $ws_misc 4: Misc
  9. set $ws_fm 5: FM
  10.  
  11. # orange theme
  12. set $focused_fg #ff950e
  13. set $focused_bg #343434
  14. set $inactive_fg #808080
  15. set $inactive_bg #141414
  16. set $normal_fg #606060
  17. set $normal_bg #000000
  18. set $urgent_fg #ffff00
  19. set $urgent_bg #900000
  20.  
  21. # lime theme
  22. set $focused_fg #9fbc00
  23. set $focused_bg #343434
  24. set $inactive_fg #808080
  25. set $inactive_bg #141414
  26. set $normal_fg #808080
  27. set $normal_bg #000000
  28. set $urgent_fg #ffff00
  29. set $urgent_bg #900000
  30.  
  31. # blue theme
  32. set $focused_fg #ffffff
  33. set $focused_bg #336698
  34. set $inactive_fg #a0a0a0
  35. set $inactive_bg #22333d
  36. set $normal_fg #b0b0b0
  37. set $normal_bg #22333d
  38. set $urgent_fg #ffff00
  39. set $urgent_bg #900000
  40.  
  41. # basic configuration
  42. focus_follows_mouse no
  43. floating_modifier $mod
  44.  
  45. # class border backgr. text indicator
  46. client.focused $focused_bg $focused_bg $focused_fg $focused_bg
  47. client.focused_inactive $inactive_bg $inactive_bg $inactive_fg $inactive_bg
  48. client.unfocused $normal_bg $normal_bg $normal_fg $normal_bg
  49. client.urgent $urgent_bg $urgent_bg $urgent_fg $urgent_bg
  50.  
  51. # font for window titles. ISO 10646 = Unicode
  52. font -misc-fixed-medium-*-normal-*-14-*-*-*-*-*-iso10646-*
  53. font pango:M+1m 11
  54.  
  55. # window confirguration
  56. new_window normal 2
  57. new_float pixel 2
  58. force_display_urgency_hint 500 ms
  59.  
  60. # multimedia keys
  61. bindsym XF86AudioRaiseVolume exec --no-startup-id pactl set-sink-volume 0 -- +10% && killall -SIGUSR1 i3status
  62. bindsym XF86AudioLowerVolume exec --no-startup-id pactl set-sink-volume 0 -- -10% && killall -SIGUSR1 i3status
  63. bindsym XF86MonBrightnessUp exec --no-startup-id xbacklight -inc 10
  64. bindsym XF86MonBrightnessDown exec --no-startup-id xbacklight -dec 10
  65. bindsym XF86Launch1 exec --no-startup-id i3lock -i ~/.wallpaper.png && sudo pm-suspend
  66.  
  67. # custom application shortcuts
  68. bindsym Mod4+F1 exec gnome-terminal
  69. bindsym Mod4+Shift+F1 exec gnome-terminal -t "Scratchpad"
  70. bindsym Mod4+F2 exec gvim
  71. bindsym Mod4+F5 exec gksu update-manager
  72. bindsym Mod4+F6 exec google-chrome
  73. bindsym Mod4+F7 exec steam
  74. bindsym Mod1+F2 exec dmenu_run -p 'command:' -nb '$inactive_bg' -nf '$inactive_fg' -sb '$focused_bg' -sf '$focused_fg' -l 10 -fn '-misc-fixed-medium-*-normal-*-14-*-*-*-*-*-*-*'
  75. bindsym Mod1+Shift+F2 exec i3-dmenu-desktop --dmenu="dmenu -i -p 'command:' -l 10 -fn '-misc-fixed-medium-*-normal-*-14-*-*-*-*-*-*-*'"
  76.  
  77. # i3 shortcuts
  78. bindsym Mod1+F4 kill
  79.  
  80. bindsym $mod+Shift+C reload
  81. bindsym $mod+Shift+R restart
  82. bindsym $mod+Shift+E exec ~/.i3/dmenu_session.sh
  83. bindsym $mod+B border toggle
  84. bindsym $mod+I bar mode toggle
  85.  
  86. # change focus
  87. bindsym $mod+Left focus left
  88. bindsym $mod+Down focus down
  89. bindsym $mod+Up focus up
  90. bindsym $mod+Right focus right
  91.  
  92. # move focused window
  93. bindsym $mod+Shift+Left move left
  94. bindsym $mod+Shift+Down move down
  95. bindsym $mod+Shift+Up move up
  96. bindsym $mod+Shift+Right move right
  97. bindsym $mod+Shift+q move scratchpad
  98.  
  99. # show scratchpad
  100. bindsym $mod+q scratchpad show
  101.  
  102. # splits
  103. bindsym $mod+h split h
  104. bindsym $mod+v split v
  105.  
  106. # enter fullscreen mode for the focused container
  107. bindsym $mod+f fullscreen
  108.  
  109. # change container layout (stacked, tabbed, default)
  110. bindsym $mod+s layout stacking
  111. bindsym $mod+w layout tabbed
  112. bindsym $mod+e layout default
  113. bindsym $mod+Shift+h layout splith
  114. bindsym $mod+Shift+v layout splitv
  115.  
  116. # toggle tiling / floating
  117. bindsym $mod+Shift+space floating toggle
  118.  
  119. # change focus between tiling / floating windows
  120. bindsym $mod+space focus mode_toggle
  121.  
  122. # focus the parent container
  123. bindsym $mod+u focus parent
  124. bindsym $mod+d focus child
  125.  
  126. # focus previous workspace
  127. bindsym $mod+Tab workspace back_and_forth
  128.  
  129. # toggle logging
  130. bindsym $mod+l shmlog toggle
  131.  
  132. # laptop workspace configuration
  133. workspace "$ws_chat" output LVDS1
  134. workspace "$ws_code" output LVDS1
  135. workspace "$ws_misc" output LVDS1
  136.  
  137. workspace "$ws_web" output HDMI1
  138. workspace "$ws_fm" output HDMI1
  139.  
  140. # desktop workspace configuration
  141. workspace "$ws_chat" output HDMI-0
  142. workspace "$ws_code" output HDMI-0
  143. workspace "$ws_misc" output HDMI-0
  144.  
  145. workspace "$ws_web" output DVI-I-1
  146. workspace "$ws_fm" output DVI-I-1
  147.  
  148. # switch to workspace
  149. bindsym $mod+1 workspace $ws_chat
  150. bindsym $mod+2 workspace $ws_web
  151. bindsym $mod+3 workspace $ws_code
  152. bindsym $mod+4 workspace $ws_misc
  153. bindsym $mod+5 workspace $ws_fm
  154. bindsym $mod+6 workspace 6
  155. bindsym $mod+7 workspace 7
  156. bindsym $mod+8 workspace 8
  157. bindsym $mod+9 workspace 9
  158. bindsym $mod+0 workspace 10
  159. bindsym Ctrl+Mod1+Left workspace prev
  160. bindsym Ctrl+Mod1+Right workspace next
  161.  
  162. # move focused container to workspace
  163. bindsym $mod+Shift+exclam move workspace $ws_chat
  164. bindsym $mod+Shift+at move workspace $ws_web
  165. bindsym $mod+Shift+numbersign move workspace $ws_code
  166. bindsym $mod+Shift+dollar move workspace $ws_misc
  167. bindsym $mod+Shift+percent move workspace $ws_fm
  168. bindsym $mod+Shift+asciicircum move workspace 6
  169. bindsym $mod+Shift+ampersand move workspace 7
  170. bindsym $mod+Shift+asterisk move workspace 8
  171. bindsym $mod+Shift+parenleft move workspace 9
  172. bindsym $mod+Shift+parenright move workspace 10
  173.  
  174. # configure and assign windows to workspaces
  175. assign [instance="Devtools" class="Iceweasel"] $ws_misc
  176. assign [instance="Navigator" class="Iceweasel"] $ws_web
  177. assign [instance="Devtools" class="Firefox"] $ws_misc
  178. assign [instance="Navigator" class="Firefox"] $ws_web
  179. assign [class="Google-chrome" window_role="browser"] $ws_web
  180. assign [class="Google-chrome" window_role="pop-up" title="Developer Tools"] $ws_misc
  181. assign [class="Icedove"] $ws_misc
  182. assign [class="Pidgin"] $ws_chat
  183. assign [class="Empathy"] $ws_chat
  184. assign [class="Xchat"] $ws_chat
  185. assign [title="Music Player"] $ws_chat
  186. assign [class="Audacious"] $ws_chat
  187. assign [class="Gimp"] $ws_misc
  188. assign [class="Sunflower"] $ws_fm
  189. assign [class="Steam"] $ws_misc
  190.  
  191. for_window [instance="Navigator" class="Iceweasel"] border none
  192. for_window [instance="Navigator" class="Firefox"] border none
  193. for_window [class="Google-chrome" window_role="browser"] border none
  194.  
  195. for_window [class="Xchat"] border pixel 2
  196. for_window [title="Music Player"] border pixel 2
  197. for_window [class="Audacious"] border pixel 2
  198. for_window [class="Gvim"] border pixel 2
  199. for_window [class="Sunflower" title="Viewer"] floating enable
  200. for_window [class="Update-manager"] floating enable
  201. for_window [class="Steam"] border pixel 2
  202. for_window [class="Steam"] floating enable
  203. for_window [class="Steam" title="^Steam$"] floating disable
  204. for_window [class="Gnome-terminal" title="Scratchpad"] move scratchpad
  205. for_window [class="Gnome-terminal" title="Scratchpad"] border pixel 2
  206. for_window [class="Icedove" window_role="EMailBrowser"] floating enable
  207. for_window [class="Icedove" window_role="Msgcompose"] floating enable
  208. for_window [class="Icedove" window_role="CompEditor"] floating enable
  209.  
  210. # configure individual windows
  211. for_window [class="Pidgin" title="Buddy List"] resize shrink width 100 px or 35 ppt
  212.  
  213. # resize window (you can also use the mouse for that)
  214. bindsym $mod+r mode "resize"
  215.  
  216. mode "resize" {
  217. bindsym Left resize grow left 10 px or 10 ppt
  218. bindsym Shift+Left resize shrink left 10 px or 10 ppt
  219.  
  220. bindsym Down resize grow down 10 px or 10 ppt
  221. bindsym Shift+Down resize shrink down 10 px or 10 ppt
  222.  
  223. bindsym Up resize grow up 10 px or 10 ppt
  224. bindsym Shift+Up resize shrink up 10 px or 10 ppt
  225.  
  226. bindsym Right resize grow right 10 px or 10 ppt
  227. bindsym Shift+Right resize shrink right 10 px or 10 ppt
  228.  
  229. # back to normal: Enter or Escape
  230. bindsym Return mode "default"
  231. bindsym Escape mode "default"
  232. }
  233.  
  234. bar {
  235. # bar operating mode, either dock or hide
  236. mode dock
  237. hidden_state hide
  238.  
  239. # bas position
  240. position bottom
  241.  
  242. # system tray position
  243. tray_output primary
  244.  
  245. # we use conky for status bar
  246. status_command i3status --config ~/.i3/status.conf
  247.  
  248. font -misc-fixed-medium-*-normal-*-14-*-*-*-*-*-iso10646-*
  249. font pango:M+1m 11
  250.  
  251. colors {
  252. # lime theme
  253. statusline $normal_fg
  254. background $inactive_bg
  255.  
  256. # other themes
  257. focused_workspace $focused_fg $focused_bg $focused_fg
  258. active_workspace $focused_bg $focused_bg $focused_fg
  259. inactive_workspace $inactive_bg $inactive_bg $inactive_fg
  260. urgent_workspace $urgent_fg $urgent_bg $urgent_fg
  261.  
  262. # blue theme
  263. focused_workspace $focused_bg $focused_bg $focused_fg
  264. active_workspace $inactive_bg $inactive_bg $focused_fg
  265. inactive_workspace $inactive_bg $inactive_bg $inactive_fg
  266. urgent_workspace $urgent_bg $urgent_bg $urgent_fg
  267.  
  268. }
  269. }
  270.  
  271. exec pa-applet
  272. exec bluetooth-applet
  273. exec --no-startup-id ~/.mouse.sh
  274. exec --no-startup-id sleep 5; xchat
  275. exec gnome-terminal -t "Scratchpad"
  276. exec pidgin
  277. exec google-chrome
  278. exec --no-startup-id sleep 10; xmodmap ~/.i3/xmodmap
  279. exec --no-startup-id sleep 11; xcape -e 'Control_L=Escape'
  280. exec nitrogen --restore
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement