Advertisement
Guest User

Untitled

a guest
Jan 18th, 2020
521
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. # i3 config file (v4)
  2. #
  3. # Please see https://i3wm.org/docs/userguide.html for a complete reference!
  4. #
  5. # This config file uses keycodes (bindsym) and was written for the QWERTY
  6. # layout.
  7. #
  8. # To get a config file with the same key positions, but for your current
  9. # layout, use the i3-config-wizard
  10.  
  11. set $mod Mod4
  12. set $terminal kitty
  13.  
  14.  
  15. # Color scheme^^
  16. exec wal -R
  17. exec --no-startup-id xrdb ~/.Xresources
  18.  
  19. set_from_resource $color_focused i3wm.color3
  20. set_from_resource $color_unfocused i3wm.color2
  21.  
  22. # Font for window titles. Will also be used by the bar unless a different font
  23. # is used in the bar {} block below.
  24. font pango:Terminus 10
  25.  
  26. # This font is widely installed, provides lots of unicode glyphs, right-to-left
  27. # text rendering and scalability on retina/hidpi displays (thanks to pango).
  28. #font pango:DejaVu Sans Mono 8
  29.  
  30. # The combination of xss-lock, nm-applet and pactl is a popular choice, so
  31. # they are included here as an example. Modify as you see fit.
  32.  
  33. # Startup
  34. exec --no-startup-id nm-applet
  35. exec --no-startup-id blueman-applet
  36. exec --no-startup-id insync
  37. exec_always --no-startup-id compton --blur-background --blur-method kawase --blur-strength 12 --opacity-rule 75:'class_g *?="kitty"' --backend glx --paint-on-overlay --vsync opengl-swc --blur-kern 3x3box --inactive-opacity 0.7 --opacity-rule 99:'class_g *?="google-chrome"' --inactive-dim .05 --active-opacity 1.0
  38. exec_always --no-startup-id ~/.config/polybar/launch.sh
  39.  
  40. # COLORS!!111!!!
  41.  
  42.  
  43. client.focused_inactive $color_unfocused    $color_unfocused    $color_focused          $color_unfocused    $color_unfocused
  44. client.unfocused        $color_unfocused    $color_unfocused    $color_focused          $color_unfocused    $color_unfocused
  45. client.focused          $color_focused          $color_focused          $color_unfocused    $color_focused          $color_focused
  46.  
  47. # i3-gaps
  48. gaps inner 7
  49. gaps outer 7
  50.  
  51. # title bar
  52. for_window [class="^.*"] border pixel 5, title_format " %title "
  53. new_window pixel
  54. new_float normal
  55. hide_edge_borders none
  56.  
  57.  
  58. # Media keys
  59.  
  60. bindsym XF86AudioRaiseVolume exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ +10%
  61. bindsym XF86AudioLowerVolume exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ -10%
  62. bindsym XF86AudioMute exec --no-startup-id pactl set-sink-mute @DEFAULT_SINK@ toggle
  63. bindsym XF86AudioMicMute exec --no-startup-id pactl set-source-mute @DEFAULT_SOURCE@ toggle
  64. bindsym XF86MonBrightnessUp exec --no-startup-id brightnessctl s +3%
  65. bindsym XF86MonBrightnessDown exec --no-startup-id brightnessctl s 3%-
  66.  
  67.  
  68. # use these keys for focus, movement, and resize directions when reaching for
  69. # the arrows is not convenient
  70. set $up k
  71. set $down j
  72. set $left h
  73. set $right l
  74.  
  75. # use Mouse+$mod to drag floating windows to their wanted position
  76. floating_modifier $mod
  77.  
  78. # start a terminal
  79. bindsym $mod+Return exec $terminal
  80.  
  81. # kill focused window
  82. bindsym $mod+Shift+q kill
  83.  
  84. bindsym $mod+d exec rofi -show drun
  85.  
  86. # change focus
  87. bindsym $mod+$left focus left
  88. bindsym $mod+$down focus down
  89. bindsym $mod+$up focus up
  90. bindsym $mod+$right focus right
  91.  
  92. # alternatively, you can use the cursor keys:
  93. bindsym $mod+Left focus left
  94. bindsym $mod+Down focus down
  95. bindsym $mod+Up focus up
  96. bindsym $mod+Right focus right
  97.  
  98. # move focused window
  99. bindsym $mod+Shift+$left move left
  100. bindsym $mod+Shift+$down move down
  101. bindsym $mod+Shift+$up move up
  102. bindsym $mod+Shift+$right move right
  103.  
  104. # alternatively, you can use the cursor keys:
  105. bindsym $mod+Shift+Left move left
  106. bindsym $mod+Shift+Down move down
  107. bindsym $mod+Shift+Up move up
  108. bindsym $mod+Shift+Right move right
  109.  
  110. # split in horizontal orientation
  111. bindsym $mod+b split h
  112.  
  113. # split in vertical orientation
  114. bindsym $mod+v split v
  115.  
  116. # enter fullscreen mode for the focused container
  117. bindsym $mod+f fullscreen toggle
  118.  
  119. # change container layout (stacked, tabbed, toggle split)
  120. bindsym $mod+s layout stacking
  121. bindsym $mod+w layout tabbed
  122. bindsym $mod+e layout toggle split
  123.  
  124. # toggle tiling / floating
  125. bindsym $mod+Shift+space floating toggle
  126.  
  127. # change focus between tiling / floating windows
  128. bindsym $mod+space focus mode_toggle
  129.  
  130. # focus the parent container
  131. bindsym $mod+a focus parent
  132.  
  133. # focus the child container
  134. #bindsym $mod+d focus child
  135.  
  136. # move the currently focused window to the scratchpad
  137. bindsym $mod+Shift+minus move scratchpad
  138.  
  139. # Show the next scratchpad window or hide the focused scratchpad window.
  140. # If there are multiple scratchpad windows, this command cycles through them.
  141. bindsym $mod+minus scratchpad show
  142.  
  143. # Define names for default workspaces for which we configure key bindings later on.
  144. # We use variables to avoid repeating the names in multiple places.
  145. set $ws1 "1"
  146. set $ws2 "2"
  147. set $ws3 "3"
  148. set $ws4 "4"
  149. set $ws5 "5"
  150. set $ws6 "6"
  151. set $ws7 "7"
  152. set $ws8 "8"
  153. set $ws9 "9"
  154. set $ws10 "10"
  155.  
  156. # switch to workspace
  157. bindsym $mod+1 workspace number $ws1
  158. bindsym $mod+2 workspace number $ws2
  159. bindsym $mod+3 workspace number $ws3
  160. bindsym $mod+4 workspace number $ws4
  161. bindsym $mod+5 workspace number $ws5
  162. bindsym $mod+6 workspace number $ws6
  163. bindsym $mod+7 workspace number $ws7
  164. bindsym $mod+8 workspace number $ws8
  165. bindsym $mod+9 workspace number $ws9
  166. bindsym $mod+0 workspace number $ws10
  167.  
  168. # move focused container to workspace
  169. bindsym $mod+Shift+1 move container to workspace number $ws1
  170. bindsym $mod+Shift+2 move container to workspace number $ws2
  171. bindsym $mod+Shift+3 move container to workspace number $ws3
  172. bindsym $mod+Shift+4 move container to workspace number $ws4
  173. bindsym $mod+Shift+5 move container to workspace number $ws5
  174. bindsym $mod+Shift+6 move container to workspace number $ws6
  175. bindsym $mod+Shift+7 move container to workspace number $ws7
  176. bindsym $mod+Shift+8 move container to workspace number $ws8
  177. bindsym $mod+Shift+9 move container to workspace number $ws9
  178. bindsym $mod+Shift+0 move container to workspace number $ws10
  179.  
  180. # reload the configuration file
  181. bindsym $mod+Shift+c reload
  182. # restart i3 inplace (preserves your layout/session, can be used to upgrade i3)
  183. bindsym $mod+Shift+r restart
  184. # exit i3 (logs you out of your X session)
  185. 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'"
  186.  
  187. # resize window (you can also use the mouse for that)
  188. mode "resize" {
  189.         # These bindings trigger as soon as you enter the resize mode
  190.  
  191.         # Pressing left will shrink the window’s width.
  192.         # Pressing right will grow the window’s width.
  193.         # Pressing up will shrink the window’s height.
  194.         # Pressing down will grow the window’s height.
  195.         bindsym $left       resize shrink width 10 px or 10 ppt
  196.         bindsym $down       resize grow height 10 px or 10 ppt
  197.         bindsym $up         resize shrink height 10 px or 10 ppt
  198.         bindsym $right      resize grow width 10 px or 10 ppt
  199.  
  200.         # same bindings, but for the arrow keys
  201.         bindsym Left        resize shrink width 10 px or 10 ppt
  202.         bindsym Down        resize grow height 10 px or 10 ppt
  203.         bindsym Up          resize shrink height 10 px or 10 ppt
  204.         bindsym Right       resize grow width 10 px or 10 ppt
  205.  
  206.         # back to normal: Enter or Escape or $mod+r
  207.         bindsym Return mode "default"
  208.         bindsym Escape mode "default"
  209.         bindsym $mod+r mode "default"
  210. }
  211.  
  212. bindsym $mod+r mode "resize"
  213. bindsym --release Print exec maim -s | xclip -selection clipboard -t image/png
  214.  
  215.  
  216. # Floating rulez
  217.  
  218. ## Steam
  219. # https://github.com/ValveSoftware/steam-for-linux/issues/1040
  220. for_window [class="^Steam$" title="^Friends$"] floating enable
  221. for_window [class="^Steam$" title="Steam - News"] floating enable
  222. for_window [class="^Steam$" title=".* - Chat"] floating enable
  223. for_window [class="^Steam$" title="^Settings$"] floating enable
  224. for_window [class="^Steam$" title=".* - event started"] floating enable
  225. for_window [class="^Steam$" title=".* CD key"] floating enable
  226. for_window [class="^Steam$" title="^Steam - Self Updater$"] floating enable
  227. for_window [class="^Steam$" title="^Screenshot Uploader$"] floating enable
  228. for_window [class="^Steam$" title="^Steam Guard - Computer Authorization Required$"] floating enable
  229. for_window [title="^Steam Keyboard$"] floating enable    
  230.  
  231.  
  232. for_window [class="Nautilus"] floating enable resize set 853 480
  233. for_window [workspace="10"] floating enable
  234.  
  235. for_window [title="Bluetooth Devices"] floating enable
  236. for_window [title="Volume Control"] floating enable
  237. # Touchpad settings
  238.  
  239. exec xinput set-prop 12 330 1
  240. exec xinput set-prop 12 322 1
  241. exec xinput set-prop 12 304 1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement