Guest User

.i3/config

a guest
Nov 2nd, 2016
47
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 11.65 KB | None | 0 0
  1. #######################################
  2. # _____ ____ #
  3. # |_ _||___ \ #
  4. # | | __) |__ __ _ __ ___ #
  5. # | | |__ < \ \ /\ / /| '_ ` _ \ #
  6. # _| |_ ___) | \ V V / | | | | | | #
  7. # |_____||____/ \_/\_/ |_| |_| |_| #
  8. # #
  9. #######################################
  10.  
  11. #############################################
  12. # General configurations #
  13. #############################################
  14.  
  15. # font
  16. set $font "pango:Droid Sans Mono for Powerline 10"
  17. font $font
  18.  
  19. # floating modifier
  20. # mod1 = Alt (xmodmap to show)
  21. # mod4 = Winkey (xmodmap to show)
  22. set $mod mod4
  23. floating_modifier $mod
  24.  
  25. # remove window decorations
  26. #new_window pixel
  27.  
  28. # focus follows mouse
  29. focus_follows_mouse yes
  30.  
  31. #gaps
  32. gaps inner 13
  33. gaps outer 5
  34. #
  35. ##border
  36. new_window pixel 3
  37.  
  38.  
  39. #############################################
  40. # Script Section #
  41. #############################################
  42.  
  43. #
  44. # "xev" and "showkeys" can be usefull to determine the keycodes.
  45. #
  46.  
  47. # sound softkeys management
  48. bindsym XF86AudioRaiseVolume exec ~/.i3/util/volnotid.sh up
  49. bindsym XF86AudioLowerVolume exec ~/.i3/util/volnotid.sh down
  50. bindsym XF86AudioMute exec ~/.i3/util/volnotid.sh mute
  51.  
  52. # display brightness management
  53. bindsym XF86MonBrightnessUp exec "xbacklight +10"
  54. bindsym XF86MonBrightnessDown exec "xbacklight -10"
  55.  
  56. # webcam
  57. #
  58. #bindym XF86WebCam exec /bin/cheese
  59.  
  60. #
  61. # expulsar cd
  62. #
  63. #
  64. bindsym XF86Eject exec --no-startup-id eject
  65.  
  66.  
  67. #
  68. # Reproductor multimedia
  69. #
  70. bindsym XF86AudioPlay exec --no-startup-id mpc toggle
  71. bindsym XF86AudioPrev exec --no-startup-id mpc prev
  72. bindsym XF86AudioNext exec --no-startup-id mpc next
  73.  
  74. # lenovo Key wifi-menu
  75. #bindsym XF86Launch1 exec urxvt -e sh -c "sudo wifi-menu wlp3s0"
  76.  
  77. # jauth two factor authenticator
  78. #bindsym $mod+F1 exec /opt/JAuth/authenticator.sh google
  79. #bindsym $mod+F2 exec /opt/JAuth/authenticator.sh facebook
  80. #bindsym $mod+F3 exec /opt/JAuth/authenticator.sh dropbox
  81.  
  82. # start dmenu-launcher
  83. bindsym $mod+d exec ~/.i3/util/i3dmenu-wrapper.sh
  84.  
  85. # lock i3 with i3lock
  86. #bindsym $mod+Shift+x exec ~/.i3/util/i3blur.py && systemctl suspend
  87.  
  88. #Binding para usar un script para apagar
  89. set $mode_system System (l) lock, (e) logout, (s) suspend, (h) hibernate, (r) reboot, (Shift+s) shutdown
  90. mode "$mode_system" {
  91. bindsym l exec ~/.i3/util/i3blur.py, mode "default"
  92. bindsym e exec --no-startup-id i3exit logout, mode "default"
  93. bindsym s exec ~/.i3/util/i3blur.py && systemctl suspend, mode "default"
  94. bindsym h exec ~/.i3/util/i3blur.py && systemctl hibernate, mode "default"
  95. bindsym r exec --no-startup-id i3exit reboot, mode "default"
  96. bindsym Shift+s exec --no-startup-id i3exit shutdown, mode "default"
  97.  
  98. # back to normal: Enter or Escape
  99. bindsym Return mode "default"
  100. bindsym Escape mode "default"
  101. }
  102. bindsym $mod+Delete mode "$mode_system"
  103.  
  104.  
  105.  
  106.  
  107. #############################################
  108. # Keymaps #
  109. #############################################
  110.  
  111. # start terminal
  112. bindsym $mod+Return exec --no-startup-id i3-sensible-terminal
  113.  
  114.  
  115. # kill focused window
  116. bindsym $mod+Shift+q kill
  117.  
  118. # change focus vim Style
  119. bindsym $mod+h focus left
  120. bindsym $mod+l focus right
  121. bindsym $mod+j focus up
  122. bindsym $mod+k focus down
  123.  
  124. # alternatively, you can use the cursor keys
  125. #
  126. bindsym $mod+Left focus left
  127. bindsym $mod+Right focus right
  128. bindsym $mod+Up focus up
  129. bindsym $mod+Down focus down
  130.  
  131.  
  132.  
  133. # move focused window vim Style
  134. bindsym $mod+Shift+h move left
  135. bindsym $mod+Shift+l move right
  136. bindsym $mod+Shift+j move up
  137. bindsym $mod+Shift+k move down
  138.  
  139. # alternatively, you can use the cursor keys:
  140. bindsym $mod+Shift+Left move left
  141. bindsym $mod+Shift+Down move down
  142. bindsym $mod+Shift+Up move up
  143. bindsym $mod+Shift+Right move right
  144.  
  145. # split in horizontal orientation
  146. bindsym $mod+v split h
  147.  
  148. # split in vertical orientation
  149. bindsym $mod+c split v
  150.  
  151. # enter fullscreen mode for the focused container
  152. bindsym $mod+f fullscreen
  153.  
  154. # change container layout (stacked, tabbed, toggle split)
  155. bindsym $mod+s layout stacking
  156. bindsym $mod+w layout tabbed
  157. bindsym $mod+e layout toggle split
  158.  
  159. # toggle tiling / floating
  160. bindsym $mod+Shift+space floating toggle
  161.  
  162. # change focus between tiling / floating windows
  163. bindsym $mod+space focus mode_toggle
  164.  
  165. # focus the parent container
  166. bindsym $mod+a focus parent
  167.  
  168. # reload the configuration file
  169. bindsym $mod+Shift+c reload
  170.  
  171. # restart i3 inplace
  172. bindsym $mod+Shift+r restart
  173.  
  174. # exit i3
  175. bindsym $mod+Shift+e exec "i3-nagbar -t warning -m 'Exit i3?' -b 'Yes' 'i3-msg exit'"
  176.  
  177. # enter the resize mode
  178. bindsym $mod+r mode "resize"
  179.  
  180. # scratchpad
  181. bindsym $mod+y scratchpad show
  182. bindsym $mod+x move scratchpad
  183.  
  184. #############################################
  185. # Workspace & Tags #
  186. #############################################
  187.  
  188. # name for the workspaces
  189. set $tag1 "Terminal"
  190. set $tag2 "Internet"
  191. set $tag3 "LaTeX"
  192. set $tag4 "Musica"
  193.  
  194. # switch to workspace
  195. bindsym $mod+1 workspace $tag1
  196. bindsym $mod+2 workspace $tag2
  197. bindsym $mod+3 workspace $tag3
  198. bindsym $mod+4 workspace $tag4
  199. bindsym $mod+5 workspace 5
  200. bindsym $mod+6 workspace 6
  201. bindsym $mod+7 workspace 7
  202. bindsym $mod+8 workspace 8
  203. bindsym $mod+9 workspace 9
  204. bindsym $mod+0 workspace 10
  205.  
  206. # move focused container to workspace
  207. bindsym $mod+Shift+1 move container to workspace $tag1
  208. bindsym $mod+Shift+2 move container to workspace $tag2
  209. bindsym $mod+Shift+3 move container to workspace $tag3
  210. bindsym $mod+Shift+4 move container to workspace $tag4
  211. bindsym $mod+Shift+5 move container to workspace 5
  212. bindsym $mod+Shift+6 move container to workspace 6
  213. bindsym $mod+Shift+7 move container to workspace 7
  214. bindsym $mod+Shift+8 move container to workspace 8
  215. bindsym $mod+Shift+9 move container to workspace 9
  216. bindsym $mod+Shift+0 move container to workspace 10
  217.  
  218. #############################################
  219. # Resize handling #
  220. #############################################
  221.  
  222. mode "resize" {
  223. # bindings to resize
  224. bindsym h resize shrink width 10 px or 10 ppt
  225. bindsym j resize grow height 10 px or 10 ppt
  226. bindsym k resize shrink height 10 px or 10 ppt
  227. bindsym l resize grow width 10 px or 10 ppt
  228.  
  229. # back to normal
  230. bindsym Return mode "default"
  231. bindsym Escape mode "default"
  232. }
  233.  
  234. #############################################
  235. # Colors #
  236. #############################################
  237.  
  238. # Darkbrown colorscheme
  239. set $DARKBROWN #402e2e
  240. set $LIGHTBROWN #978965
  241. set $DARKGREY #1f1f1f
  242. set $DARKRED #9b0e0e
  243.  
  244. # Solarized colorscheme
  245. set $BACKGROUND #002b36
  246. set $FOREGROUND #93a1a1
  247. set $LIGHTGREY #dc322f
  248. set $GREEN #859900
  249. set $BROWN #b58900
  250. set $BLUE #268bd2
  251. set $VIOLET #6c71c4
  252. set $MAGENTA #2aa198
  253. set $WHITE #fdf6e3
  254.  
  255. client.background #ffffff
  256.  
  257. # Darkbrown colorscheme
  258. # name #border #background #text #indicator #child_border
  259. #client.focused $DARKBROWN $LIGHTBROWN $DARKBROWN $LIGHTBROWN $DARKBROWN
  260. #client.unfocused $DARKBROWN $DARKBROWN $LIGHTBROWN $LIGHTBROWN $DARKBROWN
  261. #client.focused_inactive $DARKBROWN $DARKBROWN $LIGHTBROWN $LIGHTBROWN $DARKBROWN
  262. #client.urgent $DARKBROWN $DARKBROWN $LIGHTBROWN $LIGHTBROWN $DARKBROWN
  263.  
  264. # Solarized colorscheme
  265. # name #border #background #text #indicator #child_border
  266. client.focused $MAGENTA $FOREGROUND $FOREGROUND $GREEN $MAGENTA
  267. client.unfocused $LIGHTGREY $BACKGROUND $BACKGROUND $GREEN $BACKGROUND
  268. client.focused_inactive $LIGHTGREY $BACKGROUND $BACKGROUND $GREEN $BACKGROUND
  269. client.urgent $LIGHTGREY $BACKGROUND $BACKGROUND $GREEN $BACKGROUND
  270.  
  271. #############################################
  272. # i3-bar #
  273. #############################################
  274.  
  275. bar {
  276. position top
  277. # font $font
  278. i3bar_command /usr/bin/i3bar
  279. status_command i3status -c ~/.i3/i3status.conf
  280. separator_symbol ".::"
  281.  
  282. # Darkbrown colorscheme
  283. # colors {
  284. # statusline $LIGHTBROWN
  285. # background $DARKGREY
  286. # separator $DARKRED
  287. #
  288. # # name #border #bg #text
  289. # focused_workspace $LIGHTBROWN $DARKBROWN $LIGHTBROWN
  290. # active_workspace $DARKBROWN $DARKBROWN $LIGHTBROWN
  291. # inactive_workspace $DARKBROWN $DARKBROWN $LIGHTBROWN
  292. # urgent_workspace $DARKBROWN $DARKBROWN $LIGHTBROWN
  293. # }
  294.  
  295. # Solarized colorscheme
  296. colors {
  297. statusline $GREEN
  298. background $BACKGROUND
  299. separator $MAGENTA
  300.  
  301. # name #border #bg #text
  302. focused_workspace $MAGENTA $BACKGROUND $GREEN
  303. active_workspace $BACKGROUND $BACKGROUND $GREEN
  304. inactive_workspace $BACKGROUND $BACKGROUND $GREEN
  305. urgent_workspace $BACKGROUND $BACKGROUND $GREEN
  306. }
  307. }
  308.  
  309. #############################################
  310. # specific windows #
  311. #############################################
  312.  
  313. # always floating
  314. for_window [class="Thunar"] floating enable
  315. for_window [class="Nautilus"] floating enable
  316. for_window [class="GParted"] floating enable
  317. for_window [class="Gedit"] floating enable
  318. for_window [class="Evince"] floating enable
  319. #for_window [class="Cutegram"] floating enable
  320. for_window [class="teamspeak3"] floating enable
  321. for_window [class="rhythmbox"] floating enable
  322. for_window [class="LibreOffice"] floating enable
  323. for_window [class="JAuth"] floating enable
  324. for_window [class="plecs"] floating enable
  325.  
  326. # 0px Border
  327. for_window [class="chrome"] border none
  328. for_window [class="Firefox"] border none
  329.  
  330. # 1px Border
  331. for_window [class="URxvt" ] border 1pixel
  332.  
  333. #############################################
  334. # auto start with i3 #
  335. #############################################
  336.  
  337. # terminal daemon
  338. exec --no-startup-id urxvtd -f
  339.  
  340. # less eye pain
  341. exec --no-startup-id redshift-gtk
  342. exec --no-startup-id compton -cCGb
  343.  
  344. # no beep!
  345. exec --no-startup-id xset b off
  346.  
  347. # set dpi for my monitor
  348. #exec --no-startup-id xrandr --dpi 81
  349.  
  350. # set mouse accel
  351. #exec --no-startup-id xset m 1/4 1
  352.  
  353. # volnoti volume changer
  354. exec --no-startup-id volnoti
  355.  
  356. # numlock on by default
  357. #exec --no-startup-id numlockx on
  358.  
  359. # wallpapers
  360. exec --no-startup-id ~/.i3/util/wallpapers.sh
  361.  
  362. # archlinux update notifier
  363. #exec --no-startup-id aarchup
  364.  
  365. # telegram
  366. exec cutegram
  367.  
  368. # dropbox daemon
  369. exec dropbox start
  370.  
  371. # MPD
  372. exec /usr/bin/mpd
Advertisement
Add Comment
Please, Sign In to add comment