Guest User

i3-wm

a guest
Feb 9th, 2017
517
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 20.72 KB | None | 0 0
  1. # i3 config file (v4)
  2. # Please see http://i3wm.org/docs/userguide.html for a complete reference!
  3.  
  4. # Set mod key (Mod1=<Alt>, Mod4=<Super>)
  5. set $mod Mod4
  6.  
  7. # set default desktop layout (default is tiling)
  8. workspace_layout tabbed
  9.  
  10. # Configure border style <normal|1pixel|pixel xx|none|pixel>
  11. new_window pixel 1
  12. new_float normal
  13.  
  14. # Hide borders
  15. hide_edge_borders none
  16.  
  17. # change borders
  18. bindsym $mod+u border none
  19. bindsym $mod+y border pixel 1
  20. bindsym $mod+n border normal
  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 -misc-fixed-medium-r-normal--13-120-75-75-C-70-iso10646-1
  25. #font pango: Cantarell 11, Icons 9
  26. #font pango: Bitocra 11, Icons 10
  27. #font pango: Terminus 11, Icons 10
  28. font pango: FontAwesome 11, Icons 10
  29.  
  30. #######################################
  31. # MOC Player Control
  32. #bindsym XF86AudioPlay exec mocp --play-pause
  33. #bindsym XF86AudioStop exec mocp --stop
  34. #bindsym XF86AudioPrev exec mocp --previous
  35. #bindsym XF86AudioNext exec mocp --next
  36.  
  37. # Media player controls (VLC)
  38. bindsym XF86AudioPlay exec playerctl play
  39. bindsym XF86AudioPause exec playerctl pause
  40. bindsym XF86AudioNext exec playerctl next
  41. bindsym XF86AudioPrev exec playerctl previous
  42.  
  43. # Pulse Audio controls
  44. bindsym XF86AudioRaiseVolume exec --no-startup-id pactl set-sink-volume 0 +2% #increase sound volume
  45. bindsym XF86AudioLowerVolume exec --no-startup-id pactl set-sink-volume 0 -2% #decrease sound volume
  46. bindsym XF86AudioMute exec --no-startup-id pactl set-sink-mute 0 toggle # mute sound
  47.  
  48. # Use Mouse+$mod to drag floating windows
  49. floating_modifier $mod
  50.  
  51. # start a terminal
  52. bindsym $mod+Return exec terminator ;workspace number 1
  53.  
  54. ## kill focused window
  55. bindsym $mod+q kill
  56. #
  57. ## Fecha workspace e pula pra workspace 1. 
  58. bindsym $mod+b kill , workspace . Work
  59. #
  60. ## Fecha workspace e pula pra outra abertar
  61. bindsym $mod+Delete kill , workspace prev
  62. #
  63. # Microsoft/Logitech keyboard (FN+Pause)
  64. #bindsym Pause kill , workspace prev
  65.  
  66.  
  67. #########################
  68. ## CapsLock/NumLock/SrollLock Event
  69. bindsym Caps_Lock ;exec paplay /home/zack/.sounds/ubuntu/stereo/complete.oga
  70. bindsym Num_Lock ;exec paplay /home/zack/.sounds/freedesktop/stereo/window-attention.oga
  71. bindsym Scroll_Lock ;exec paplay /home/zack/.sounds/freedesktop/stereo/phone-outgoing-calling.oga
  72.  
  73.  
  74. ########################################################
  75. # Menus (Programs launcher)
  76. ########################################################
  77. # Dmenu
  78. #bindsym $mod+space exec dmenu_run -i -p 'Manjaro Linux' -fn 'FontAwesome:pixelsize=11' -nb '#2B373E' -nf '#ffffff' -sf '#fdf6e3' -sb '#b58900' -l 20
  79.  
  80. # Rofi run (Microsoft/Logitech keyboard)
  81. bindsym $mod+space exec rofi -sidebar-mode -show run -line 3 -eh 2 -width 70 -padding 100 -opacity "70" -bw 0 -bc -font "terminus 11" -rnow -no-disable-history -no-levenshtein-sort -only-match -kb-mode-next Alt+Left
  82.  
  83. ##########################
  84. ##### Menus de saída #####
  85. ##########################
  86.  
  87. # Menu Rofi de aplicativos+sessão
  88. # Microsoft Keyboard (F11 - Rofi Exit)
  89. #bindsym XF86Save exec ~/.i3/scripts/menu.sh
  90.  
  91. # Rofi menu
  92. bindsym $mod+d exec ~/.i3/scripts/rofimenu
  93.  
  94. # Menu Rofi - Logitech (FN+PgUp)
  95. bindsym Menu exec ~/.i3/scripts/menu.sh
  96.  
  97. # Nagbar:
  98. set $Locker i3lock && sleep 1
  99. set $mode_system Exit  | (B)loquear  | (H)ibernar  | (L)ogout  | (S)uspender  | (R)einiciar  | (D)esligar 
  100. mode "$mode_system" {
  101. bindsym b exec --no-startup-id i3lock-fancy
  102. bindsym h exec --no-startup-id systemctl hibernate, mode "default"
  103. bindsym l exec --no-startup-id i3-msg exit, mode "default"
  104. bindsym s exec --no-startup-id systemctl suspend, mode "default"
  105. bindsym r exec --no-startup-id systemctl reboot, mode "default"
  106. bindsym d exec --no-startup-id systemctl poweroff -i, mode "default"
  107.  
  108. # back to normal: Enter or Escape
  109. bindsym Return mode "default"
  110. bindsym Escape mode "default"
  111. }
  112. #bindsym $mod+d mode "$mode_system"
  113.  
  114. ### Morc menu
  115. # start program launcher
  116. #bindsym $mod+z exec --no-startup-id dmenu_recency -l 100
  117. # launch categorized menu
  118. bindsym $mod+z exec --no-startup-id morc_menu
  119.  
  120.  
  121. #####################################
  122. # Start Applications
  123. bindsym $mod+F5 exec terminator -e 'mocp' ;workspace number 2
  124. bindsym $mod+Ctrl+m exec terminator -e 'alsamixer' ;workspace number 3
  125.  
  126. # Simple Screen Recorder
  127. bindsym $mod+F6 exec simplescreenrecorder ;workspace number 4
  128.  
  129. bindsym $mod+t exec --no-startup-id pkill compton
  130. bindsym $mod+Ctrl+t exec --no-startup-id compton -f
  131.  
  132. bindsym $mod+Shift+d --release exec "killall dunst; exec notify-send 'Restart dunst'"
  133.  
  134. bindsym $mod+Shift+h exec xdg-open /usr/share/doc/manjaro/i3_help.pdf
  135.  
  136. bindsym $mod+Ctrl+x --release exec --no-startup-id xkill
  137.  
  138. #####################################
  139. # Screenshot: FN+Print Screen ou Screenshooter
  140. bindsym Print exec "scrot '%d.%m.%Y_%H.%M_screenshot.png' -e 'mv $f ~/Screenshots/';exec paplay /home/zack/.sounds/ubuntu/stereo/screen-capture.oga
  141. bindsym $mod+p exec xfce4-screenshooter
  142.  
  143.  
  144. ###########################################################
  145. # Start a program with a key binding & workspace
  146. ###########################################################
  147. #bindsym $mod+0 workspace . Work
  148. #
  149. bindsym $mod+1 exec firefox ;workspace number 5
  150. bindsym $mod+2 exec chromium ;workspace number 6
  151. #
  152. bindsym $mod+3 exec simple-scan ;workspace number 7
  153. #
  154. bindsym $mod+4 exec supertux2 ;workspace number 8
  155. #
  156. bindsym $mod+5 exec popcorntime ;workspace number 9
  157. #
  158. bindsym $mod+6 exec gvim ;workspace number 10
  159. bindsym $mod+7 exec libreoffice ;workspace number 11
  160. bindsym $mod+8 exec geany ;workspace number 12
  161. #
  162. bindsym $mod+9 exec spotify ;workspace number 13
  163. bindsym $mod+0 exec stremio ;workspace number 14
  164.  
  165. #############################
  166. # Logitech keyboard Config
  167. ############################
  168. # Tecla: FN+F1 (Worksapce 1)
  169. bindsym XF86HomePage workspace . Work
  170. #
  171. # Tecla: FN+F2 (Thunderbird)
  172. bindsym XF86Mail exec ~/Telegram/Telegram ;workspace number 15
  173. bindsym $mod+F7 exec whatsapp-web-desktop ;workspace number 16
  174. #
  175. # Tecla: FN+F3 (PCmanFM)
  176. bindsym XF86Search exec pcmanfm ;workspace number 17
  177. #
  178. # Tecla: FN+F4 (VLC)
  179. bindsym XF86Tools exec vlc ;workspace number 18
  180.  
  181. # Tecla: FN+F5, F6, F7 não detectado
  182. # Tecla: FN+F6 (Rofi Exit)
  183. # Tecla: FN+F11 (Suspend)
  184.  
  185. # Tecla: FN+F12 (Calculator)
  186. bindsym XF86Calculator exec galculator ;workspace number 19
  187.  
  188.  
  189. ######################################
  190. # Application rules
  191.  
  192. # Chrome, Firefox, Telegram
  193. assign [class="^Chromium$"] → number 6
  194. assign [class="^Firefox$"] → number 5
  195.  
  196. # Terminator
  197. assign [class="^Terminator$"] → number 1
  198.  
  199. # PCmanFM
  200. assign [class="^Pcmanfm$"] → number 17
  201.  
  202. # Scanner
  203. assign [class="^Simple-Scan$"] → number 7
  204.  
  205. # GVim, Libreoffice, Mousepad
  206. assign [class="^Gvim$"] → number 10
  207. assign [class="^libreoffice$"] → number 11
  208. assign [class="^Geany$"] → number 12
  209.  
  210. # Thunderbird, Telegram
  211. # assign [class="^Thunderbird$"] → . Mail
  212. assign [class="^Telegram$"] → number 15
  213. assign [class="^WhatsApp$"] → number 16
  214.  
  215. # VLC, Spotify
  216. assign [class="^VLC$"] → number 18
  217. assign [class="^Spotify$"] → number 13
  218. assign [class="^Stremio$"] → number 14
  219. assign [class="^Popcorntime$"] → number 9
  220.  
  221. # Calc
  222. assign [class="^Galculator$"] → number 19
  223.  
  224. # Game
  225. assign [class="^Supertux2$"] → number 8
  226.  
  227. # Várias aplicações na mesma workspace
  228. assign [class="^Pamac-manager$"] → . Pamac
  229. assign [class="^Timeshift$"] → . Work
  230. assign [class="^Transmission-gtk$"] → . Work
  231. assign [class="^Lxappearance$"] → . Work
  232. assign [class="^Gimp$"] → . Gimp
  233. assign [class="^Pavucontrol$"] → . Work
  234. assign [class="^Nitrogen$"] → . Work
  235.  
  236.  
  237. #######################
  238. # Microsoft keyboard
  239. #######################
  240. # Workspace 1
  241. #bindsym XF86Favorites workspace . Work
  242. # Libre
  243. #bindsym XF86Documents exec libreoffice ;workspace . Edit
  244. # Thunderbird
  245. #bindsym XF86Mail exec thunderbird ;workspace . Mail
  246. # PCmanFM
  247. #bindsym XF86HomePage exec pcmanfm ;workspace . File
  248. # Telegram
  249. #bindsym XF86Messenger exec ~/Telegram/Telegram ;workspace . Mail
  250. # VLC
  251. #bindsym XF86Tools exec vlc ;workspace . Play
  252. # Calc
  253. #bindsym XF86Calculator exec galculator
  254. #
  255. # F2: Avança workspace
  256. #bindsym Undo workspace prev
  257. # F3: Retrocede workspace
  258. #bindsym Redo workspace next
  259. # F4: GVim
  260. #bindsym XF86New exec gvim ;workspace . Edit
  261. # F5: Spotify
  262. #bindsym XF86Open exec spotify ;workspace . Play
  263. # F6: Super Tux2
  264. #bindsym XF86Close exec supertux2 ;workspace . Game
  265. # F7: Terminator
  266. #bindsym XF86Reply exec terminator ;workspace  Term
  267. # F8: Guake Terminal
  268. # F9: Não detectado
  269. # F10: Não detectado
  270. # F11: Menu Saída
  271. # F12: não detectado
  272.  
  273.  
  274. # Rename workspace with i3-input using numbers and text
  275. bindsym $mod+Shift+n exec i3-input -F 'rename workspace to "%s"' -P 'Renomear workspace: '
  276.  
  277. #########################################
  278. # Make a terminal sticky that was started as a notepad
  279. #for_window [instance=notepad] sticky enable
  280.  
  281. # The middle button over a titlebar kills the window
  282. # Fechar work-tab com clique direito
  283. bindsym --release button3 kill
  284.  
  285.  
  286. #########################################
  287. ## Moving on
  288. # Saltar para janela urgente
  289. bindsym $mod+x [urgent=latest] focus
  290. ## Microsoft
  291. #bindsym Help [urgent=latest] focus
  292.  
  293. # switch to workspace with urgent window automatically
  294. for_window [urgent=latest] focus
  295.  
  296. # Mover entre workspaces - Logitech
  297. bindsym $mod+Left workspace prev
  298. bindsym $mod+Right workspace next
  299.  
  300. # Foco de aplicativo aberto em abas
  301. #tabbed
  302. bindsym $mod+Tab focus right
  303. #stacking
  304. bindsym $mod+Up focus up
  305. bindsym own focus down
  306.  
  307. # alternatively, you can use the cursor keys:
  308. #bindsym $mod+Shift+Left move left
  309. #bindsym $mod+Shift+Down move down
  310. #bindsym $mod+Shift+Up move up
  311. #bindsym $mod+Shift+Right move right
  312.  
  313. # workspace back and forth (with/without active container)
  314. workspace_auto_back_and_forth yes
  315. #bindsym $mod+b workspace back_and_forth
  316. bindsym $mod+Shift+b move container to workspace back_and_forth; workspace back_and_forth
  317.  
  318. # Move window
  319. bindsym $mod+c move position center
  320.  
  321. ########################
  322. #### Layout
  323. # split orientation
  324. bindsym $mod+h split h;exec notify-send 'tile horizontally'
  325. bindsym $mod+v split v;exec notify-send 'tile vertically'
  326. #bindsym $mod+q split toggle
  327.  
  328. # toggle fullscreen mode for the focused container
  329. bindsym $mod+f fullscreen toggle
  330.  
  331. # change container layout (stacked, tabbed, toggle split)
  332. bindsym $mod+s layout stacking;exec notify-send 'mode stacking'
  333. bindsym $mod+w layout tabbed;exec notify-send 'mode tabbed'
  334. bindsym $mod+e layout toggle split;exec notify-send 'mode toggle split'
  335.  
  336. # toggle tiling / floating
  337. bindsym $mod+Shift+space floating toggle
  338.  
  339. # change focus between tiling / floating windows
  340. bindsym focus mode_toggle
  341.  
  342. # toggle sticky
  343. bindsym $mod+Shift+s sticky toggle
  344.  
  345. # focus the parent container
  346. bindsym $mod+a focus parent
  347.  
  348.  
  349. #Scratchpad
  350. # move the currently focused window to the scratchpad
  351. #bindsym $mod+Shift+minus move scratchpad
  352. # Show the next scratchpad window or hide the focused scratchpad window.
  353. # If there are multiple scratchpad windows, this command cycles through them.
  354. #bindsym $mod+minus scratchpad show
  355.  
  356. # Move focused container to workspace
  357. bindsym $mod+Shift+1 move container to workspace 1.◧
  358. bindsym $mod+Shift+2 move container to workspace 2.◨
  359. bindsym $mod+Shift+3 move container to workspace 3.◩
  360. bindsym $mod+Shift+4 move container to workspace 4.◪
  361.  
  362.  
  363. ################################
  364. ## floating mode
  365. # Open specific applications in floating mode
  366. for_window [title="alsamixer"] floating enable border pixel 1
  367. for_window [class="Calamares"] floating enable border normal
  368. for_window [class="Clipgrab"] floating enable
  369. for_window [title="File Transfer*"] floating enable
  370. for_window [class="Galculator"] floating enable border pixel 1
  371. for_window [class="GParted"] floating enable border normal
  372. for_window [title="i3_help"] floating enable sticky enable border normal
  373. for_window [class="Lightdm-gtk-greeter-settings"] floating enable
  374. for_window [class="Lxappearance"] floating enable sticky enable border normal
  375. for_window [class="Manjaro Settings Manager"] floating enable border normal
  376. for_window [class="Manjaro Welcome"] floating enable
  377. for_window [title="MuseScore: Play Panel"] floating enable
  378. for_window [class="Nitrogen"] floating enable sticky enable border normal
  379. for_window [class="Oblogout"] fullscreen enable
  380. #for_window [class="Pamac-manager"] floating enable
  381. for_window [class="Pavucontrol"] floating enable sticky enable border normal
  382. for_window [class="Qtconfig-qt4"] floating enable sticky enable border normal
  383. for_window [class="Simple-scan"] floating enable border normal
  384. for_window [class="(?i)System-config-printer.py"] floating enable border normal
  385. #for_window [class="Skype"] floating enable border normal
  386. for_window [class="Thus"] floating enable border normal
  387. for_window [class="Timeset-gui"] floating enable border normal
  388. for_window [class="(?i)virtualbox"] floating enable border normal
  389. for_window [class="Vlc"] floating enable border normal
  390. for_window [class="Xfburn"] floating enable
  391. #for_window [class="Pcmanfm"] floating enable
  392. #for_window [class="Vlc"] floating enable border normal
  393. for_window [class="Grub-customizer"] floating enable sticky enable border normal
  394. for_window [class="Transmission-gtk"] floating enable sticky enable border normal
  395.  
  396. ########################################
  397. ## Reset && Reload
  398. ########################################
  399. # reload the configuration file
  400. bindsym $mod+Shift+c reload
  401. # restart i3 inplace (preserves your layout/session, can be used to upgrade i3)
  402. bindsym $mod+Shift+r restart
  403. # Microsoft - F11
  404. #bindsym XF86Save restart
  405.  
  406. #######################################
  407. ## Resize window (you can also use the mouse for that)
  408. #######################################
  409. bindsym $mod+r mode "  "
  410. mode "  " {
  411. # These bindings trigger as soon as you enter the resize mode
  412. # Pressing left will shrink the window’s width.
  413. # Pressing right will grow the window’s width.
  414. # Pressing up will shrink the window’s height.
  415. # Pressing down will grow the window’s height.
  416. bindsym j resize shrink width 5 px or 5 ppt
  417. bindsym k resize grow height 5 px or 5 ppt
  418. bindsym l resize shrink height 5 px or 5 ppt
  419. bindsym odiaeresis resize grow width 5 px or 5 ppt
  420.  
  421. # same bindings, but for the arrow keys
  422. bindsym Left resize shrink width 10 px or 10 ppt
  423. bindsym Down resize grow height 10 px or 10 ppt
  424. bindsym Up resize shrink height 10 px or 10 ppt
  425. bindsym Right resize grow width 10 px or 10 ppt
  426.  
  427. # exit resize mode: Enter or Escape
  428. bindsym Return mode "default"
  429. bindsym Escape mode "default"
  430. }
  431.  
  432. ##############################################################################
  433. # Autostart applications
  434. ##############################################################################
  435. ## adjustment of i3bar battery reading (only run at the very first login):
  436. #exec --no-startup-id /usr/bin/adjust_i3statusconf
  437. #exec --no-startup-id feh --bg-fill /home/zack/Imagens/72.jpg
  438. exec --no-startup-id /usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1
  439. exec --no-startup-id nitrogen --restore; sleep 1; compton -f
  440. #exec --no-startup-id compton -f
  441. exec --no-startup-id compton --config ~/.i3/scripts/compton.conf
  442. exec --no-startup-id nm-applet
  443. exec --no-startup-id volumeicon
  444. exec --no-startup-id xfce4-power-manager
  445. exec --no-startup-id pamac-tray
  446. #exec --no-startup-id xfce4-clipman
  447. #exec --no-startup-id blueman
  448. #exec_always --no-startup-id sbxkb
  449. #exec --no-startup-id start_conky_maia
  450. #exec --no-startup-id start_conky_green
  451. #exec --no-startup-id xautolock -time 30 -locker i3lock-fancy
  452. exec --no-startup-id numlockx
  453. #exec --no-startup-id indicator-keylock
  454. exec --no-startup-id hp-systray
  455. exec --no-startup-id guake
  456. exec --no-startup-id caffeine
  457. exec --no-startup-id dropbox
  458. exec --no-startup-id ~/Telegram/Telegram -startintray %u
  459. #exec --no-startup-id thunderbird
  460. exec --no-startup-id dunst -config ~/bin/dunstrc
  461. exec --no-startup-id solaar
  462. #exec --no-startup-id moc-tray
  463. exec xscreensaver -no-splash
  464. exec --no-startup-id pulseaudio
  465. #exec --no-startup-id orage
  466. #exec --no-startup-id /opt/extras.ubuntu.com/calendar-indicator/bin/calendar-indicator
  467. #exec --no-startup-id /usr/bin/multiload-ng-systray
  468. #Polybar
  469. exec_always --no-startup-id killall polybar; polybar example &
  470. exec_always --no-startup-id killall polybar; polybar bottom &
  471.  
  472.  
  473. #############################################
  474. ## Flatabulous
  475. #############################################
  476.  
  477. # Layout colors bord bg text
  478. client.focused #2D2D2D #2D2D2D #BBBBBB #4F4F4F
  479. client.focused_inactive #1A1A1A #1A1A1A #424242 #121212
  480. client.unfocused #1A1A1A #1A1A1A #4F4F4F #1A1A1A
  481. client.urgent #1A1A1A #3B89B5 #a5a5a5 #1A1A1A
  482. client.background #121212
  483.  
  484. # Start i3bar to display a workspace bar (plus the system information i3status if available)
  485. # ## Top bar
  486. # bar {
  487. # position top
  488. # mode dock
  489. # #i3bar_command i3bar -t
  490. # #font pango: Bitocra 11
  491. # font pango: FontAwesome 10
  492. # #font pango: Terminus 11
  493. # #font pango: Cantarell 11
  494. #
  495. # #status_command i3status --config ~/.i3/i3status.conf
  496. # #status_command i3blocks -c ~/.i3/i3blocks3.conf
  497. # status_command i3blocks -c ~/.i3/i3blocks2.conf
  498. #
  499. # colors {
  500. # background #2D2D2D
  501. # statusline #808080
  502. # separator #808080
  503. #
  504. # focused_workspace #2D2D2D #2D2D2D #FFFFFF
  505. # active_workspace #2D2D2D #2D2D2D #797979
  506. # inactive_workspace #2D2D2D #2D2D2D #747474
  507. # urgent_workspace #080808 #080808 #EA4C59
  508. # }
  509. # }
  510.  
  511. ## Bottom bar:
  512. # bar {
  513. # mode dock
  514. # position bottom
  515. # workspace_buttons no
  516. # tray_output no
  517. # binding_mode_indicator no
  518. # #i3bar_command i3bar -t
  519. # #font pango: Bitocra 11
  520. # font pango: FontAwesome 10
  521. # #font pango: Terminus 11
  522. # #font pango: Cantarell 11
  523. #
  524. # #status_command ~/bin/conky-i3.sh
  525. # status_command i3blocks -c ~/.i3/i3blocks.conf
  526. # #status_command sh ~/.i3/statusbar.sh
  527. # #status_command i3status --config ~/.i3/i3status.conf
  528. #
  529. # colors {
  530. # background #2D2D2D
  531. # statusline #0888BB
  532. # separator #545454
  533. # }
  534. # }
  535.  
  536. # hide/unhide i3status bar
  537. #bindsym $mod+m bar mode toggle
  538.  
  539.  
  540. #############################
  541. ### settings for i3-gaps: ###
  542. #############################
  543. # Set inner/outer gaps
  544. gaps inner 10
  545. gaps outer -4
  546.  
  547. # Additionally, you can issue commands with the following syntax. This is useful to bind keys to changing the gap size.
  548. # gaps inner|outer current|all set|plus|minus <px>
  549. # gaps inner all set 10
  550. # gaps outer all plus 5
  551.  
  552. # Smart gaps (gaps used if only more than one container on the workspace)
  553. smart_gaps on
  554.  
  555. # Smart borders (draw borders around container only if it is not the only container on this workspace)
  556. # on|no_gaps (on=always activate and no_gaps=only activate if the gap size to the edge of the screen is 0)
  557. smart_borders on
  558.  
  559. # 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.
  560. set $mode_gaps Gaps: (o) outer, (i) inner
  561. set $mode_gaps_outer Outer Gaps: +|-|0 (local), Shift + +|-|0 (global)
  562. set $mode_gaps_inner Inner Gaps: +|-|0 (local), Shift + +|-|0 (global)
  563. #bindsym $mod+Shift+g mode "$mode_gaps"
  564.  
  565. mode "$mode_gaps" {
  566. bindsym o mode "$mode_gaps_outer"
  567. bindsym i mode "$mode_gaps_inner"
  568. bindsym Return mode "default"
  569. bindsym Escape mode "default"
  570. }
  571. mode "$mode_gaps_inner" {
  572. bindsym plus gaps inner current plus 5
  573. bindsym minus gaps inner current minus 5
  574. bindsym 0 gaps inner current set 0
  575.  
  576. bindsym Shift+plus gaps inner all plus 5
  577. bindsym Shift+minus gaps inner all minus 5
  578. bindsym Shift+0 gaps inner all set 0
  579.  
  580. bindsym Return mode "default"
  581. bindsym Escape mode "default"
  582. }
  583. mode "$mode_gaps_outer" {
  584. bindsym plus gaps outer current plus 5
  585. bindsym minus gaps outer current minus 5
  586. bindsym 0 gaps outer current set 0
  587.  
  588. bindsym Shift+plus gaps outer all plus 5
  589. bindsym Shift+minus gaps outer all minus 5
  590. bindsym Shift+0 gaps outer all set 0
  591.  
  592. bindsym Return mode "default"
  593. bindsym Escape mode "default"
  594. }
Advertisement
Add Comment
Please, Sign In to add comment