Advertisement
nasarouf

~/config/i3/config

Aug 24th, 2017
115
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 7.40 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 8
  17.  
  18. # This font is widely installed, provides lots of unicode glyphs, right-to-left
  19. # text rendering and scalability on retina/hidpi displays (thanks to pango).
  20. #font pango:DejaVu Sans Mono 8
  21.  
  22. # Before i3 v4.8, we used to recommend this one as the default:
  23. # font -misc-fixed-medium-r-normal--13-120-75-75-C-70-iso10646-1
  24. # The font above is very space-efficient, that is, it looks good, sharp and
  25. # clear in small sizes. However, its unicode glyph coverage is limited, the old
  26. # X core fonts rendering does not support right-to-left and this being a bitmap
  27. # font, it doesn’t scale on retina/hidpi displays.
  28.  
  29. # Use Mouse+$mod to drag floating windows to their wanted position
  30. floating_modifier $mod
  31.  
  32. # start a terminal
  33. bindsym $mod+Return exec urxvt # i3-sensible-terminal
  34. # ! Dracula Xresources palette
  35. # ! https://draculatheme.com/xresources/
  36. # ! to reload: xrdb ~/.Xresources
  37. # *.foreground: #F8F8F2
  38. # *.background: #282A36
  39. # *.color0:     #000000
  40. # *.color8:     #4D4D4D
  41. # *.color1:     #FF5555
  42. # *.color9:     #FF6E67
  43. # *.color2:     #50FA7B
  44. # *.color10:    #5AF78E
  45. # *.color3:     #F1FA8C
  46. # *.color11:    #F4F99D
  47. # *.color4:     #BD93F9
  48. # *.color12:    #CAA9FA
  49. # *.color5:     #FF79C6
  50. # *.color13:    #FF92D0
  51. # *.color6:     #8BE9FD
  52. # *.color14:    #9AEDFE
  53. # *.color7:     #BFBFBF
  54. # *.color15:    #E6E6E6
  55. # URxvt.font: xft:Bitstream Vera Sans Mono:pixelsize=18
  56.  
  57. # kill focused window
  58. bindsym $mod+Shift+q kill
  59.  
  60. # start dmenu (a program launcher)
  61. bindsym $mod+r exec dmenu_run
  62. # There also is the (new) i3-dmenu-desktop which only displays applications
  63. # shipping a .desktop file. It is a wrapper around dmenu, so you need that
  64. # installed.
  65. # bindsym $mod+d exec --no-startup-id i3-dmenu-desktop
  66.  
  67. # # change focus
  68. # bindsym $mod+j focus left
  69. # bindsym $mod+k focus down
  70. # bindsym $mod+l focus up
  71. # bindsym $mod+semicolon focus right
  72.  
  73. # alternatively, you can use the cursor keys:
  74. bindsym $mod+Left focus left
  75. bindsym $mod+Down focus down
  76. bindsym $mod+Up focus up
  77. bindsym $mod+Right focus right
  78.  
  79. # # move focused window
  80. # bindsym $mod+Shift+j move left
  81. # bindsym $mod+Shift+k move down
  82. # bindsym $mod+Shift+l move up
  83. # bindsym $mod+Shift+semicolon move right
  84.  
  85. # alternatively, you can use the cursor keys:
  86. bindsym $mod+Shift+Left move left
  87. bindsym $mod+Shift+Down move down
  88. bindsym $mod+Shift+Up move up
  89. bindsym $mod+Shift+Right move right
  90.  
  91. # split in horizontal orientation
  92. bindsym $mod+h split h
  93.  
  94. # split in vertical orientation
  95. bindsym $mod+v split v
  96.  
  97. # enter fullscreen mode for the focused container
  98. bindsym $mod+f fullscreen toggle
  99.  
  100. # change container layout (stacked, tabbed, toggle split)
  101. bindsym $mod+s layout stacking
  102. bindsym $mod+w layout tabbed
  103. bindsym $mod+e layout toggle split
  104.  
  105. # toggle tiling / floating
  106. bindsym $mod+Shift+space floating toggle
  107.  
  108. # change focus between tiling / floating windows
  109. bindsym $mod+space focus mode_toggle
  110.  
  111. # focus the parent container
  112. bindsym $mod+a focus parent
  113.  
  114. # focus the child container
  115. #bindsym $mod+d focus child
  116.  
  117. # switch to workspace
  118. bindsym $mod+1 workspace 1
  119. bindsym $mod+2 workspace 2
  120. bindsym $mod+3 workspace 3
  121. bindsym $mod+4 workspace 4
  122. bindsym $mod+5 workspace 5
  123. bindsym $mod+6 workspace 6
  124. bindsym $mod+7 workspace 7
  125. bindsym $mod+8 workspace 8
  126. bindsym $mod+9 workspace 9
  127. bindsym $mod+0 workspace 10
  128.  
  129. # move focused container to workspace
  130. bindsym $mod+Shift+1 move container to workspace 1
  131. bindsym $mod+Shift+2 move container to workspace 2
  132. bindsym $mod+Shift+3 move container to workspace 3
  133. bindsym $mod+Shift+4 move container to workspace 4
  134. bindsym $mod+Shift+5 move container to workspace 5
  135. bindsym $mod+Shift+6 move container to workspace 6
  136. bindsym $mod+Shift+7 move container to workspace 7
  137. bindsym $mod+Shift+8 move container to workspace 8
  138. bindsym $mod+Shift+9 move container to workspace 9
  139. bindsym $mod+Shift+0 move container to workspace 10
  140.  
  141. # reload the configuration file
  142. bindsym $mod+Shift+c reload
  143. # restart i3 inplace (preserves your layout/session, can be used to upgrade i3)
  144. bindsym $mod+Shift+r restart
  145. # exit i3 (logs you out of your X session)
  146. 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'"
  147. bindsym $mod+l exec "i3lock"
  148.  
  149. #move workspaces between monitors
  150. bindsym $mod+p move workspace to output eDP1
  151. bindsym $mod+Shift+p Move Workspace to output DP1
  152.  
  153. # resize window (you can also use the mouse for that)
  154. mode "resize" {
  155.         # These bindings trigger as soon as you enter the resize mode
  156.  
  157.         # Pressing left will shrink the window’s width.
  158.         # Pressing right will grow the window’s width.
  159.         # Pressing up will shrink the window’s height.
  160.         # Pressing down will grow the window’s height.
  161.         # bindsym j resize shrink width 10 px or 10 ppt
  162.         # bindsym k resize grow height 10 px or 10 ppt
  163.         # bindsym l resize shrink height 10 px or 10 ppt
  164.         # bindsym semicolon resize grow width 10 px or 10 ppt
  165.  
  166.         # same bindings, but for the arrow keys
  167.         bindsym Left resize shrink width 10 px or 10 ppt
  168.         bindsym Down resize grow height 10 px or 10 ppt
  169.         bindsym Up resize shrink height 10 px or 10 ppt
  170.         bindsym Right resize grow width 10 px or 10 ppt
  171.  
  172.         # back to normal: Enter or Escape
  173.         bindsym Return mode "default"
  174.         bindsym Escape mode "default"
  175. }
  176.  
  177. bindsym $mod+Shift+z mode "resize"
  178.  
  179. # Start i3bar to display a workspace bar (plus the system information i3status
  180. # finds out, if available)
  181. bar {
  182.         status_command i3status
  183.         tray_output primary
  184. }
  185.  
  186. # Pulse Audio controls
  187. bindsym XF86AudioRaiseVolume exec --no-startup-id pactl set-sink-volume 0 +5% #increase sound volume
  188. bindsym XF86AudioLowerVolume exec --no-startup-id pactl set-sink-volume 0 -5% #decrease sound volume
  189. bindsym XF86AudioMute exec --no-startup-id pactl set-sink-mute 0 toggle # mute sound
  190.  
  191. # Sreen brightness controls
  192. bindsym XF86MonBrightnessUp exec xbacklight -inc 20 # increase screen brightness
  193. bindsym XF86MonBrightnessDown exec xbacklight -dec 20 # decrease screen brightness
  194. # sudo apt install xbacklight
  195.  
  196. # Touchpad controls
  197. bindsym XF86TouchpadToggle exec /some/path/toggletouchpad.sh # toggle touchpad
  198.  
  199. # Media player controls
  200. bindsym XF86AudioPlay exec playerctl play
  201. bindsym XF86AudioPause exec playerctl pause
  202. bindsym XF86AudioNext exec playerctl next
  203. bindsym XF86AudioPrev exec playerctl previous
  204. # https://askubuntu.com/questions/1080671/how-can-i-install-playerctl
  205. # wget http://ftp.nl.debian.org/debian/pool/main/p/playerctl/libplayerctl2_2.0.1-1_amd64.deb
  206. # wget http://ftp.nl.debian.org/debian/pool/main/p/playerctl/playerctl_2.0.1-1_amd64.deb
  207. # sudo dpkg -i libplayerctl2_2.0.1-1_amd64.deb playerctl_2.0.1-1_amd64.deb
  208.  
  209. # Natural scrolling https://www.reddit.com/r/i3wm/comments/4phohu/help_with_natural_scrolling_on_ubuntu_running_i3/
  210. exec --no-startup-id synclient VertScrollDelta=-113
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement