config: improve bootstrapping of doom & co
This commit is contained in:
parent
ef6581bde3
commit
f30d026a9d
|
@ -1,3 +1,4 @@
|
||||||
local.el
|
local.el
|
||||||
|
user.el
|
||||||
custom.el
|
custom.el
|
||||||
user.el
|
user.el
|
||||||
|
|
|
@ -0,0 +1,10 @@
|
||||||
|
## Resize in normal mode with vim keys
|
||||||
|
$bindsym $mod+Ctrl+Shift+$left resize shrink width 20px
|
||||||
|
$bindsym $mod+Ctrl+Shift+$down resize grow height 20px
|
||||||
|
$bindsym $mod+Ctrl+Shift+$up resize shrink height 20px
|
||||||
|
$bindsym $mod+Ctrl+Shift+$right resize grow width 20px
|
||||||
|
# Or with arrow keys
|
||||||
|
$bindsym $mod+Ctrl+Shift+Left resize shrink width 20px
|
||||||
|
$bindsym $mod+Ctrl+Shift+Down resize grow height 20px
|
||||||
|
$bindsym $mod+Ctrl+Shift+Up resize shrink height 20px
|
||||||
|
$bindsym $mod+Ctrl+Shift+Right resize grow width 20px
|
|
@ -0,0 +1,6 @@
|
||||||
|
set $term kitty
|
||||||
|
|
||||||
|
set $left h
|
||||||
|
set $down j
|
||||||
|
set $up k
|
||||||
|
set $right l
|
|
@ -31,6 +31,11 @@ test -d "/etc/yadm" || sy clone
|
||||||
|
|
||||||
SECTION "Software"
|
SECTION "Software"
|
||||||
|
|
||||||
|
doomuser="$XDG_CONFIG_HOME/doom/user.el"
|
||||||
|
test -d "$(dirname "$doomuser")" &&
|
||||||
|
! test -f "$doomuser" &&
|
||||||
|
cp -v "$(dirname "$doomuser")/user.template.el" "$doomuser"
|
||||||
|
|
||||||
link() {
|
link() {
|
||||||
test -e "$2" -o -h "$2" || $($HOME/.local/bin/scripts/checkaccess -w "$2" || echo sudo) ln -sv "$@"
|
test -e "$2" -o -h "$2" || $($HOME/.local/bin/scripts/checkaccess -w "$2" || echo sudo) ln -sv "$@"
|
||||||
}
|
}
|
||||||
|
@ -46,7 +51,7 @@ link batcat /usr/bin/bat
|
||||||
|
|
||||||
highlight "SSH Permissions"
|
highlight "SSH Permissions"
|
||||||
chmod og= $HOME/.ssh -R
|
chmod og= $HOME/.ssh -R
|
||||||
chmod a+r $HOME/.ssh/keys/*.pub
|
test -d "$HOME/.ssh/keys" && chmod a+r $HOME/.ssh/keys/*.pub
|
||||||
_ovpn="$XDG_DATA_HOME/openvpn"
|
_ovpn="$XDG_DATA_HOME/openvpn"
|
||||||
test -d "$_ovpn" &&
|
test -d "$_ovpn" &&
|
||||||
sudo rm -vdf /etc/openvpn/client &&
|
sudo rm -vdf /etc/openvpn/client &&
|
||||||
|
@ -85,7 +90,8 @@ if test -f /etc/pacman.conf; then
|
||||||
subhighlight "Pacman"
|
subhighlight "Pacman"
|
||||||
sudo sed -i 's/#Color/Color/' /etc/pacman.conf
|
sudo sed -i 's/#Color/Color/' /etc/pacman.conf
|
||||||
sudo sed -i "$(grep -n "\[multilib\]" /etc/pacman.conf | cut -d':' -f1),+1 s/# *//" /etc/pacman.conf
|
sudo sed -i "$(grep -n "\[multilib\]" /etc/pacman.conf | cut -d':' -f1),+1 s/# *//" /etc/pacman.conf
|
||||||
subhighlight "Reflector"
|
if which reflector 2>/dev/null
|
||||||
|
then subhighlight "Reflector"
|
||||||
echo "--save /etc/pacman.d/mirrorlist
|
echo "--save /etc/pacman.d/mirrorlist
|
||||||
--protocol https
|
--protocol https
|
||||||
--country Germany
|
--country Germany
|
||||||
|
@ -95,6 +101,7 @@ if test -f /etc/pacman.conf; then
|
||||||
sudo systemctl start reflector &
|
sudo systemctl start reflector &
|
||||||
sudo systemctl enable reflector.timer
|
sudo systemctl enable reflector.timer
|
||||||
fi
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
test "$DISPLAY" || exit 0
|
test "$DISPLAY" || exit 0
|
||||||
highlight "Desktop Applications"
|
highlight "Desktop Applications"
|
||||||
|
@ -111,7 +118,7 @@ if ! test -d "$mx"
|
||||||
then mkdir "$mx" && ln -sv -t "$mx" ${XDG_DATA_HOME:-$HOME/.local/share}/mixxx/* ${XDG_CONFIG_HOME:-$HOME/.config}/mixxx/*
|
then mkdir "$mx" && ln -sv -t "$mx" ${XDG_DATA_HOME:-$HOME/.local/share}/mixxx/* ${XDG_CONFIG_HOME:-$HOME/.config}/mixxx/*
|
||||||
fi
|
fi
|
||||||
|
|
||||||
subhighlight "Block internet at night & on weekdays in the morning to force focus"
|
#subhighlight "Block internet at night & on weekdays in the morning to force focus"
|
||||||
#walli 22 --save
|
#walli 22 --save
|
||||||
# TODO netkeeper
|
# TODO netkeeper
|
||||||
|
|
||||||
|
|
|
@ -4,5 +4,6 @@ $XDG_CONFIG_HOME/git
|
||||||
$XDG_CONFIG_HOME/nvim
|
$XDG_CONFIG_HOME/nvim
|
||||||
$XDG_CONFIG_HOME/espanso
|
$XDG_CONFIG_HOME/espanso
|
||||||
$XDG_CONFIG_HOME/zsh/completion
|
$XDG_CONFIG_HOME/zsh/completion
|
||||||
|
$XDG_CONFIG_HOME/sway/*.d/*.conf
|
||||||
$CONFIG_SHELLS
|
$CONFIG_SHELLS
|
||||||
$HOME/.local/bin/*/
|
$HOME/.local/bin/*/
|
||||||
|
|
Loading…
Reference in New Issue