Advertisement
Guest User

Untitled

a guest
Apr 25th, 2019
104
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 9.67 KB | None | 0 0
  1. set $mod Mod4
  2.  
  3. new_window pixel 1
  4. new_float normal
  5.  
  6. hide_edge_borders none
  7.  
  8. bindsym $mod+u border none
  9. bindsym $mod+y border pixel 1
  10. bindsym $mod+n border normal
  11.  
  12. font xft:URWGothic-Book 11
  13.  
  14. floating_modifier $mod
  15.  
  16. bindsym $mod+Return exec i3-sensible-terminal
  17.  
  18. # Window kill command
  19. bindsym $mod+Shift+q kill
  20.  
  21. # start program launcher
  22. bindsym $mod+d exec --no-startup-id rofi -show run
  23.  
  24. bindsym $mod+Left focus left
  25. bindsym $mod+Down focus down
  26. bindsym $mod+Up focus up
  27. bindsym $mod+Right focus right
  28.  
  29. # move focused window
  30. bindsym $mod+Shift+Left move left
  31. bindsym $mod+Shift+Down move down
  32. bindsym $mod+Shift+Up move up
  33. bindsym $mod+Shift+Right move right
  34.  
  35. # workspace back and forth (with/without active container)
  36. workspace_auto_back_and_forth yes
  37. bindsym $mod+b workspace back_and_forth
  38. bindsym $mod+Shift+b move container to workspace back_and_forth; workspace back_and_forth
  39.  
  40. # split orientation
  41. bindsym $mod+h split h;exec notify-send 'tile horizontally'
  42. bindsym $mod+v split v;exec notify-send 'tile vertically'
  43. bindsym $mod+q split toggle
  44.  
  45. # toggle 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.  
  56. # change focus between tiling / floating windows
  57. bindsym $mod+space focus mode_toggle
  58.  
  59. # toggle sticky
  60. bindsym $mod+Shift+s sticky toggle
  61.  
  62. # focus the parent container
  63. bindsym $mod+a focus parent
  64.  
  65. # move the currently focused window to the scratchpad
  66. bindsym $mod+Shift+minus move scratchpad
  67.  
  68. # Show the next scratchpad window or hide the focused scratchpad window.
  69. # If there are multiple scratchpad windows, this command cycles through them.
  70. bindsym $mod+minus scratchpad show
  71.  
  72. # navigate workspaces next / previous
  73. bindsym $mod+Ctrl+Right workspace next
  74. bindsym $mod+Ctrl+Left workspace prev
  75.  
  76. # workspaces
  77. set $ws1 1
  78. set $ws2 2
  79. set $ws3 3
  80. set $ws4 4
  81. set $ws5 5
  82. set $ws6 6
  83. set $ws7 7
  84. set $ws8 8
  85.  
  86. # switch to workspace
  87. bindsym $mod+1 workspace $ws1
  88. bindsym $mod+2 workspace $ws2
  89. bindsym $mod+3 workspace $ws3
  90. bindsym $mod+4 workspace $ws4
  91. bindsym $mod+5 workspace $ws5
  92. bindsym $mod+6 workspace $ws6
  93. bindsym $mod+7 workspace $ws7
  94. bindsym $mod+8 workspace $ws8
  95.  
  96. # Move focused container to workspace
  97. bindsym $mod+Ctrl+1 move container to workspace $ws1
  98. bindsym $mod+Ctrl+2 move container to workspace $ws2
  99. bindsym $mod+Ctrl+3 move container to workspace $ws3
  100. bindsym $mod+Ctrl+4 move container to workspace $ws4
  101. bindsym $mod+Ctrl+5 move container to workspace $ws5
  102. bindsym $mod+Ctrl+6 move container to workspace $ws6
  103. bindsym $mod+Ctrl+7 move container to workspace $ws7
  104. bindsym $mod+Ctrl+8 move container to workspace $ws8
  105.  
  106. # Move to workspace with focused container
  107. bindsym $mod+Shift+1 move container to workspace $ws1; workspace $ws1
  108. bindsym $mod+Shift+2 move container to workspace $ws2; workspace $ws2
  109. bindsym $mod+Shift+3 move container to workspace $ws3; workspace $ws3
  110. bindsym $mod+Shift+4 move container to workspace $ws4; workspace $ws4
  111. bindsym $mod+Shift+5 move container to workspace $ws5; workspace $ws5
  112. bindsym $mod+Shift+6 move container to workspace $ws6; workspace $ws6
  113. bindsym $mod+Shift+7 move container to workspace $ws7; workspace $ws7
  114. bindsym $mod+Shift+8 move container to workspace $ws8; workspace $ws8
  115.  
  116. # Open specific applications in floating mode
  117. for_window [title="alsamixer"] floating enable border pixel 1
  118. for_window [class="Calamares"] floating enable border normal
  119. for_window [class="Clipgrab"] floating enable
  120. for_window [title="File Transfer*"] floating enable
  121. for_window [class="Galculator"] floating enable border pixel 1
  122. for_window [class="GParted"] floating enable border normal
  123. for_window [title="i3_help"] floating enable sticky enable border normal
  124. for_window [class="Lightdm-gtk-greeter-settings"] floating enable
  125. for_window [class="Lxappearance"] floating enable sticky enable border normal
  126. for_window [class="Manjaro-hello"] floating enable
  127. for_window [class="Manjaro Settings Manager"] floating enable border normal
  128. for_window [title="MuseScore: Play Panel"] floating enable
  129. for_window [class="Nitrogen"] floating enable sticky enable border normal
  130. for_window [class="Oblogout"] fullscreen enable
  131. for_window [class="octopi"] floating enable
  132. for_window [title="About Pale Moon"] floating enable
  133. for_window [class="Pamac-manager"] floating enable
  134. for_window [class="Pavucontrol"] floating enable
  135. for_window [class="qt5ct"] floating enable sticky enable border normal
  136. for_window [class="Qtconfig-qt4"] floating enable sticky enable border normal
  137. for_window [class="Simple-scan"] floating enable border normal
  138. for_window [class="(?i)System-config-printer.py"] floating enable border normal
  139. for_window [class="Skype"] floating enable border normal
  140. for_window [class="Thus"] floating enable border normal
  141. for_window [class="Timeset-gui"] floating enable border normal
  142. for_window [class="(?i)virtualbox"] floating enable border normal
  143. for_window [class="Xfburn"] floating enable
  144.  
  145. # switch to workspace with urgent window automatically
  146. for_window [urgent=latest] focus
  147.  
  148. # reload the configuration file
  149. bindsym $mod+Shift+c reload
  150.  
  151. # restart i3 inplace (preserves your layout/session, can be used to upgrade i3)
  152. bindsym $mod+Shift+r restart
  153.  
  154. # exit i3 (logs you out of your X session)
  155. 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'"
  156.  
  157. # Set shut down, restart and locking features
  158. bindsym $mod+0 mode "$mode_system"
  159. set $mode_system (l)ock, (e)xit, switch_(u)ser, (s)uspend, (h)ibernate, (r)eboot, (Shift+s)hutdown
  160. mode "$mode_system" {
  161. bindsym l exec --no-startup-id i3exit lock, mode "default"
  162. bindsym s exec --no-startup-id i3exit suspend, mode "default"
  163. bindsym u exec --no-startup-id i3exit switch_user, mode "default"
  164. bindsym e exec --no-startup-id i3exit logout, mode "default"
  165. bindsym h exec --no-startup-id i3exit hibernate, mode "default"
  166. bindsym r exec --no-startup-id i3exit reboot, mode "default"
  167. bindsym Shift+s exec --no-startup-id i3exit shutdown, mode "default"
  168.  
  169. # exit system mode: "Enter" or "Escape"
  170. bindsym Return mode "default"
  171. bindsym Escape mode "default"
  172. }
  173.  
  174. # Set volume keys
  175.  
  176. bindsym XF86AudioLowerVolume exec pactl set-sink-volume 0 -10%
  177. bindsym XF86AudioRaiseVolume exec pactl set-sink-volume 0 +10%
  178.  
  179. # Lock Screen
  180. bindsym $mod+l exec i3lock -f -c 00e5ee -u -i 30
  181.  
  182. # Screenshot
  183. bindsym Print exec scrot "/home/sagiri/Pictures/Screenshots/$(date).png"
  184.  
  185.  
  186. # Resize window (you can also use the mouse for that)
  187. bindsym $mod+r mode "resize"
  188. mode "resize" {
  189. # These bindings trigger as soon as you enter the resize mode
  190. # Pressing left will shrink the window’s width.
  191. # Pressing right will grow the window’s width.
  192. # Pressing up will shrink the window’s height.
  193. # Pressing down will grow the window’s height.
  194. bindsym j resize shrink width 5 px or 5 ppt
  195. bindsym k resize grow height 5 px or 5 ppt
  196. bindsym l resize shrink height 5 px or 5 ppt
  197. bindsym semicolon resize grow width 5 px or 5 ppt
  198.  
  199. # same bindings, but for the arrow keys
  200. bindsym Left resize shrink width 10 px or 10 ppt
  201. bindsym Down resize grow height 10 px or 10 ppt
  202. bindsym Up resize shrink height 10 px or 10 ppt
  203. bindsym Right resize grow width 10 px or 10 ppt
  204. # exit resize mode: Enter or Escape
  205. bindsym Return mode "default"
  206. bindsym Escape mode "default"
  207. }
  208.  
  209. # Autostart applications
  210. exec --no-startup-id nitrogen --restore; sleep 1; compton -b
  211. exec --no-startup-id nm-applet
  212. exec --no-startup-id xfce4-power-manager
  213. exec --no-startup-id pamac-tray
  214. exec --no-startup-id clipit
  215. exec_always --no-startup-id ff-theme-util
  216. exec_always --no-startup-id fix_xcursor
  217. exec_always --no-startup-id /$HOME/.config/polybar/i3wmthemer_bar_launch.sh
  218.  
  219. # Theme colors
  220. client.focused #d9d6ca #1c1c22 #d9d6ca #5c828d #5c828d
  221. client.focused_inactive #d9d6ca #1c1c22 #d9d6ca #3e646f #3e646f
  222. client.unfocused #d9d6ca #1c1c22 #d9d6ca #3e646f #3e646f
  223. client.urgent #d9d6ca #1c1c22 #d9d6ca #3e646f #3e646f
  224. client.placeholder #d9d6ca #1c1c22 #d9d6ca #3e646f #3e646f
  225.  
  226. client.background #1c1c22
  227.  
  228. # Gaps
  229. gaps inner 10
  230. gaps outer -4
  231.  
  232. smart_gaps on
  233.  
  234. # Press $mod+Shift+g to enter the gap mode. Choose o or i for modifying outer/inner gaps. Press one of + / - (in-/decrement for current workspace) or 0 (remove gaps for current workspace). If you also press Shift with these keys, the change will be global for all workspaces.
  235. set $mode_gaps Gaps: (o) outer, (i) inner
  236. set $mode_gaps_outer Outer Gaps: +|-|0 (local), Shift + +|-|0 (global)
  237. set $mode_gaps_inner Inner Gaps: +|-|0 (local), Shift + +|-|0 (global)
  238. bindsym $mod+Shift+g mode "$mode_gaps"
  239.  
  240. mode "$mode_gaps" {
  241. bindsym o mode "$mode_gaps_outer"
  242. bindsym i mode "$mode_gaps_inner"
  243. bindsym Return mode "default"
  244. bindsym Escape mode "default"
  245. }
  246. mode "$mode_gaps_inner" {
  247. bindsym plus gaps inner current plus 5
  248. bindsym minus gaps inner current minus 5
  249. bindsym 0 gaps inner current set 0
  250.  
  251. bindsym Shift+plus gaps inner all plus 5
  252. bindsym Shift+minus gaps inner all minus 5
  253. bindsym Shift+0 gaps inner all set 0
  254.  
  255. bindsym Return mode "default"
  256. bindsym Escape mode "default"
  257. }
  258. mode "$mode_gaps_outer" {
  259. bindsym plus gaps outer current plus 5
  260. bindsym minus gaps outer current minus 5
  261. bindsym 0 gaps outer current set 0
  262.  
  263. bindsym Shift+plus gaps outer all plus 5
  264. bindsym Shift+minus gaps outer all minus 5
  265. bindsym Shift+0 gaps outer all set 0
  266.  
  267. bindsym Return mode "default"
  268. bindsym Escape mode "default"
  269. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement