Guest User

Untitled

a guest
Apr 1st, 2020
282
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.00 KB | None | 0 0
  1. set $mod Mod4
  2. focus_follows_mouse False
  3.  
  4. font pango:monospace 8
  5.  
  6. # Use Mouse+$mod to drag floating windows to their wanted position
  7. floating_modifier $mod
  8.  
  9. # start a terminal
  10. bindsym $mod+Return exec i3-sensible-terminal
  11.  
  12. # kill focused window
  13. bindsym $mod+Shift+q kill
  14.  
  15. # change focus
  16. bindsym $mod+j focus left
  17. bindsym $mod+k focus down
  18. bindsym $mod+l focus up
  19. bindsym $mod+semicolon focus right
  20.  
  21. # alternatively, you can use the cursor keys:
  22. bindsym $mod+Left focus left
  23. bindsym $mod+Down focus down
  24. bindsym $mod+Up focus up
  25. bindsym $mod+Right focus right
  26.  
  27. # move focused window
  28. bindsym $mod+Shift+j move left
  29. bindsym $mod+Shift+k move down
  30. bindsym $mod+Shift+l move up
  31. bindsym $mod+Shift+semicolon move right
  32.  
  33. # alternatively, you can use the cursor keys:
  34. bindsym $mod+Shift+Left move left
  35. bindsym $mod+Shift+Down move down
  36. bindsym $mod+Shift+Up move up
  37. bindsym $mod+Shift+Right move right
  38.  
  39. # split in horizontal orientation
  40. bindsym $mod+h split h
  41.  
  42. # split in vertical orientation
  43. bindsym $mod+v split v
  44.  
  45. # enter fullscreen mode for the focused container
  46. bindsym $mod+f fullscreen toggle
  47.  
  48. # change container layout (stacked, tabbed, toggle split)
  49. bindsym $mod+s layout stacking
  50. bindsym $mod+w layout tabbed
  51. bindsym $mod+e layout toggle split
  52.  
  53. # toggle tiling / floating
  54. bindsym $mod+Shift+space floating toggle
  55. bindsym $mod+Shift+f floating toggle
  56.  
  57. # change focus between tiling / floating windows
  58. bindsym $mod+space focus mode_toggle
  59.  
  60. # focus the parent container
  61. bindsym $mod+a focus parent
  62.  
  63. # focus the child container
  64. #bindsym $mod+d focus child
  65.  
  66. # switch to workspace
  67. bindsym $mod+1 workspace 1
  68. bindsym $mod+2 workspace 2
  69. bindsym $mod+3 workspace 3
  70. bindsym $mod+4 workspace 4
  71. bindsym $mod+5 workspace 5
  72. bindsym $mod+6 workspace 6
  73. bindsym $mod+7 workspace 7
  74. bindsym $mod+8 workspace 8
  75. bindsym $mod+9 workspace 9
  76. bindsym $mod+0 workspace 10
  77. bindsym $mod+minus workspace 11
  78. bindsym $mod+plus workspace 12
  79.  
  80. # move focused container to workspace
  81. bindsym $mod+Shift+1 move container to workspace 1
  82. bindsym $mod+Shift+2 move container to workspace 2
  83. bindsym $mod+Shift+3 move container to workspace 3
  84. bindsym $mod+Shift+4 move container to workspace 4
  85. bindsym $mod+Shift+5 move container to workspace 5
  86. bindsym $mod+Shift+6 move container to workspace 6
  87. bindsym $mod+Shift+7 move container to workspace 7
  88. bindsym $mod+Shift+8 move container to workspace 8
  89. bindsym $mod+Shift+9 move container to workspace 9
  90. bindsym $mod+Shift+0 move container to workspace 10
  91. bindsym $mod+Shift+minus move container to workspace 11
  92. bindsym $mod+Shift+plus move container to workspace 12
  93.  
  94. # reload the configuration file
  95. bindsym $mod+Shift+c reload
  96. # restart i3 inplace (preserves your layout/session, can be used to upgrade i3)
  97. bindsym $mod+Shift+r restart
  98. # exit i3 (logs you out of your X session)
  99. 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'"
  100.  
  101. # resize window (you can also use the mouse for that)
  102. mode "resize" {
  103. # These bindings trigger as soon as you enter the resize mode
  104.  
  105. # Pressing left will shrink the window’s width.
  106. # Pressing right will grow the window’s width.
  107. # Pressing up will shrink the window’s height.
  108. # Pressing down will grow the window’s height.
  109. bindsym j resize shrink width 10 px or 10 ppt
  110. bindsym k resize grow height 10 px or 10 ppt
  111. bindsym l resize shrink height 10 px or 10 ppt
  112. bindsym semicolon resize grow width 10 px or 10 ppt
  113.  
  114. # same bindings, but for the arrow keys
  115. bindsym Left resize shrink width 10 px or 10 ppt
  116. bindsym Down resize grow height 10 px or 10 ppt
  117. bindsym Up resize shrink height 10 px or 10 ppt
  118. bindsym Right resize grow width 10 px or 10 ppt
  119.  
  120. # back to normal: Enter or Escape
  121. bindsym Return mode "default"
  122. bindsym Escape mode "default"
  123. }
  124.  
  125. bindsym $mod+r mode "resize"
  126.  
  127. bar {
  128. status_command i3blocks
  129. colors {
  130. background #000000
  131. statusline #FFFFFF
  132. separator #666666
  133.  
  134. focused_workspace #4B9945 #1BC926 #FFFFFF
  135. active_workspace #333333 #222222 #FFFFFF
  136. inactive_workspace #333333 #222222 #888888
  137. urgent_workspace #2F343A #B70000 #FFFFFF
  138. binding_mode #2F343A #B70000 #FFFFFF
  139. }
  140. }
  141.  
  142. exec --no-startup-id start-pulseaudio-x11
  143.  
  144. exec --no-startup-id setxkbmap -option
  145. exec --no-startup-id setxkbmap -layout us,ua
  146. exec --no-startup-id setxkbmap -option 'grp:win_space_toggle'
  147.  
  148. bindsym XF86AudioRaiseVolume exec "amixer -q sset Master,0 3+ unmute"
  149. bindsym XF86AudioLowerVolume exec "amixer -q sset Master,0 3- unmute"
  150. bindsym XF86AudioMute exec "amixer -q sset Master,0 toggle"
  151.  
  152. bindsym $mod+Mod1+f focus parent; fullscreen; focus child
  153.  
  154.  
  155. bindsym Ctrl+Mod1+Left workspace prev
  156. bindsym Ctrl+Mod1+Right workspace next
  157. bindsym $mod+m move workspace to output left
  158. bindsym $mod+c move absolute position center
  159.  
  160. exec --no-startup-id shutter --min_at_startup
  161. exec --no-startup-id nitrogen --restore
  162. exec --no-startup-id numlockx on
  163. exec --no-startup-id setxkbmap -layout "us,ua" -option && setxkbmap -layout "us,ua" -option "grp:win_space_toggle"
  164.  
  165. exec_always compton -f
  166.  
  167. #colors: border backgr. text indicator
  168. client.focused #4B9945 #1BC926 #FFFFFF #4E82D1 #294877
  169. client.focused_inactive #333333 #5F676A #FFFFFF #484E50 #5F676A
  170. client.unfocused #333333 #222222 #888888 #292D2E #222222
  171. client.urgent #2F343A #B70000 #FFFFFF #900000 #900000
  172. client.placeholder #000000 #0C0C0C #FFFFFF #000000 #0C0C0C
  173.  
  174. client.background #FFFFFF
  175.  
  176. bindsym $mod+d exec rofi -show run -lines 5 -eh 2 -width 100 -padding 500 -opacity "80" -bw 0 -bc "$base01" -bg "$base02" -fg "$base07" -hlbg "$base05" -columns 2 -font "System San Francisco Display 18" -hlfg "#9575cd"
  177.  
  178.  
  179. workspace 1 output DVI-I-0
  180. workspace 2 output DVI-I-0
  181. workspace 3 output DVI-I-0
  182. workspace 4 output DVI-I-0
  183. workspace 5 output DVI-I-0
  184. workspace 6 output DVI-I-0
  185.  
  186. workspace 7 output DVI-D-0
  187. workspace 8 output DVI-D-0
  188. workspace 9 output DVI-D-0
  189. workspace 10 output DVI-D-0
  190. workspace 11 output DVI-D-0
  191. workspace 12 output DVI-D-0
  192.  
  193. hide_edge_borders smart
  194.  
  195. bindsym --release Print exec shutter --full
  196. bindsym --release Shift+Print exec shutter --select
  197.  
  198. for_window [class="Eog"] floating enable
  199. for_window [class="(?i)gsimplecal"] floating enable, move position mouse, move down $height px
  200. for_window [instance="TeamViewer.exe"] floating enable
  201. for_window [class="TeamViewer"] floating enable
  202. for_window [title="^Android Emulator -"] floating enable
  203. for_window [instance="Qt-subapplication" title="TeamViewer"] move scratchpad
  204. for_window [class="Telegram"] resize set 30ppt 0
  205.  
  206. assign [class="Chromium"] 1
  207. assign [class="Skype"] 3
  208. assign [title="Telegram"] 6
  209. assign [title="Viber"] 6
  210. assign [class="Shutter"] 3
  211.  
  212. for_window [title="Figure"] floating enable
  213. for_window [class=".*"] border normal
Advertisement
Add Comment
Please, Sign In to add comment