Alexinfinito

config

Jun 22nd, 2016
123
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 14.01 KB | None | 0 0
  1. ##======================================================================================
  2. ##======================================================================================
  3.  
  4. set $mod Mod4
  5.  
  6. ##======================================================================================
  7. ##======================================================================================
  8. #Font
  9.  
  10. font pango: Liberation Sans Bold 8
  11.  
  12. ##======================================================================================
  13. ##======================================================================================
  14. ### Theme ###
  15.  
  16.  
  17. # class border backgr. text indicator
  18. client.focused #DDDDDD #D42725 #000000 #ffffff
  19. client.focused_inactive #333333 #222222 #ffffff #888888
  20. client.unfocused #333333 #222222 #888888 #888888
  21. client.urgent #222222 #e86700 #ffffff #e86700
  22.  
  23. ### Borders ###
  24. new_window pixel 5
  25. new_float normal 5
  26.  
  27. focus_follows_mouse no
  28.  
  29. ##======================================================================================
  30. ##======================================================================================
  31.  
  32. # Use Mouse+$mod to drag floating windows to their wanted position
  33. floating_modifier $mod
  34.  
  35.  
  36. ##======================================================================================
  37. ##======================================================================================
  38.  
  39. #i3 Shortcut
  40.  
  41. #Termite
  42. bindsym $mod+Return exec urxvt
  43. bindsym $mod+b exec --no-startup-id thunar
  44.  
  45. exec --no-startup-id xfce4-power-manager
  46. exec --no-startup-id nitrogen --restore
  47. exec --no-startup-id compton
  48. exec --no-startup-id which connman-notify && connman-notify &
  49. exec --no-startup-id spotify
  50. exec --no-startup-id dunst
  51. exec --no-startup-id megasync
  52. exec --no-startup-id telegram-desktop
  53. exec --no-startup-id notify-desktop
  54. exec --no-startup-id notify-send
  55. exec --no-startup-id xscreensaver --nosplash
  56. #exec_always ~/.config/i3/i3-autoname-workspaces.py
  57.  
  58. #wallpaper
  59. exec --no-startup-id feh --bg-scale /home/sombra/Imagens/wallhaven-241495.png
  60.  
  61. #Oblogout
  62. bindsym --release Menu exec --no-startup-id oblogout
  63.  
  64. # ncm
  65. bindsym XF86AudioPlay exec ncmpcpp toggle
  66. bindsym XF86AudioStop exec ncmpcpp stop
  67. bindsym XF86AudioPrev exec ncmpcpp prev
  68. bindsym XF86AudioNext exec ncmpcpp next
  69.  
  70. #volume
  71. bindsym XF86AudioRaiseVolume exec amixer -q sset Master 5%+ unmute
  72. bindsym XF86AudioLowerVolume exec amixer -q sset Master 5%- unmute
  73. bindsym XF86AudioMute exec amixer -q sset Master toggle
  74.  
  75. # Sreen brightness controls
  76. bindsym XF86MonBrightnessUp exec xbacklight -inc 20 # increase screen brightness
  77. bindsym XF86MonBrightnessDown exec xbacklight -dec 20 # decrease screen brightness
  78.  
  79. #Print
  80. bindsym --release Print exec --no-startup-id scrot %Y-%m-%d-%T.png -e 'mv $f ~/Imagens/screenshot'
  81. bindsym --release Shift+Print exec "scrot -s '/home/sombra/Imagens/screenshot/%s_%H%M_%d%m%Y_$wx$h.png'"
  82. bindsym --release $mod+Shift+Print exec "scrot -u -d 4 '/home/sombra/Imagens/screenshot/%s_%H%M_%d%m%Y_$wx$h.png'"
  83.  
  84. ##======================================================================================
  85. ##======================================================================================
  86.  
  87. # kill focused window
  88. bindsym $mod+Shift+q kill
  89.  
  90. ##======================================================================================
  91. ##======================================================================================
  92.  
  93. bindsym $mod+d exec rofi -show run -font "snap 10" -fg "#505050" -bg "#ff0000" -hlfg "#ffb964" -hlbg "#ff0000" -o 85
  94. # There also is the (new) i3-dmenu-desktop which only displays applications
  95. # shipping a .desktop file. It is a wrapper around dmenu, so you need that
  96. # installed.
  97. # bindsym $mod+d exec i3-dmenu-desktop --dmenu="/usr/bin/dmenu -b -i -l 0 -o 0.8 -fn 'xft:FontAwesome:pixelsize=10' -nb '#191919' -nf '#9ac0cd' -sb '#191919' -sf '#bf3f34' -p 'Menu'"
  98.  
  99. ##======================================================================================
  100. ##======================================================================================
  101.  
  102. # Floating window size
  103. floating_minimum_size 100 x 100
  104. floating_maximum_size 1020 x 880
  105. ##======================================================================================
  106. ##======================================================================================
  107. # untitled windows
  108. new_window 1pixel
  109. new_float 1pixel
  110.  
  111. for_window [class="^.*"] border pixel 1
  112.  
  113. # remove border for notification
  114. for_window [class="notify"] border none
  115. ##======================================================================================
  116. ##======================================================================================
  117. # Change focus
  118.  
  119. bindsym $mod+j focus left
  120. bindsym $mod+k focus down
  121. bindsym $mod+l focus up
  122. bindsym $mod+semicolon focus right
  123.  
  124.  
  125. ##======================================================================================
  126. ##======================================================================================
  127.  
  128. # alternatively, you can use the cursor keys:
  129. bindsym $mod+Left focus left
  130. bindsym $mod+Down focus down
  131. bindsym $mod+Up focus up
  132. bindsym $mod+Right focus right
  133.  
  134. ##======================================================================================
  135. ##======================================================================================
  136.  
  137. # move focused window
  138. bindsym $mod+Shift+j move left
  139. bindsym $mod+Shift+k move down
  140. bindsym $mod+Shift+l move up
  141. bindsym $mod+Shift+semicolon move right
  142.  
  143. ##======================================================================================
  144. ##======================================================================================
  145.  
  146. # alternatively, you can use the cursor keys:
  147. bindsym $mod+Shift+Left move left
  148. bindsym $mod+Shift+Down move down
  149. bindsym $mod+Shift+Up move up
  150. bindsym $mod+Shift+Right move right
  151.  
  152. ##======================================================================================
  153. ##======================================================================================
  154.  
  155. # split in horizontal orientation
  156. bindsym $mod+h split h
  157.  
  158. ##======================================================================================
  159. ##======================================================================================
  160.  
  161. # split in vertical orientation
  162. bindsym $mod+v split v
  163.  
  164. ##======================================================================================
  165. ##======================================================================================
  166.  
  167. # enter fullscreen mode for the focused container
  168. bindsym $mod+f fullscreen
  169.  
  170. ##======================================================================================
  171. ##======================================================================================
  172.  
  173. # change container layout (stacked, tabbed, toggle split)
  174. bindsym $mod+s layout stacking
  175. bindsym $mod+w layout tabbed
  176. bindsym $mod+e layout toggle split
  177.  
  178. ##======================================================================================
  179. ##======================================================================================
  180.  
  181. # toggle tiling / floating
  182. bindsym $mod+Shift+space floating toggle
  183.  
  184. ##======================================================================================
  185. ##======================================================================================
  186.  
  187. # change focus between tiling / floating windows
  188. bindsym $mod+space focus mode_toggle
  189.  
  190. ##======================================================================================
  191. ##======================================================================================
  192.  
  193. # focus the parent container
  194. bindsym $mod+a focus parent
  195.  
  196. ##======================================================================================
  197. ##======================================================================================
  198. ### Cycle Through Workspaces ### {{{
  199. ## Added for touchegg
  200. bindsym $mod+u workspace prev
  201. bindsym $mod+o workspace next
  202. ### End Cycle Through Workspaces ### }}}
  203. ##======================================================================================
  204. ##======================================================================================
  205.  
  206. # switch to workspace
  207. bindsym $mod+1 workspace $WS1
  208. bindsym $mod+2 workspace $WS2
  209. bindsym $mod+3 workspace $WS3
  210. bindsym $mod+4 workspace $WS4
  211. bindsym $mod+5 workspace $WS5
  212. bindsym $mod+6 workspace $WS6
  213. bindsym $mod+7 workspace $WS7
  214. bindsym $mod+8 workspace $WS8
  215. bindsym $mod+9 workspace $WS9
  216. bindsym $mod+0 workspace $WS0
  217. ##======================================================================================
  218. ##======================================================================================
  219.  
  220. # move focused container to workspace
  221. bindsym $mod+Shift+1 move container to workspace $WS1
  222. bindsym $mod+Shift+2 move container to workspace $WS2
  223. bindsym $mod+Shift+3 move container to workspace $WS3
  224. bindsym $mod+Shift+4 move container to workspace $WS4
  225. bindsym $mod+Shift+5 move container to workspace $WS5
  226. bindsym $mod+Shift+6 move container to workspace $WS6
  227. bindsym $mod+Shift+7 move container to workspace $WS7
  228. bindsym $mod+Shift+8 move container to workspace $WS8
  229. bindsym $mod+Shift+9 move container to workspace $WS9
  230. bindsym $mod+Shift+0 move container to workspace $WS0
  231.  
  232. ##======================================================================================
  233. ##======================================================================================
  234.  
  235. # Assign workspace names and order
  236. set $WS1 -
  237. set $WS2 -  Console
  238. set $WS3 -
  239. set $WS4 -
  240. set $WS5  Virutalbox
  241. set $WS6  Editor
  242. set $WS7 7❼ ☘
  243. set $WS8 8❽ 
  244. set $WS9 9❾ 
  245. set $WS0 0:
  246.  
  247. ##======================================================================================
  248. ##======================================================================================
  249.  
  250. # Assign applications to specific WS
  251.  
  252. assign [class="Firefox"] $WS3  Firefox
  253. assign [class="Thunar"] $WS4  Thunar
  254. assign [class="google-chrome"] $WS1  Chrome
  255.  
  256.  
  257. #fluante
  258. for_window [class="(?i)Virtualbox"] floating enable
  259. for_window [class="(?i)Google-chrome"] floating enable
  260. for_window [class="(?i)mplayer2"] floating enable
  261. for_window [class="(?i)feh"] floating enable
  262. for_window [class="Lxappearance"] floating enable sticky enable border normal
  263. for_window [class="(?i)nitrogen"] floating enable
  264. ##======================================================================================
  265. ##======================================================================================
  266.  
  267. # reload the configuration file
  268. bindsym $mod+Shift+c reload
  269.  
  270. ##======================================================================================
  271. ##======================================================================================
  272.  
  273. # restart i3 inplace (preserves your layout/session, can be used to upgrade i3)
  274. bindsym $mod+Shift+r restart
  275.  
  276. ##======================================================================================
  277. ##======================================================================================
  278.  
  279. # power #
  280.  
  281. set $mode_system State (l) lock, (e) logout, (s) suspend, (h) hibernate, (r) reboot, (Shift+s) shutdown
  282. mode "$mode_system" {
  283. bindsym l exec --no-startup-id /home/sombra/.config/i3/i3exit lock, mode "default"
  284. bindsym e exec --no-startup-id /home/sombra/.config/i3/i3exit logout, mode "default"
  285. bindsym s exec --no-startup-id /home/sombra/.config/i3/i3exit suspend, mode "default"
  286. bindsym h exec --no-startup-id /home/sombra/.config/i3/i3exit hibernate, mode "default"
  287. bindsym r exec --no-startup-id /home/sombra/.config/i3/i3exit reboot, mode "default"
  288. bindsym Shift+s exec --no-startup-id /home/sombra/.config/i3/i3exit shutdown, mode "default"
  289. # back to normal: Enter or Escape
  290. bindsym Return mode "default"
  291. bindsym Escape mode "default"
  292. }
  293. bindsym $mod+m mode "$mode_system"
  294.  
  295. ##======================================================================================
  296. ##======================================================================================
  297.  
  298. # resize window (you can also use the mouse for that)
  299. mode "resize" {
  300. # These bindings trigger as soon as you enter the resize mode
  301.  
  302. # Pressing left will shrink the window’s width.
  303. # Pressing right will grow the window’s width.
  304. # Pressing up will shrink the window’s height.
  305. # Pressing down will grow the window’s height.
  306. bindsym j resize shrink width 10 px or 10 ppt
  307. bindsym k resize grow height 10 px or 10 ppt
  308. bindsym l resize shrink height 10 px or 10 ppt
  309. bindsym semicolon resize grow width 10 px or 10 ppt
  310.  
  311. # same bindings, but for the arrow keys
  312. bindsym Left resize shrink width 10 px or 10 ppt
  313. bindsym Down resize grow height 10 px or 10 ppt
  314. bindsym Up resize shrink height 10 px or 10 ppt
  315. bindsym Right resize grow width 10 px or 10 ppt
  316.  
  317. # back to normal: Enter or Escape
  318. bindsym Return mode "default"
  319. bindsym Escape mode "default"
  320. }
  321.  
  322. bindsym $mod+r mode "resize"
  323.  
  324. # Gaps between windows
  325.  
  326. gaps inner 5
  327. gaps outer 0
  328. smart_gaps on
  329. smart_borders on
  330.  
  331. ##======================================================================================
  332. ##======================================================================================
  333. bar {
  334. status_command i3status
  335. #mode hide
  336. hidden_state hide
  337. position top
  338. colors {
  339. background #E7E8EB
  340. statusline #353945
  341. separator #656565
  342.  
  343. # Class Border BG Text
  344. focused_workspace #E7E8EB #E7E8EB #B52126
  345. active_workspace #E7E8EB #5f676a #ffffff
  346. inactive_workspace #E7E8EB #E7E8EB #353945
  347. urgent_workspace #2f343a #e86700 #ffffff
  348. }
  349. }
  350. ##======================================================================================
  351. ##======================================================================================
Advertisement
Add Comment
Please, Sign In to add comment