Compare commits

...

3 Commits

Author SHA1 Message Date
fanyx 6c14f34484 Remove stupid default gnome keybindings 2023-06-08 17:11:39 +02:00
fanyx 7dc0c5cb23 fixes to void-install runsvdir templates 2023-06-08 16:54:24 +02:00
fanyx 20cc076a54 Update some stuff 2023-06-08 12:47:14 +02:00
7 changed files with 19 additions and 13 deletions

2
.alias
View File

@ -11,7 +11,7 @@ alias cat="bat -pp"
alias code="code-oss"
# dotfiles
alias dot="git --git-dir=$HOME/git/dotfiles/ --work-tree=$HOME"
alias dot="git --git-dir=$HOME/git/.dotfiles/ --work-tree=$HOME"
# k8s
alias k="kubectl"

View File

@ -1,5 +1,5 @@
# alias for kubectl to k
source <(kubectl completion bash)
command -v 2>&1 >/dev/null kubectl && source <(kubectl completion bash)
complete -o default -F __start_kubectl k

View File

@ -28,4 +28,4 @@ alias xcln="xr -oO"
# Docker
alias dc=docker-compose
eval "$(thefuck --alias)"
command -v 2>&1 >/dev/null thefuck && eval "$(thefuck --alias)"

View File

@ -1,5 +1,8 @@
# dotfiles
`mkdir -p git/.dotfiles && git init --bare git/.dotfiles`
`cd $HOME && git --git-dir=$HOME/git/.dotfiles --work-tree`
Contains .dotfiles for my debian and void distros.
Clone and `ln -s` the applicable files to the distro agnotic filenames. e.g.:

View File

@ -47,4 +47,7 @@ echo "${XDG_CONFIG_HOME}" >"${XDG_DATA_HOME}"/env/XDG_CONFIG_HOME
echo "${XDG_DATA_HOME}" >"${XDG_DATA_HOME}"/env/XDG_DATA_HOME
echo "${SVDIR}" >"${SVDIR}"/env/SVDIR
# gnome
for i in $(seq 1 9); do gsettings set org.gnome.shell.keybindings switch-to-application-$i []; done

6
void-install/sv/runsvdir/finish Normal file → Executable file
View File

@ -1,6 +1,6 @@
#!/bin/sh
user=@USER@
ZUSER=@USER@
sv -w600 force-stop /home/$user/sv/*
sv exit /home/$user/sv/*
sv -w600 force-stop /home/$ZUSER/sv/*
sv exit /home/$ZUSER/sv/*

14
void-install/sv/runsvdir/run Normal file → Executable file
View File

@ -1,13 +1,13 @@
#!/bin/sh
USER=@USER@
HOME="/home/$USER"
GROUPS=$(id -Gn "$USER" | tr ' ' ':')
ZUSER=@USER@
export HOME="/home/$ZUSER"
GROUPS=$(id -Gn "$ZUSER" | tr ' ' ':')
SVDIR="$HOME/sv"
ID=$(id -u $USER)
ID=$(id -u $ZUSER)
[ ! -d /run/user/$ID ] && \
mkdir -p /run/user/$USER && \
chown $USER:$USER /run/user/$USER
mkdir -p /run/user/$ZUSER && \
chown $ZUSER:$ZUSER /run/user/$ZUSER
exec chpst -u "$USER:$GROUPS" sh -l -c "exec runsvdir $SVDIR $USER '...'" $USER
exec chpst -u "$ZUSER:$GROUPS" sh -l -c "exec runsvdir $SVDIR $ZUSER '...'" $ZUSER