Advertisement
Guest User

i3 config file

a guest
Apr 12th, 2019
287
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 9.63 KB | None | 0 0
  1. # This file has been auto-generated by i3-config-wizard(1).
  2. # It will not be overwritten, so edit it as you like.
  3. #
  4. # Should you change your keyboard layout some time, delete
  5. # this file and re-run i3-config-wizard(1).
  6. #
  7.  
  8. # i3 config file (v4)
  9. #
  10. # Please see http://i3wm.org/docs/userguide.html for a complete reference!
  11.  
  12. set $mod Mod4
  13.  
  14. # Font for window titles. Will also be used by the bar unless a different font
  15. # is used in the bar {} block below.
  16. font pango:monospace 13
  17.  
  18. # thin borders
  19. for_window [class=".*"] border pixel 0
  20. hide_edge_borders both
  21.  
  22. smart_gaps on
  23. smart_borders on
  24. gaps inner 10
  25. gaps outer 10
  26.  
  27. bindsym $mod+g exec ~/dotfiles/scripts/toggle_gaps.sh
  28. #edit gaps mode
  29. #########################################################################
  30. set $mode_gaps Gaps: (o) outer, (i) inner
  31. set $mode_gaps_outer Outer Gaps: +|-|0 (local), Shift + +|-|0 (global)
  32. set $mode_gaps_inner Inner Gaps: +|-|0 (local), Shift + +|-|0 (global)
  33. bindsym $mod+Shift+g mode "$mode_gaps"
  34. mode "$mode_gaps" {
  35. bindsym o mode "$mode_gaps_outer"
  36. bindsym i mode "$mode_gaps_inner"
  37. bindsym Return mode "default"
  38. bindsym Escape mode "default"
  39. }
  40.  
  41. mode "$mode_gaps_inner" {
  42. bindsym plus gaps inner current plus 5
  43. bindsym minus gaps inner current minus 5
  44. bindsym 0 gaps inner current set 0
  45.  
  46. bindsym Shift+plus gaps inner all plus 5
  47. bindsym Shift+minus gaps inner all minus 5
  48. bindsym Shift+0 gaps inner all set 0
  49.  
  50. bindsym Return mode "default"
  51. bindsym Escape mode "default"
  52. }
  53. mode "$mode_gaps_outer" {
  54. bindsym plus gaps outer current plus 5
  55. bindsym minus gaps outer current minus 5
  56. bindsym 0 gaps outer current set 0
  57.  
  58. bindsym Shift+plus gaps outer all plus 5
  59. bindsym Shift+minus gaps outer all minus 5
  60. bindsym Shift+0 gaps outer all set 0
  61.  
  62. bindsym Return mode "default"
  63. bindsym Escape mode "default"
  64. }
  65.  
  66.  
  67. # Before i3 v4.8, we used to recommend this one as the default:
  68. # font -misc-fixed-medium-r-normal--13-120-75-75-C-70-iso10646-1
  69. # The font above is very space-efficient, that is, it looks good, sharp and
  70. # clear in small sizes. However, its unicode glyph coverage is limited, the old
  71. # X core fonts rendering does not support right-to-left and this being a bitmap
  72. # font, it doesn’t scale on retina/hidpi displays.
  73.  
  74. # Use Mouse+$mod to drag floating windows to their wanted position
  75. floating_modifier $mod
  76.  
  77. # start a terminal
  78. bindsym $mod+Return exec termite
  79.  
  80. # kill focused window
  81. bindsym $mod+Shift+q kill
  82.  
  83. # start dmenu (a program launcher)
  84. # bindsym $mod+d exec dmenu_run
  85. # There also is the (new) i3-dmenu-desktop which only displays applications
  86. # shipping a .desktop file. It is a wrapper around dmenu, so you need that
  87. # installed.
  88. bindsym $mod+d exec --no-startup-id i3-dmenu-desktop
  89.  
  90. # change focus
  91. bindsym $mod+j focus left
  92. bindsym $mod+k focus down
  93. bindsym $mod+l focus up
  94. bindsym $mod+ntilde focus right
  95.  
  96. # alternatively, you can use the cursor keys:
  97. bindsym $mod+Left focus left
  98. bindsym $mod+Down focus down
  99. bindsym $mod+Up focus up
  100. bindsym $mod+Right focus right
  101.  
  102. # move focused window
  103. bindsym $mod+Shift+j move left
  104. bindsym $mod+Shift+k move down
  105. bindsym $mod+Shift+l move up
  106. bindsym $mod+Shift+ntilde move right
  107.  
  108. # alternatively, you can use the cursor keys:
  109. bindsym $mod+Shift+Left move left
  110. bindsym $mod+Shift+Down move down
  111. bindsym $mod+Shift+Up move up
  112. bindsym $mod+Shift+Right move right
  113.  
  114. # split in horizontal orientation
  115. bindsym $mod+h split h
  116.  
  117. # split in vertical orientation
  118. bindsym $mod+v split v
  119.  
  120. # enter fullscreen mode for the focused container
  121. bindsym $mod+f fullscreen toggle
  122.  
  123. # change container layout (stacked, tabbed, toggle split)
  124. bindsym $mod+Shift+s layout stacking
  125. bindsym $mod+Shift+w layout tabbed
  126. bindsym $mod+Shift+e layout toggle split
  127.  
  128. # toggle tiling / floating
  129. bindsym $mod+Shift+space floating toggle
  130.  
  131. # change focus between tiling / floating windows
  132. bindsym $mod+space focus mode_toggle
  133.  
  134. # focus the parent container
  135. bindsym $mod+a focus parent
  136.  
  137. # focus the child container
  138. #bindsym $mod+d focus child
  139.  
  140. # switch to workspace
  141. bindsym $mod+1 workspace 1
  142. bindsym $mod+2 workspace 2
  143. bindsym $mod+3 workspace 3
  144. bindsym $mod+4 workspace 4
  145. bindsym $mod+5 workspace 5
  146. bindsym $mod+6 workspace 6
  147. bindsym $mod+7 workspace 7
  148. bindsym $mod+8 workspace 8
  149. bindsym $mod+9 workspace 9
  150. bindsym $mod+0 workspace 10
  151.  
  152. # move focused container to workspace
  153. bindsym $mod+Shift+1 move container to workspace 1
  154. bindsym $mod+Shift+2 move container to workspace 2
  155. bindsym $mod+Shift+3 move container to workspace 3
  156. bindsym $mod+Shift+4 move container to workspace 4
  157. bindsym $mod+Shift+5 move container to workspace 5
  158. bindsym $mod+Shift+6 move container to workspace 6
  159. bindsym $mod+Shift+7 move container to workspace 7
  160. bindsym $mod+Shift+8 move container to workspace 8
  161. bindsym $mod+Shift+9 move container to workspace 9
  162. bindsym $mod+Shift+0 move container to workspace 10
  163.  
  164. # reload the configuration file
  165. bindsym $mod+Shift+c reload
  166.  
  167. # restart i3 inplace (preserves your layout/session, can be used to upgrade i3)
  168. bindsym $mod+Shift+r restart
  169.  
  170. # exit i3 (logs you out of your X session)
  171. bindsym $mod+Shift+z 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'"
  172.  
  173. # lock
  174. bindsym $mod+Shift+x exec i3lock --color 475263
  175.  
  176. # resize window (you can also use the mouse for that)
  177. mode "resize" {
  178. # These bindings trigger as soon as you enter the resize mode
  179.  
  180. # Pressing left will shrink the window’s width.
  181. # Pressing right will grow the window’s width.
  182. # Pressing up will shrink the window’s height.
  183. # Pressing down will grow the window’s height.
  184. bindsym j resize shrink width 10 px or 10 ppt
  185. bindsym k resize grow height 10 px or 10 ppt
  186. bindsym l resize shrink height 10 px or 10 ppt
  187. bindsym ntilde resize grow width 10 px or 10 ppt
  188.  
  189. # same bindings, but for the arrow keys
  190. bindsym Left resize shrink width 10 px or 10 ppt
  191. bindsym Down resize grow height 10 px or 10 ppt
  192. bindsym Up resize shrink height 10 px or 10 ppt
  193. bindsym Right resize grow width 10 px or 10 ppt
  194.  
  195. # back to normal: Enter or Escape
  196. bindsym Return mode "default"
  197. bindsym Escape mode "default"
  198. }
  199.  
  200. bindsym $mod+r mode "resize"
  201.  
  202. set $bg-color #2f343f
  203. set $inactive-bg-color #2f343f
  204. set $text-color #f3f4f5
  205. set $inactive-text-color #676e7d
  206. set $urgent-bg-color #e53935
  207. set $indicator-color #a0a0a0
  208.  
  209. # set window colors
  210. # border background text indicator
  211. client.focused $bg-color $bg-color $text-color $indicator-color
  212. client.unfocused $inactive-bg-color $inactive-bg-color $inactive-text-color $indicator-color
  213. client.focused_inactive $inactive-bg-color $inactive-bg-color $inactive-text-color $indicator-color
  214. client.urgent $urgent-bg-color $urgent-bg-color $text-color $indicator-color
  215.  
  216.  
  217. # Start i3bar to display a workspace bar (plus the system information i3status
  218. # finds out, if available)
  219. bar {
  220. status_command i3blocks
  221. font pango: Source Sans Pro-14 14
  222. tray_output primary
  223. position top
  224.  
  225. colors {
  226. background $bg-color
  227. separator #757575
  228. # border background text
  229. focused_workspace $bg-color $bg-color $text-color
  230. inactive_workspace $inactive-bg-color $inactive-bg-color $inactive-text-color
  231. urgent_workspace $urgent-bg-color $urgent-bg-color $text-color
  232. }
  233. }
  234.  
  235. # floating windows
  236. for_window [class="Pavucontrol"] floating enable
  237. for_window [class="Kalu"] floating enable
  238.  
  239. ## Multimedia Keys
  240.  
  241. # volume
  242. bindsym Mod1+d exec amixer -D pulse sset Master 5%+ && pkill -RTMIN+1 i3blocks
  243. bindsym Mod1+f exec amixer -D pulse sset Master 5%- && pkill -RTMIN+1 i3blocks
  244.  
  245. # granular volume control
  246. bindsym $mod+XF86AudioRaiseVolume exec amixer -D pulse sset Master 1%+ && pkill -RTMIN+1 i3blocks
  247. bindsym $mod+XF86AudioLowerVolume exec amixer -D pulse sset Master 1%- && pkill -RTMIN+1 i3blocks
  248.  
  249. # mute
  250. bindsym XF86AudioMute exec amixer sset Master toggle && killall -USR1 i3blocks
  251.  
  252. #bindsym XF86AudioPlay exec playerctl play
  253. #bindsym XF86AudioPause exec playerctl pause
  254. #bindsym XF86AudioNext exec playerctl next
  255. #bindsym XF86AudioPrev exec playerctl previous
  256.  
  257. bindsym XF86AudioPlay exec mocp --toggle-pause
  258. bindsym XF86AudioPause exec mocp --toggle-pause
  259. bindsym XF86AudioStop exec mocp --togle-pause
  260. bindsym XF86AudioNext exec mocp --next
  261. bindsym XF86AudioPrev exec mocp --previous
  262.  
  263. bindsym $mod+F5 exec mocp --toggle-pause
  264. bindsym $mod+F6 exec mocp --stop
  265. bindsym $mod+F7 exec mocp --previous
  266. bindsym $mod+F8 exec mocp --next
  267.  
  268. # App shortcuts
  269. bindsym $mod+w exec "/usr/bin/chromium"
  270. bindsym $mod+n exec "/usr/bin/dolphin"
  271. bindsym $mod+t exec "usr/bin/thunderbird"
  272.  
  273. # Redirect sound to headphones
  274. bindsym $mod+m exec "/usr/local/bin/switch-audio-port"
  275.  
  276. # Autostart apps
  277. exec_always compton
  278. exec --no-startup-id /usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1
  279. #exec --no-startup-id "compton -cC"
  280. exec --no-startup-id nm-applet
  281. exec --no-startup-id "nitrogen --restore"
  282. exec --no-startup-id "sleep 2s && kalu"
  283. exec --no-startup-id /usr/bin/gnome-keyring-daemon --start --components=secrets
  284. exec feh --bg-scale /home/drmdub/Pictures/wallpaper.png
  285. #exec_always --no-startup-id /home/drmdub/.config/polybar/launch.sh
  286. exec pCloud
  287. exec Enpass
  288. exec Variety
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement