1
0

Merge branch 'main' of git.sr.ht:~trinity/dotfiles

This commit is contained in:
dtb 2021-11-17 09:53:40 -05:00
commit a8441679c7
8 changed files with 16 additions and 33 deletions

3
dotfiles-old/.config/displaym/bspwm/start.sh Normal file → Executable file
View File

@ -1,2 +1,3 @@
cat "$DISPLAYM_CONFIG/sxhkdrc" "$DISPLAYM_CONFIG/bspwm/sxhkdrc" >"$HOME/.config/sxhkd/sxhkdrc"
. "$DISPLAYM_CONFIG/merge_xinitrc.sh"
. "$DISPLAYM_CONFIG/merge_sxhkdrc.sh"
startx

View File

@ -1,2 +1,3 @@
cat "$DISPLAYM_CONFIG/sxhkdrc" >"$HOME/.config/sxhkd/sxhkdrc"
. "$DISPLAYM_CONFIG/merge_xinitrc.sh"
. "$DISPLAYM_CONFIG/default_sxhkdrc.sh"
startx

View File

@ -0,0 +1,2 @@
#!/bin/sh
cp "$DISPLAYM_CONFIG/sxhkdrc" "$HOME/.config/sxhkd/sxhkdrc"

View File

@ -0,0 +1,2 @@
#!/bin/sh
cp "$DISPLAYM_CONFIG/.xinitrc" "$HOME/.xinitrc"

View File

@ -0,0 +1,3 @@
#!/bin/sh
. "$DISPLAYM_CONFIG/merge_xinitrc.sh"
. "$DISPLAYM_CONFIG/merge_sxhkdrc.sh"

View File

@ -0,0 +1,3 @@
#!/bin/sh
cat "$DISPLAYM_CONFIG/sxhkdrc" "$DISPLAYM_CONFIG/$WM/sxhkdrc" \
>"$HOME/.config/sxhkd/sxhkdrc"

View File

@ -0,0 +1,2 @@
#!/bin/sh
cat "$DISPLAYM_CONFIG/.xinitrc" "$DISPLAYM_CONFIG/$WM/.xinitrc" >"$HOME/.xinitrc"

View File

@ -1,31 +0,0 @@
#!/bin/sh
set -ex
usage() {
set +x
printf "\
Usage:
%s start [window manager]\n" "$argv0" >>/dev/stderr
exit 1
}
[ -n "$1" ] || usage
# assumption: $HOME contains the path to the user's home directory
DISPLAYM_CONFIG="$HOME/.config/displaym"; export DISPLAYM_CONFIG
[ -d "$DISPLAYM_CONFIG" ] || mkdir -p "$DISPLAYM_CONFIG"
case "$1" in
(start)
WM="$2"; export WM
cat "$DISPLAYM_CONFIG/.xinitrc" "$DISPLAYM_CONFIG/$WM/.xinitrc" >"$HOME/.xinitrc"
sh "$DISPLAYM_CONFIG/$WM/start.sh"
;;
(stop)
sh "$DISPLAYM_CONFIG/$WM/stop.sh"
pkill "$WM"
;;
(*) usage ;;
esac