A collection of useful shell scripts for i3wm
This script allows you to seperate your i3 config into multiple sub configs.
- Add your sub configs to the following directory:
$XDG_CONFIG_HOME/i3/configs
- Add the name of each sub config separated by a new line to the following file:
$XDG_CONFIG_HOME/i3/data/list
- Replace your reload bind with the following line:
bindsym --release $mod+Shift+r exec --no-startup-id i3-modular-config
- Run i3-modular-config
Tip: Make sure that the script can be found in your $PATH.
~/.config/i3/
├── configs
│ ├── app.config
│ ├── bar.config
│ ├── bind.config
│ ├── float.config
│ ├── gap.config
│ ├── main.config
│ └── mode.config
└── data
└── list
~/.config/i3/data/list
main.config
float.config
bind.config
app.config
mode.config
gap.config
bar.config
Wrapper script for the i3 kill command
- add the name of the windows you wish to persist, each separated by a new line to ~/.config/i3/data/persist.
- Bind your prefered window kill key combo to this script.
This scripts allows i3 to remember floating windows after closing them.
i3-modular-config
This dependency is needed for a clean setup
- Setup i3-modular-config
- Create the following sub config:
~/.config/i3/configs/float.config
- Add the above sub config to the list of configs mentioned in the i3-modular-config README
- Replace your floating toggle bind with the following line:
bindsym $mod+Shift+space exec --no-startup-id i3-auto-float
Tip: Make sure that the script can be found in your $PATH.