Advertisement
poetician

ArcoLinux i3wm Move Position for Various Apps

Feb 27th, 2020
131
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 31.36 KB | None | 0 0
  1. #
  2. # PPPPp ii ii ii
  3. # p P oOOo eeee TTTTTTT cccc 3333
  4. # p P O O e e t II c II A N N II 3
  5. # PpppP O O e e t II c II A A N n N II 3 W W M M
  6. # P O O eeeee t II c II A A N n N II 333 W W M m m M
  7. # P O O e t II c II A aAa A N n N II 3 W w W M m m M
  8. # P O O e t II c II A A N n N II 3 W w w W M m M
  9. # p OooO eeee t II cccc II A A N N II 3333 W W M M
  10. # ###########
  11. #################################################################################################################
  12. # ###########
  13. # https://pastebin.com/u/poetician ###########
  14. # https://thenextpoetician.blogspot.com/ ###########
  15. # https://www.youtube.com/channel/UCmP5yzI3bT4EP5lyitpor8w ###########
  16. # ###########
  17. # Most of the work was done by Erik Dubois: ###########
  18. # ###########
  19. # https://arcolinux.info/ ###########
  20. # https://github.com/arcolinux ###########
  21. # https://www.youtube.com/channel/UCJdmdUp5BrsWsYVQUylCMLg ###########
  22. # ###########
  23. ##################################################################################
  24. ###########
  25. ########### Key Definitions ###########
  26.  
  27. # $Mod = WINDOWS / Super key / Mod4
  28. # Mod1 = ALT key
  29. # Control = CTRL key
  30. # Shift = SHIFT key
  31. # Escape = ESCAPE key
  32. # Return = ENTER or RETURN key
  33. # KP_Enter = Keypad ENTER key
  34. # Pause = PAUSE key
  35. # Print = PRINT key
  36. # Tab = TAB key
  37.  
  38. ########### Define the $mod Variable Key ###########
  39.  
  40. set $mod Mod4
  41. # set $mod Mod1
  42.  
  43. ########### Define the Movement Keys ###########
  44.  
  45. set $up l
  46. set $down k
  47. set $left j
  48. set $right semicolon
  49.  
  50. ########### Reload Changed Configuration ###########
  51.  
  52. # restart i3 inplace (preserves your layout/session, can be used to upgrade i3)
  53. bindsym $mod+Shift+r restart
  54.  
  55. # reload the configuration file
  56. bindsym $mod+Shift+c reload
  57.  
  58. ########### Stopping Applications ###########
  59.  
  60. # kill focused window
  61. bindsym $mod+q kill
  62.  
  63. # Xkill focused winddow
  64. bindsym --release $mod+Escape exec xkill
  65.  
  66. ########### How to Exit, Lockscreen, Etc... ###########
  67.  
  68. # Press $mod and X to exit - options appear in the toolbar
  69. bindsym $mod+X mode "$mode_system"
  70. bindsym control+mod1+Delete mode "$mode_system"
  71.  
  72. set $mode_system System (h) hibernate (k) lock, (l) logout, (r) reboot, (s) shutdown (u) suspend
  73. mode "$mode_system" {
  74. bindsym k exec --no-startup-id ~/.config/i3/scripts/i3exit.sh lock, mode "default"
  75. bindsym l exec --no-startup-id ~/.config/i3/scripts/i3exit.sh logout, mode "default"
  76. bindsym u exec --no-startup-id ~/.config/i3/scripts/i3exit.sh suspend, mode "default"
  77. bindsym h exec --no-startup-id ~/.config/i3/scripts/i3exit.sh hibernate, mode "default"
  78. bindsym r exec --no-startup-id ~/.config/i3/scripts/i3exit.sh reboot, mode "default"
  79. bindsym s exec --no-startup-id ~/.config/i3/scripts/i3exit.sh shutdown, mode "default"
  80.  
  81. # back to normal: Enter or Escape
  82. bindsym Return mode "default"
  83. bindsym Escape mode "default"
  84. }
  85.  
  86. # Alternative Script from https://pastebin.com/CbTsNMVF ## not presently functioning ##
  87.  
  88. bindsym $mod+Delete exec i3-exit
  89. for_window [class="I3-exit"] floating enable border normal
  90.  
  91. ########### Bar Toggle ###########
  92.  
  93. # bar toggle, hide or show
  94. bindsym $mod+b bar mode invisible
  95. bindsym $mod+m bar mode dock
  96.  
  97. ########### Scratchpad ###########
  98.  
  99. # move the currently focused window to the scratchpad
  100. bindsym Mod1+Shift+plus move scratchpad
  101.  
  102. # Show the next scratchpad window or hide the focused scratchpad window.
  103. # If there are multiple scratchpad windows, this command cycles through them.
  104. bindsym Mod1+plus scratchpad show
  105.  
  106. ########### Screenshots ############
  107.  
  108. bindsym Print exec --no-startup-id scrot '_-%Y-%m-%d-%s_$wx$h.jpg' -e 'mv $f $$(xdg-user-dir PICTURES)'
  109. bindsym Control+Print exec --no-startup-id xfce4-screenshooter
  110.  
  111. ########### Title Font and Alignment ###########
  112.  
  113. # Font for window titles. Will also be used by the bar unless a different font
  114. # is used in the bar {} block below.
  115. font pango: Federation italic 12
  116. title_align center
  117.  
  118. ########### Wallpaper Settings ###########
  119.  
  120. # Sets wallpaper to load at startup
  121. # exec --no-startup-id feh --bg-fill ~/Pictures/Salon.jpg
  122. exec --no-startup-id variety
  123.  
  124. ########################################################################
  125. ########### Bar and Workspace Appearance ###########
  126. ########################################################################
  127.  
  128. # hide_edge_borders none|vertical|horizontal|both|smart
  129. # hide_edge_borders horizontal
  130.  
  131. bar {
  132.  
  133. height 33
  134. workspace_buttons yes
  135. font pango:Federation italic 11
  136.  
  137. i3bar_command i3bar --transparency
  138.  
  139. position top
  140. #position bottom
  141.  
  142. #system icons
  143. #tray_output none
  144.  
  145. # OPTION 1 : i3status
  146.  
  147. # type status_command i3status without the config file and
  148. # you will get the standard i3status bar
  149. # Second one is the standard statusbar with my personal settings
  150.  
  151. #status_command i3status
  152. #status_command i3status -c ~/.config/i3/i3status.conf
  153.  
  154. # OPTION 2 : i3blocks
  155.  
  156. # https://github.com/vivien/i3blocks
  157. # another way to provide text in the statusbar
  158. # put hastag in front if not installed
  159.  
  160. #status_command i3blocks
  161. #status_command i3blocks -c ~/.config/i3/i3blocks.conf
  162. #status_command i3blocks -c ~/.config/i3/i3blocks-rainbow.conf
  163. #status_command i3blocks -c ~/.config/i3/i3blocks-original.conf
  164. #status_command i3blocks -c ~/.config/i3/i3blocks-awesome.conf
  165.  
  166. # OPTION 3 : conky
  167.  
  168. # You can also replace the istatus bar with a conky
  169. # start-conky-i3statusbar.sh is started and conky will follow
  170. # documentation : https://i3wm.org/docs/user-contributed/conky-i3bar.html
  171. # conky configuration is in conky-i3statusbar
  172.  
  173. status_command ~/.config/i3/start-conky-i3statusbar.sh
  174.  
  175. # OPTION 4 : polybar
  176.  
  177. # polybar is launched elsewhere - search for the word
  178. # from the opening of the "bar {...}" till the end has to go or hashtagged out
  179. # in order for the system trayicons to show up in polybar
  180.  
  181. colors {
  182. background #CC4f433f
  183. statusline #CC4f433f
  184. separator #CC4f433f
  185. # border backgr. text
  186. focused_workspace #CC4f433f #CC4f433f #899a99
  187. inactive_workspace #CC4f433f #FF4f433f #f4cd52
  188. urgent_workspace #40281948 #404f433f #f4cd52
  189. }
  190.  
  191. }
  192.  
  193. #Golden text on Tudor Brown background.
  194. # class border backgr. text indicator child-border
  195. client.placeholder #FF000000 #CC4f433f #7C0A02 #FF000000 #261496
  196. client.background #FF000000 #CC4f433f #7C0A02 #FF000000 #261496
  197. client.unfocused #FF000000 #BF4f433f #f4cd52 #FF000000 #261496
  198. client.focused #FF000000 #FF000000 #B87333 #FF000000 #6c71c4
  199. client.focused_inactive #FF000000 #BF4f433f #281948 #FF000000 #6c71c4
  200. client.urgent #11093e #8446d4 #a16b1c #11093e #8446d4
  201.  
  202. ########### Colour Picker ###########
  203.  
  204. # #222222
  205. # #ffffff #a9a9a9 #c2c2b8
  206. # #760b0b #900000
  207. # #089635 #104022 #054d23 #033317 #02180b
  208. # #281948 #110034 #11093e #261496 #8446d4 #6c71c4
  209. # #a16b1c #FFAF00 #e69722 #f4cd52
  210. # #cd7f32 Bronze
  211. # #B87333 Copper
  212. # #c0c0c0 Silver
  213. # #d4af37 Gold
  214. # #022051 Sapphire
  215. # #7C0A02 Barn Red
  216. # #E0115F Ruby
  217. # #dc143c Crimson
  218. # #e34234 Vermillion
  219. # #dda0ad Plum
  220. # #899a99 Pewter
  221. # #568203 Avocado
  222. # #2e5e5b Pine Green
  223. # #1f3d0c Deep Forest Green
  224. # #4f433f Tudor Brown
  225. # #FAEBD7 Antique White
  226.  
  227. # Transparency values
  228. # 100% — FF
  229. # 95% — F2
  230. # 90% — E6
  231. # 85% — D9
  232. # 80% — CC
  233. # 75% — BF
  234. # 70% — B3
  235. # 65% — A6
  236. # 60% — 99
  237. # 55% — 8C
  238. # 50% — 80
  239. # 45% — 73
  240. # 40% — 66
  241. # 35% — 59
  242. # 30% — 4D
  243. # 25% — 40
  244. # 20% — 33
  245. # 15% — 26
  246. # 10% — 1A
  247. # 5% — 0D
  248. # 0% — 00
  249.  
  250. ############################################################################
  251. ########### Workspace Names and Assignments ############
  252. ############################################################################
  253.  
  254. ########### Workspaces named with variables avoids repetition ###########
  255.  
  256. set $ws1 "1 "
  257. set $ws2 "2 𑢰 ꗇ"
  258. # set $ws3 "3 🎞 🎜"
  259. set $ws3 "3 ꪜ ⴽ"
  260. set $ws4 "4 𑣦"
  261. # set $ws5 "5 📽"
  262. set $ws5 "5 𞢐"
  263. set $ws6 "6 G"
  264. set $ws7 "7 "
  265. set $ws8 "8 "
  266. set $ws9 "9 𑣣"
  267. set $ws10 "10 𖭧"
  268. set $ws11 "11 Ⅱ"
  269. set $ws12 "12 ᰪ"
  270. set $ws13 "13:ᰛᰠ"
  271. set $ws14 "14:𐘝᰾"
  272.  
  273. ########### Loading Applications in Designated Workspaces ###########
  274.  
  275. assign [class="Firefox"] $ws1
  276. assign [class="vivaldi-stable"] $ws1
  277. assign [class="Nemo"] $ws2
  278. assign [class="atom"] $ws2
  279. assign [class="VirtualBox Manager"] $ws2
  280. assign [class="Rhythmbox"] $ws3
  281. assign [class="vlc"] $ws3
  282. assign [class="libreoffice"] $ws4
  283. assign [class="Gucharmap"] $ws4
  284. assign [class="kdenlive"] $ws5
  285. assign [class="Glimpse-0.1"] $ws6
  286. assign [class="Google Earth Pro"] $ws7
  287. assign [class="Cherrytree"] $ws8
  288. assign [class="stacer"] $ws8
  289. assign [class="Meld"] $ws9
  290. assign [class="VirtualBox Machine"] $ws9
  291. assign [class="Arcolinux-tweak-tool.py"] $ws11
  292. assign [class="Hefftor_SkelApp.py"] $ws11
  293. assign [class="Notepadqq"] $ws12
  294. assign [class="Joplin"] $ws12
  295. assign [class="Gufw.py"] $ws13
  296. assign [class="Timeshift-gtk"] $ws13
  297. assign [class="Transmission-gtk"] $ws14
  298. assign [class="Xscreensaver-demo"] $ws14
  299.  
  300. ########### Loading Applications at Startup ###########
  301.  
  302. ########### Background Applications ###########
  303.  
  304. exec_always compton -c
  305. exec --no-startup-id mousetrap -t 1
  306. exec_always xscreensaver
  307. exec --no-startup-id xscreensaver-demo
  308. # exec nitrogen --restore
  309. # exec deadd-notification-center
  310.  
  311. ########### Typical Applications ###########
  312.  
  313. # exec atom (doesn't load into assigned $ws)
  314. exec cherrytree
  315. exec firefox
  316. # exec glimpse-0.1
  317. # exec google-earth-pro
  318. # exec gucharmap
  319. # exec kdenlive
  320. exec libreoffice
  321. # exec meld
  322. exec nemo
  323. # exec rhythmbox
  324. # exec stacer
  325. exec transmission-gtk
  326. # exec vivaldi-stable
  327. # exec virtualbox manager
  328. exec vlc
  329.  
  330. ########### Tray Applications ###########
  331.  
  332. # Applications that are not installed will not start
  333. # you may see a wheel - hashtag out things you do not want
  334.  
  335. # Authentication dialog
  336. exec --no-startup-id /usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1 &
  337.  
  338. # Dropbox
  339. exec --no-startup-id dropbox start
  340.  
  341. # Megasync
  342. exec megasync
  343.  
  344. # My-Weather-Indicator
  345. exec my-weather-indicator
  346.  
  347. # Network
  348. exec --no-startup-id nm-applet
  349.  
  350. # Num Lock activated
  351. exec_always --no-startup-id numlockx on
  352.  
  353. # Parcellite
  354. exec parcellite
  355.  
  356. # Redshift
  357. exec redshift
  358.  
  359. # Screenkey
  360. # exec screenkey
  361.  
  362. # Updater
  363. exec --no-startup-id pamac-tray
  364.  
  365. # Volume
  366. #exec --no-startup-id pasystray
  367. exec --no-startup-id volumeicon
  368.  
  369. # Workrave
  370. exec workrave
  371.  
  372. # Clipman
  373. # exec --no-startup-id xfce4-clipman
  374.  
  375. # Conky
  376. # exec --no-startup-id conky -c ~/.config/i3/system-overview
  377.  
  378. # Polybar
  379. # exec_always --no-startup-id ~/.config/polybar/launch.sh &
  380.  
  381. ###########################################################################
  382. ########### Applications Keyboard Shortcuts ###########
  383. ###########################################################################
  384.  
  385. ########### 6 Menu Options ###########
  386.  
  387. # Start Rofi drun Mode
  388. bindsym $mod+g exec rofi -show drun -show-icons -theme arthur -lines 12 -columns 3 -eh 2 -width 74 -padding 200 -opacity "40"
  389.  
  390. # Start Rofi Combi Mode
  391. bindsym $mod+F11 exec --no-startup-id rofi -show combi -show-icons -font "Federation 11"
  392.  
  393. # Start Rofi Window Mode
  394. bindsym $mod+F12 exec --no-startup-id rofi -show window -show-icons
  395.  
  396. # Start DMenu from .desktop applications only
  397. bindsym $mod+Shift+d exec --no-startup-id i3-dmenu-desktop
  398.  
  399. # Start Gmrun
  400. bindsym mod1+F2 exec --no-startup-id gmrun
  401.  
  402. # Start xfce-appfinder
  403. bindsym mod1+F3 exec --no-startup-id xfce4-appfinder
  404.  
  405. ########### Not Workspace Related ###########
  406.  
  407. # Terminal
  408. bindsym $mod+Return exec --no-startup-id termite;focus
  409. bindsym $mod+KP_Enter exec --no-startup-id termite;focus
  410. bindsym control+mod1+t exec --no-startup-id xfce4-terminal;focus
  411. bindsym control+mod1+Return exec --no-startup-id tilix;focus
  412. bindsym control+mod1+KP_Enter exec --no-startup-id termite;focus
  413.  
  414. # ArcoLinux Tweak tool
  415. bindsym control+Shift+p exec Arcolinux-tweak-tool.py;focus
  416.  
  417. # System monitor
  418. bindsym control+Shift+Escape exec --no-startup-id xfce4-taskmanager;focus
  419.  
  420. # Settings
  421. bindsym control+mod1+m exec --no-startup-id xfce4-settings-manager
  422.  
  423. # Catfish
  424. bindsym control+mod1+c exec --no-startup-id catfish;focus
  425.  
  426. # Rofi theme selector
  427. bindsym control+mod1+r exec --no-startup-id rofi-theme-selector
  428.  
  429. # Htop
  430. # arcolinux conflict
  431. # bindsym $mod+h exec --no-startup-id htop;focus
  432.  
  433. # Pavucontrol
  434. # arcolinux conflict
  435. # bindsym control+mod1+u exec --no-startup-id pavucontrol
  436.  
  437. # Start xfce-appfinder
  438. bindsym control+mod1+a exec --no-startup-id xfce4-appfinder
  439.  
  440. # Pamac-manager
  441. bindsym control+mod1+p exec --no-startup-id pamac-manager
  442.  
  443. ########### Workspace Related ###########
  444.  
  445. # Workspace 1 related
  446. bindsym $mod+F1 exec --no-startup-id firefox;focus
  447. bindsym $mod1+Alt+w exec --no-startup-id vivaldi-stable;focus
  448.  
  449. # Workspace 2 related
  450. bindsym $mod+F2 exec --no-startup-id atom;focus
  451. bindsym $mod+Shift+Return exec --no-startup-id nemo;focus
  452.  
  453. # Workspace 3 related
  454. bindsym $mod+F3 exec --nostartup-id Rhythmbox
  455. # bindsym $mod+F8 exec --nostartup-id vlc
  456.  
  457. # Workspace 4 related
  458. bindsym $mod+F4 exec --no-startup-id libreoffice
  459.  
  460. # Workspace 5 related
  461. bindsym $mod+F5 exec --no-startup-id kdenlive
  462.  
  463. # Workspace 6 related
  464. bindsym $mod+F6 exec --no-startup-id glimpse-0.1;focus
  465.  
  466. # Workspace 7 related
  467. bindsym $mod+F7 exec --no-startup-id google-earth-pro;focus
  468.  
  469. # Workspace 8 related
  470. bindsym control+mod1+b exec --no-startup-id Thunar;focus
  471. bindsym $mod+F10 exec --no-startup-id Cherrytree;focus
  472. bindsym control+mod1+s exec --no-startup-id stacer;focus
  473.  
  474. # Workspace 9 related
  475. bindsym $mod+F9 exec --no-startup-id meld;focus
  476. # bindsym control+mod1+i exec --no-startup-id nitrogen;focus
  477.  
  478. # Workspace 10 related
  479. bindsym control+mod1+v exec VirtualBox Manager;focus
  480.  
  481. #############################################################
  482. ########### Floating or Tiled ###########
  483. #############################################################
  484.  
  485. ########### Floating enabled / disabled; find class name with xprop; border option ###########
  486.  
  487. for_window [class="ArcoLinux Conky Manager"] floating enable
  488. for_window [class="Arcolinux-tweak-tool.py"] floating enable
  489. for_window [class="Arcolinux-tweak-tool.py"] move position 8 60
  490. for_window [class="Bleachbit"] floating disable
  491. for_window [class="Brasero"] floating disable
  492. for_window [class="Cherrytree"] floating disable border pixel 8
  493. for_window [class="Create Snapshot"] floating enable
  494. for_window [class="digikam"] floating enable
  495. for_window [class="File-roller"] floating enable
  496. for_window [class="Galculator"] floating enable
  497. for_window [class="Gnome-disks"] floating disable
  498. for_window [class="^Gnome-font-viewer$"] floating enable
  499. for_window [class="^Gpick$"] floating enable
  500. for_window [class="Grub-customizer"] floating enable
  501. for_window [class="Gucharmap"] floating enable
  502. for_window [class="Gufw.py"] floating enable
  503. for_window [class="Gufw.py"] move position 20 60
  504. # for_window [class="Gufw.py"] move absolute position center
  505. # for_window [class="Gufw.py"] move scratchpad
  506. for_window [class="Hefftor_SkelApp.py"] floating enable
  507. for_window [class="Hefftor_SkelApp.py"] move position 881 434
  508. for_window [class="Hexchat"] floating disable
  509. for_window [class="Imagewriter"] floating enable
  510. for_window [class="Font-manager"] floating enable
  511. # for_window [class="qt5ct|Lxappearance] floating disable
  512. # for_window [class="Nitrogen"] floating enable
  513. for_window [class="Pamac-manager"] floating enable
  514. # for_window [class="Pavucontrol"] floating enable
  515. # for_window [class="Peek"] floating disable
  516. for_window [class="stacer"] floating enable
  517. for_window [class="System-config-printer.py"] floating enable
  518. for_window [class="Termite"] floating enable
  519. # for_window [class="Termite"] move scratchpad
  520. for_window [class="Timeshift-gtk"] floating enable
  521. for_window [class="Timeshift-gtk"] move postion 960 60
  522. # for_window [class="Timeshift-gtk"] move scratchpad
  523. for_window [class="Tilix"] floating enable border pixel 24
  524. for_window [class="Tilix"] move position 1360 180
  525. # for_window [class="Transmission"] move scratchpad
  526. for_window [class="Usb-creator-gtk"] floating enable
  527. for_window [class="VirtualBox Manager"] floating enable
  528. # for_window [class="VirtualBox Manager"] move scratchpad
  529. for_window [class="VirtualBox Machine"] floating disable
  530. for_window [class="VirtualBox Manager"] move absolute position center
  531. for_window [class="^Vlc$"] floating enable
  532. for_window [class="^Vlc$"] floating_maximum_size <640> x <480>
  533. for_window [class="vokoscreenNG"] floating enable
  534. for_window [class="Xfce4-appfinder"] floating enable
  535. for_window [class="Xfce4-dict"] floating enable
  536. for_window [class="Xfce4-settings-manager"] floating disable
  537. for_window [class="Xfce4-taskmanager"] floating enable
  538. for_window [class="Xscreensaver-demo"] floating disble
  539. # for_window [class="Xscreensaver-demo"] move scratchpad
  540. for_window [class="vlc"] move absolute position center
  541. for_window [class="vokoscreenNG"] move absolute position center
  542.  
  543. # for_window [instance="gimp"] floating disable
  544. # for_window [instance="script-fu"] border normal
  545. # for_window [instance="Variety Preferences"] floating enable
  546. for_window [title="Copying"] floating enable
  547. for_window [title="Deleting"] floating enable
  548. for_window [title="Moving"] floating enable
  549. for_window [title="^Terminator Preferences$"] floating enable
  550. for_window [window_role="^gimp-toolbox-color-dialog$"] floating enable
  551. for_window [window_role="pop-up"] floating enable
  552. for_window [window_role="^Preferences$"] floating enable
  553. for_window [window_role="setup"] floating enable
  554.  
  555. ########### Application Specific Border Settings ###########
  556.  
  557. # for_window [class="Cherrytree"] border pixel 8
  558. # for_window [class="stacer"] border pixel 6
  559. # for_window [cleass="Imagewriter"] border pixel 12
  560. # for_window [class="Termite"] border pixel 12
  561. # for_window [class="vlc"] border pixel 16
  562.  
  563. ##########################################################################
  564. ########### Workspace Switching Functions ############
  565. ##########################################################################
  566.  
  567. # switch to workspace
  568. bindsym $mod+1 workspace $ws1
  569. bindsym $mod+2 workspace $ws2
  570. bindsym $mod+3 workspace $ws3
  571. bindsym $mod+4 workspace $ws4
  572. bindsym $mod+5 workspace $ws5
  573. bindsym $mod+6 workspace $ws6
  574. bindsym $mod+7 workspace $ws7
  575. bindsym $mod+8 workspace $ws8
  576. bindsym $mod+9 workspace $ws9
  577. bindsym $mod+0 workspace $ws10
  578. bindsym $mod+minus workspace $ws11
  579. bindsym $mod+equal workspace $ws12
  580. bindsym $mod+apostrophe workspace $ws13
  581. bindsym $mod+bracketright workspace $ws14
  582.  
  583. # move focused container to workspace
  584. bindsym $mod+Shift+1 move container to workspace $ws1
  585. bindsym $mod+Shift+2 move container to workspace $ws2
  586. bindsym $mod+Shift+3 move container to workspace $ws3
  587. bindsym $mod+Shift+4 move container to workspace $ws4
  588. bindsym $mod+Shift+5 move container to workspace $ws5
  589. bindsym $mod+Shift+6 move container to workspace $ws6
  590. bindsym $mod+Shift+7 move container to workspace $ws7
  591. bindsym $mod+Shift+8 move container to workspace $ws8
  592. bindsym $mod+Shift+9 move container to workspace $ws9
  593. bindsym $mod+Shift+0 move container to workspace $ws10
  594. bindsym $mod+Shift+equal move container to workspace $ws11
  595. bindsym $mod+Shift+minus move container to workspace $ws12
  596. bindsym $mod+Shift+n move container to workspace $ws13
  597. bindsym $mod+Shift+m move container to workspace $ws14
  598.  
  599. #################################################################
  600. ########### Navigating Containers ###########
  601. #################################################################
  602.  
  603. # use mouse+$mod to drag floating windows to their new position
  604. floating_modifier $mod
  605.  
  606. # toggle tiling / floating
  607. bindsym $mod+Shift+space floating toggle
  608.  
  609. # change focus
  610. bindsym $mod+$left focus left
  611. bindsym $mod+$down focus down
  612. bindsym $mod+$up focus up
  613. bindsym $mod+$right focus right
  614.  
  615. # alternatively, you can use the cursor keys:
  616. bindsym $mod+Left focus left
  617. bindsym $mod+Down focus down
  618. bindsym $mod+Up focus up
  619. bindsym $mod+Right focus right
  620.  
  621. # move focused window
  622. bindsym $mod+Shift+$left move left
  623. bindsym $mod+Shift+$down move down
  624. bindsym $mod+Shift+$up move up
  625. bindsym $mod+Shift+$right move right
  626.  
  627. # alternatively, you can use the cursor keys:
  628. bindsym $mod+Shift+Left move left
  629. bindsym $mod+Shift+Down move down
  630. bindsym $mod+Shift+Up move up
  631. bindsym $mod+Shift+Right move right
  632.  
  633. #################################################################
  634. ########### Navigating Workspaces ###########
  635. #################################################################
  636.  
  637. # next/previous workspace
  638. bindsym Mod1+Tab workspace next
  639. bindsym Mod1+Shift+Tab workspace prev
  640. bindsym $mod+Tab workspace back_and_forth
  641.  
  642. # navigate workspaces next / previous
  643. bindsym Mod1+Ctrl+Right workspace next
  644. bindsym Mod1+Ctrl+Left workspace prev
  645.  
  646. # switch to workspace with urgent window automatically
  647. for_window [urgent=latest] focus
  648.  
  649. # switch back to previous workspace by pressing
  650. # the same keybinding used to switch from it
  651. workspace_auto_back_and_forth yes
  652.  
  653. # enable urgent workspace message delay to see what window sent it
  654. force_display_urgency_hint 1000 ms
  655.  
  656. #############################################################
  657. ########### Tiling Parameters ###########
  658. #############################################################
  659.  
  660. # workspace_layout default|stacking|tabbed
  661.  
  662. # orientation for new workspaces
  663. default_orientation horizontal
  664.  
  665. # split in horizontal orientation
  666. bindsym $mod+h split h
  667.  
  668. # split in vertical orientation
  669. bindsym $mod+v split v
  670.  
  671. # enter fullscreen mode for the focused container
  672. bindsym $mod+f fullscreen toggle
  673.  
  674. # change container layout (stacked, tabbed, toggle split)
  675. bindsym $mod+s layout stacking
  676. bindsym $mod+z layout tabbed
  677. bindsym $mod+e layout toggle split
  678.  
  679. # change focus between tiling / floating windows
  680. bindsym $mod+space focus mode_toggle
  681.  
  682. # focus the parent container
  683. bindsym $mod+a focus parent
  684.  
  685. # focus the child "HHVH"
  686. # bindsym $mod+d focus child
  687.  
  688. ######################################################################
  689. ########### Give Focus to Applications ###########
  690. ######################################################################
  691.  
  692. for_window [class="Gnome-terminal"] focus
  693. for_window [class="Termite"] focus
  694. for_window [class="Terminator"] focus
  695.  
  696. ##########################################################
  697. ########### Border Control ###########
  698. ##########################################################
  699.  
  700. # default_border normal | none | pixel
  701. default_border pixel 5
  702.  
  703. # default_floating_border normal | none| pixel
  704. default_floating_border pixel 16
  705.  
  706. # hide_edge_borders none|vertical|horizontal|both|smart
  707. hide_edge_borders smart
  708. bindsym $mod+shift+b exec --no-startup-id i3-msg border toggle
  709.  
  710. ########### changing border style ###########
  711. bindsym $mod+t border normal
  712. bindsym $mod+y border 1pixel
  713. bindsym $mod+u border none
  714.  
  715. new_window pixel 12
  716. # new_window normal
  717. # new_window none
  718.  
  719. new_float pixel 22
  720. # new_float normal
  721. # new_float none
  722.  
  723. #############################################################################
  724. ########### Popups Control In Fullscreen Mode ###########
  725. #############################################################################
  726.  
  727. # popup_during_fullscreen smart|ignore|leave_fullscreen
  728. popup_during_fullscreen leave_fullscreen
  729.  
  730. ##########################################################
  731. ########### Resize Windows ###########
  732. ##########################################################
  733.  
  734. # resize window (you can also use the mouse for that)
  735.  
  736. bindsym $mod+r mode "resize"
  737.  
  738. mode "resize" {
  739. # These bindings trigger as soon as you enter the resize mode
  740.  
  741. # Pressing left will shrink the window’s width.
  742. # Pressing right will grow the window’s width.
  743. # Pressing up will shrink the window’s height.
  744. # Pressing down will grow the window’s height.
  745. bindsym $left resize shrink width 3 px or 3 ppt
  746. bindsym $down resize grow height 1 px or 1 ppt
  747. bindsym $up resize shrink height 1 px or 1 ppt
  748. bindsym $right resize grow width 3 px or 3 ppt
  749.  
  750. # same bindings, but for the arrow keys
  751. bindsym Left resize shrink width 3 px or 3 ppt
  752. bindsym Down resize grow height 1 px or 1 ppt
  753. bindsym Up resize shrink height 1 px or 1 ppt
  754. bindsym Right resize grow width 3 px or 3 ppt
  755.  
  756. # back to normal: Enter or Escape
  757. bindsym Return mode "default"
  758. bindsym Escape mode "default"
  759. }
  760.  
  761. ########### Sticky Floating Windows ###########
  762.  
  763. # make a terminal sticky that was started as a notepad
  764. for_window [instance=notepadqq] sticky enable
  765.  
  766. #########################################################
  767. ########### i3 Next Gaps ############
  768. #########################################################
  769.  
  770. # Settings for I3 next gap git
  771. # https://github.com/Airblader/i3/tree/gaps-next
  772. # delete or uncomment the following lines if you do not have it or do not want it
  773.  
  774. for_window [class="^.*"] border pixel 8
  775. gaps inner 7
  776. gaps outer 7
  777. smart_gaps on
  778. smart_borders on
  779.  
  780. ########### i3 gaps resizing ############
  781.  
  782. set $mode_gaps Gaps: (o) outer, (i) inner
  783. set $mode_gaps_outer Outer Gaps: +|-|0 (local), Shift + +|-|0 (global)
  784. set $mode_gaps_inner Inner Gaps: +|-|0 (local), Shift + +|-|0 (global)
  785. bindsym $mod+Shift+g mode "$mode_gaps"
  786.  
  787. mode "$mode_gaps" {
  788. bindsym o mode "$mode_gaps_outer"
  789. bindsym i mode "$mode_gaps_inner"
  790. bindsym Return mode "default"
  791. bindsym Escape mode "default"
  792. }
  793.  
  794. mode "$mode_gaps_inner" {
  795. bindsym plus gaps inner current plus 1
  796. bindsym minus gaps inner current minus 1
  797. bindsym 0 gaps inner current set 0
  798.  
  799. bindsym Shift+plus gaps inner all plus 1
  800. bindsym Shift+minus gaps inner all minus 1
  801. bindsym Shift+0 gaps inner all set 0
  802.  
  803. bindsym Return mode "default"
  804. bindsym Escape mode "default"
  805. }
  806. mode "$mode_gaps_outer" {
  807. bindsym plus gaps outer current plus 1
  808. bindsym minus gaps outer current minus 1
  809. bindsym 0 gaps outer current set 0
  810.  
  811. bindsym Shift+plus gaps outer all plus 1
  812. bindsym Shift+minus gaps outer all minus 1
  813. bindsym Shift+0 gaps outer all set 0
  814.  
  815. bindsym Return mode "default"
  816. bindsym Escape mode "default"
  817. }
  818.  
  819. ###################################################################
  820. ########### Variety for Wallpapers ############
  821. ###################################################################
  822.  
  823. #Variety keybindings mod1 = ALT
  824. # trash wallpaper
  825. bindsym mod1+t exec --no-startup-id variety -t
  826. # next wallpaper
  827. bindsym mod1+n exec --no-startup-id variety -n
  828. bindsym mod1+Right exec --no-startup-id variety -n
  829. # previous wallpaper
  830. bindsym mod1+p exec --no-startup-id variety -p
  831. bindsym mod1+Left exec --no-startup-id variety -p
  832. # favorite wallpaper
  833. bindsym mod1+f exec --no-startup-id variety -f
  834. # pause wallpaper
  835. bindsym mod1+Up exec --no-startup-id variety --pause
  836. # resume wallpaper
  837. bindsym mod1+Down exec --no-startup-id variety --resume
  838.  
  839. ########### Variety with Pywal ###########
  840.  
  841. # next wallpaper
  842. bindsym mod1+Shift+n exec --no-startup-id variety -n && wal -i $(cat $HOME/.config/variety/wallpaper/wallpaper.jpg.txt)&
  843. # previous wallpaper
  844. bindsym mod1+Shift+p exec --no-startup-id variety -p && wal -i $(cat $HOME/.config/variety/wallpaper/wallpaper.jpg.txt)&
  845. # trash wallpaper
  846. bindsym mod1+Shift+t exec --no-startup-id variety -t && wal -i $(cat $HOME/.config/variety/wallpaper/wallpaper.jpg.txt)&
  847. # Update Wallpaper
  848. bindsym mod1+Shift+u exec --no-startup-id wal -i $(cat $HOME/.config/variety/wallpaper/wallpaper.jpg.txt)
  849.  
  850. ##########################################################
  851. ########### Audio Settings ###########
  852. ##########################################################
  853.  
  854. bindsym XF86AudioRaiseVolume exec --no-startup-id "amixer -D pulse sset Master '5%+'"
  855. bindsym XF86AudioLowerVolume exec --no-startup-id "amixer -D pulse sset Master '5%-'"
  856. bindsym XF86AudioMute exec --no-startup-id "amixer -D pulse set Master toggle"
  857. #https://github.com/acrisci/playerctl/
  858. bindsym XF86AudioPlay exec --no-startup-id playerctl play-pause
  859. bindsym XF86AudioNext exec --no-startup-id playerctl next
  860. bindsym XF86AudioPrev exec --no-startup-id playerctl previous
  861. bindsym XF86AudioStop exec --no-startup-id playerctl stop
  862.  
  863. ###############################################################
  864. ########### System Applications ###########
  865. ###############################################################
  866.  
  867. exec --no-startup-id xfce4-power-manager &
  868. # ommitted next line to get super key to bring up the menu in xfce and avoid error then in i3
  869. # IF xfsettingsd is activated you can not change themes
  870. #exec --no-startup-id xfsettingsd &
  871. exec --no-startup-id /usr/lib/xfce4/notifyd/xfce4-notifyd &
  872.  
  873. ######################## The End - Now Start Again ########################
  874. ####################################################################################################################
  875.  
  876. # All these words are empty baskets
  877. # Carried to the market square
  878. # Trading truth and lies in barter
  879. # Warranting warn buyer beware
  880.  
  881. # All these words are reeds I wove
  882. # Taught to hold my pauper’s share
  883. # Show me yours before and after
  884. # Out in the open we may compare
  885.  
  886. # All these words are on the table
  887. # Yoked to folly the shell game starts
  888. # Trick the eye they who are able
  889. # Cunning those the same the heart
  890.  
  891. # All these words are fruits of labour
  892. # Bounty’s grace on harvest’s day
  893. # Test taste and judge the many flavours
  894. # Fill your need be on your way
  895.  
  896. # All these words so meet and proper
  897. # Morning meals served hot or cold
  898. # Savour meaning old sharecropper
  899. # Recall the stories you were told
  900.  
  901. # All these words are open caskets
  902. # Life goes on even nothing’s fair
  903. # Gather seeds for ever after
  904. # Till the breach sow to repair
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement