Advertisement
Dijit

i3.conf

Oct 5th, 2017
223
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 10.04 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. # Use Super as the modkey
  6. #set $mod Mod3
  7. set $mod Mod4
  8.  
  9. # Mouse settings
  10.  
  11. # Use Mouse+$mod to drag floating windows to their wanted position
  12. floating_modifier $mod
  13.  
  14. # Do not autofocus the window the mouse may be pointing at
  15. focus_follows_mouse yes
  16.  
  17. # Gaps
  18. gaps inner 8
  19. gaps outer 10
  20. smart_gaps on
  21. # Behavioural keybindings
  22.  
  23. # kill focused window
  24. bindsym $mod+Shift+q kill
  25.  
  26. bindsym XF86AudioStop exec mpc -h /var/mpd.mpd/socket stop
  27. bindsym XF86AudioPlay exec mpc -h /var/mpd.mpd/socket toggle
  28. bindsym XF86AudioPrev exec mpc -h /var/mpd.mpd/socket prev
  29. bindsym XF86AudioNext exec mpc -h /var/mpd.mpd/socket next
  30.  
  31. # change focus
  32. bindsym $mod+h focus left
  33. bindsym $mod+j focus down
  34. bindsym $mod+k focus up
  35. bindsym $mod+l focus right
  36.  
  37. # alternatively, you can use the cursor keys:
  38. bindsym $mod+Left focus left
  39. bindsym $mod+Down focus down
  40. bindsym $mod+Up focus up
  41. bindsym $mod+Right focus right
  42.  
  43. # move focused window
  44. bindsym $mod+Shift+h move left
  45. bindsym $mod+Shift+j move down
  46. bindsym $mod+Shift+k move up
  47. bindsym $mod+Shift+l move right
  48.  
  49. # alternatively, you can use the cursor keys:
  50. bindsym $mod+Shift+Left move left
  51. bindsym $mod+Shift+Down move down
  52. bindsym $mod+Shift+Up move up
  53. bindsym $mod+Shift+Right move right
  54.  
  55. # split in horizontal orientation
  56. bindsym $mod+backslash split h
  57.  
  58. # split in vertical orientation
  59. bindsym $mod+minus split v
  60.  
  61. # enter fullscreen mode for the focused container
  62. bindsym $mod+f fullscreen
  63. bindsym $mod+shift+f fullscreen toggle global
  64.  
  65. # change container layout (stacked, tabbed, toggle split)
  66. bindsym $mod+s layout stacking
  67. bindsym $mod+w layout tabbed
  68. bindsym $mod+e layout toggle split
  69.  
  70. # toggle tiling / floating
  71. bindsym $mod+Shift+p floating toggle
  72.  
  73. # change focus between tiling / floating windows
  74. bindsym $mod+p focus mode_toggle
  75.  
  76. # focus the parent container
  77. bindsym $mod+a focus parent
  78.  
  79. # focus the child container
  80. #bindsym $mod+d focus child
  81.  
  82. # switch to workspace
  83. bindsym $mod+1 workspace 1
  84. bindsym $mod+2 workspace 2
  85. bindsym $mod+3 workspace 3
  86. bindsym $mod+4 workspace 4
  87. bindsym $mod+5 workspace 5
  88. bindsym $mod+6 workspace 6
  89. bindsym $mod+7 workspace 7
  90. bindsym $mod+8 workspace 8
  91. bindsym $mod+9 workspace 9
  92. bindsym $mod+0 workspace 10
  93.  
  94. # move focused container to workspace
  95. bindsym $mod+Shift+1 move container to workspace 1; workspace 1
  96. bindsym $mod+Shift+2 move container to workspace 2; workspace 2
  97. bindsym $mod+Shift+3 move container to workspace 3; workspace 3
  98. bindsym $mod+Shift+4 move container to workspace 4; workspace 4
  99. bindsym $mod+Shift+5 move container to workspace 5; workspace 5
  100. bindsym $mod+Shift+6 move container to workspace 6; workspace 6
  101. bindsym $mod+Shift+7 move container to workspace 7; workspace 7
  102. bindsym $mod+Shift+8 move container to workspace 8; workspace 8
  103. bindsym $mod+Shift+9 move container to workspace 9; workspace 9
  104. bindsym $mod+Shift+0 move container to workspace 10; workspace 10
  105.  
  106. # reload the configuration file
  107. bindsym $mod+Shift+c reload
  108. # restart i3 inplace (preserves your layout/session, can be used to upgrade i3)
  109. bindsym $mod+Shift+r restart
  110.  
  111. # resize window (you can also use the mouse for that)
  112. bindsym $mod+r mode "resize"
  113. mode "resize" {
  114. # These bindings trigger as soon as you enter the resize mode
  115.  
  116. # Pressing left will shrink the window?s width.
  117. # Pressing right will grow the window?s width.
  118. # Pressing up will shrink the window?s height.
  119. # Pressing down will grow the window?s height.
  120. bindsym h resize shrink width 10 px or 10 ppt
  121. bindsym j resize grow height 10 px or 10 ppt
  122. bindsym k resize shrink height 10 px or 10 ppt
  123. bindsym l resize grow width 10 px or 10 ppt
  124.  
  125. # same bindings, but for the arrow keys
  126. bindsym Left resize shrink width 10 px or 10 ppt
  127. bindsym Down resize grow height 10 px or 10 ppt
  128. bindsym Up resize shrink height 10 px or 10 ppt
  129. bindsym Right resize grow width 10 px or 10 ppt
  130.  
  131. # back to normal: Enter or Escape
  132. bindsym Return mode "default"
  133. bindsym Escape mode "default"
  134. }
  135.  
  136. set $bg-color #2f343f
  137. set $inactive-bg-color #2f343f
  138. set $text-color #f3f4f5
  139. set $inactive-text-color #676E7D
  140. set $urgent-bg-color #E53935
  141.  
  142. # Executional keybindings
  143.  
  144. # Starting applications
  145. #bindsym $mod+Return exec i3-sensible-terminal
  146. bindsym $mod+Return exec urxvtc
  147. #bindsym $mod+Return exec urxvt
  148. #bindsym $mod+d exec j4-dmenu-desktop --dmenu="dmenu.xft -i -fn 'DejaVu Sans Mono:size=10' -nb '#333333' -nf '#c7c7c7' -sb '#345fa8' -sf '#deebfe'"
  149. bindsym $mod+b exec x-www-browser
  150. bindsym $mod+Shift+semicolon exec i3-input -P "i3 command: " -f "pango:DejaVu Sans Mono 10"
  151.  
  152. # Leaving the computer
  153. 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'"
  154. bindsym Control+Mod1+l exec "~/bin/lock.sh"
  155.  
  156. # Volume management
  157. #bindsym XF86AudioLowerVolume exec "mixer vol -4"
  158. #bindsym XF86AudioRaiseVolume exec "mixer vol +4"
  159. #bindsym XF86AudioMute exec "mixer vol 0"
  160. set $pa-sink = "alsa_output.pci-0000_00_1f.3.analog-stereo"
  161. bindsym XF86AudioLowerVolume exec "pactl set-sink-volume alsa_output.pci-0000_00_1f.3.analog-stereo -5%"
  162. bindsym XF86AudioRaiseVolume exec "pactl set-sink-volume alsa_output.pci-0000_00_1f.3.analog-stereo +5%"
  163. bindsym XF86AudioMute exec "pactl set-sink-mute alsa_output.pci-0000_00_1f.3.analog-stereo toggle"
  164.  
  165. # Backlight management
  166. bindsym XF86MonBrightnessDown exec "~/bin/brightness.sh down"
  167. bindsym XF86MonBrightnessUp exec "~/bin/brightness.sh up"
  168.  
  169. bindsym --release $mod+Print exec --no-startup-id import /tmp/latest-screenshot.png
  170.  
  171. # Look and feel
  172.  
  173. #font pango:DejaVu Sans Mono 10
  174. #font pango:Humor Sans 10
  175. font pango: InputMono Nerd Font 10
  176. font pango:FontAwesome, DejaVu Sans Mono 10
  177. #font pango: M+ 1m, FontAwesome, Ionicons, 10
  178. #font pango:Iosevka 10
  179. client.focused #9e2185 #c01add #deebfe #8fbfdc
  180. #client.focused #457ee0 #345fa8 #deebfe #8fbfdc
  181. client.focused_inactive #444444 #333333 #c7c7c7 #333333
  182. client.unfocused #444444 #333333 #777777 #333333
  183. client.urgent #c02a2a #902020 #ffffff #902020
  184.  
  185. # Start i3bar to display a workspace bar (plus the system information i3status
  186. # finds out, if available)
  187. bar {
  188. # First font is icon font, second is text font
  189. #font pango:Iosevka Term, Icons 10
  190. #font pango:DejaVu Sans Mono 10
  191. font pango: InputMono Nerd Font 10
  192. #font pango:FontAwesome, Input Mono 10
  193. #font pango:FontAwesome, DejaVu Sans Mono 10
  194. status_command ~/.i3/status_wrapper.sh
  195. colors {
  196. background #000000
  197. statusline #c7c7c7
  198. separator #777777
  199.  
  200. focused_workspace #9e2185 #c01add #deebfe
  201. #focused_workspace #457ee0 #345fa8 #deebfe
  202. active_workspace #444444 #333333 #c7c7c7
  203. inactive_workspace #444444 #333333 #777777
  204. urgent_workspace #c02a2a #902020 #ffffff
  205. }
  206. }
  207.  
  208. # Autostart
  209.  
  210. # Quake-style terminal
  211. #exec yeahconsole
  212. # Rotating wallpaper
  213. exec --no-startup-id ~/.i3/wallpaper.sh
  214. # Hide unused mouse pointer
  215. exec --no-startup-id unclutter -idle 3 -root
  216. # Keyboard layouts
  217. # Handled by .profile
  218. #exec --no-startup-id setxkbmap -option ctrl:nocaps
  219. # Compositor :: transparency and pretty fading.
  220. exec --no-startup-id compton --config ~/.config/compton.conf -CGb
  221. # Redshift :: makes things more red as the sun sets.
  222. #exec --no-startup-id redshift -c ~/.config/redshift
  223. # Dunst :: Notification daemon.
  224. exec --no-startup-id dunst -conf '~/.config/dunst/dunstrc'
  225.  
  226. # Floating windows
  227. for_window [class="Steam"] floating enable
  228. for_window [title="^FreeRDP"] floating disable
  229. for_window [title="^rdesktop"] floating disable
  230. for_window [title="QA1"] floating disable
  231. for_window [class="Google-chrome"] border none
  232. for_window [title=" - Pentadactyl$"] border none
  233. for_window [title="MPlayer$"] border none
  234. for_window [title="^Mozilla Firefox$"] border none
  235. for_window [class="^qutebrowser$"] border pixel 1
  236. for_window [class="urxvt"] border pixel 1
  237. for_window [class="URxvt"] border pixel 1
  238.  
  239. # Local settings
  240. #bindsym $mod+d exec dmenu_run -p "> " -nb "#2C2C2C" -sb "#2C2C2C"
  241. #bindsym $mod+d exec rofi -show run -lines 3 -eh 2 -fullscreen -padding 250 -opacity "65" -bw 0 -bc "$bg-color" -bg "$bg-color" -fg "$text-color" -hlbg "$bg-color" -hlfg "#9575cd" -font "System San Francisco Display 18" -fake-transparency -fake-background /home/dijit/Pictures/wallpapers/wire_frame_stag.png
  242. bindsym $mod+d exec rofi -show run
  243. #bindsym $mod+d exec rofi -show run -lines 3 -eh 2 -width 100 -padding 450 -opacity "85" -bw 0 -bc "$bg-color" -bg "$bg-color" -fg "$text-color" -hlbg "$bg-color" -hlfg "#9575cd" -font "System San Francisco Display 18"
  244. #bindsym $mod+shift+s exec rofi -show ssh -lines 3 -eh 2 -fullscreen -padding 250 -opacity "65" -bw 0 -bc "#cccccc" -bg "$bg-color" -fg "$text-color" -hlbg "$bg-color" -hlfg "#9575cd" -font "System San Francisco Display 18" -fake-transparency -fake-background /home/dijit/Pictures/wallpapers/wire_frame_stag.png
  245. bindsym $mod+shift+s exec rofi -show ssh -lines 3 -eh 2
  246.  
  247. exec xautolock -time 5 -locker '~/bin/lock.sh' &
  248. #
  249. ## Razer Naga Mouse Bindings:
  250. bindsym KP_End workspace 1
  251. bindsym KP_Down workspace 2
  252. bindsym KP_Next workspace 3
  253. bindsym KP_Left workspace 4
  254. bindsym KP_Begin workspace 5
  255. bindsym KP_Right workspace 6
  256. bindsym KP_Home workspace 7
  257. bindsym KP_Up workspace 8
  258. bindsym KP_Prior workspace 9
  259. bindsym KP_Insert workspace 10
  260. bindsym KP_Subtract workspace 11
  261. bindsym KP_Add workspace 12
  262. bindsym Shift+KP_End move container to workspace 1; workspace 1
  263. bindsym Shift+KP_Down move container to workspace 2; workspace 2
  264. bindsym Shift+KP_Next move container to workspace 3; workspace 3
  265. bindsym Shift+KP_Left move container to workspace 4; workspace 4
  266. bindsym Shift+KP_Begin move container to workspace 5; workspace 5
  267. bindsym Shift+KP_Right move container to workspace 6; workspace 6
  268. bindsym Shift+KP_Home move container to workspace 7; workspace 7
  269. bindsym Shift+KP_Up move container to workspace 8; workspace 8
  270. bindsym Shift+KP_Prior move container to workspace 9; workspace 9
  271. bindsym Shift+KP_Insert move container to workspace 10; workspace 10
  272. bindsym Shift+KP_Subtract move container to workspace 11; workspace 11
  273. bindsym Shift+KP_Add move container to workspace 12; workspace 12
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement