24 lines
631 B
Bash
24 lines
631 B
Bash
#!/bin/sh
|
|
|
|
describe="Installs i3"
|
|
scripts="@distro @self"
|
|
|
|
apply() {
|
|
[ -d "$HOME/.config/i3" ] || mkdir -p $HOME/.config/i3
|
|
[ -d "$HOME/.config/i3status" ] || mkdir -p $HOME/.config/i3status
|
|
[ -e "$HOME/.config/i3/config" ] || ln files/config $HOME/.config/i3/config
|
|
[ -e "$HOME/.config/i3status/config" ] || ln files/status_config $HOME/.config/i3status/config
|
|
}
|
|
|
|
undo() {
|
|
rm $HOME/.config/i3/config
|
|
rm $HOME/.config/i3status/config
|
|
}
|
|
|
|
super_apply() {
|
|
cp files/40-proper-touchpad.conf /etc/X11/xorg.conf.d/40-proper-touchpad.conf
|
|
}
|
|
|
|
super_undo() {
|
|
rm /etc/X11/xorg.conf.d/40-proper-touchpad.conf
|
|
}
|