Merge branch 'main' of git.sr.ht:~trinity/dotfiles
This commit is contained in:
		
						commit
						a8441679c7
					
				
							
								
								
									
										3
									
								
								dotfiles-old/.config/displaym/bspwm/start.sh
									
									
									
									
									
										
										
										Normal file → Executable file
									
								
							
							
						
						
									
										3
									
								
								dotfiles-old/.config/displaym/bspwm/start.sh
									
									
									
									
									
										
										
										Normal file → Executable 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
 | 
			
		||||
 | 
			
		||||
@ -1,2 +1,3 @@
 | 
			
		||||
cat "$DISPLAYM_CONFIG/sxhkdrc" >"$HOME/.config/sxhkd/sxhkdrc"
 | 
			
		||||
. "$DISPLAYM_CONFIG/merge_xinitrc.sh"
 | 
			
		||||
. "$DISPLAYM_CONFIG/default_sxhkdrc.sh"
 | 
			
		||||
startx
 | 
			
		||||
 | 
			
		||||
							
								
								
									
										2
									
								
								dotfiles-old/.config/displaym/default_sxhkdrc.sh
									
									
									
									
									
										Executable file
									
								
							
							
						
						
									
										2
									
								
								dotfiles-old/.config/displaym/default_sxhkdrc.sh
									
									
									
									
									
										Executable file
									
								
							@ -0,0 +1,2 @@
 | 
			
		||||
#!/bin/sh
 | 
			
		||||
cp "$DISPLAYM_CONFIG/sxhkdrc" "$HOME/.config/sxhkd/sxhkdrc"
 | 
			
		||||
							
								
								
									
										2
									
								
								dotfiles-old/.config/displaym/default_xinitrc.sh
									
									
									
									
									
										Executable file
									
								
							
							
						
						
									
										2
									
								
								dotfiles-old/.config/displaym/default_xinitrc.sh
									
									
									
									
									
										Executable file
									
								
							@ -0,0 +1,2 @@
 | 
			
		||||
#!/bin/sh
 | 
			
		||||
cp "$DISPLAYM_CONFIG/.xinitrc" "$HOME/.xinitrc"
 | 
			
		||||
							
								
								
									
										3
									
								
								dotfiles-old/.config/displaym/i3wm/start.sh
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										3
									
								
								dotfiles-old/.config/displaym/i3wm/start.sh
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1,3 @@
 | 
			
		||||
#!/bin/sh
 | 
			
		||||
. "$DISPLAYM_CONFIG/merge_xinitrc.sh"
 | 
			
		||||
. "$DISPLAYM_CONFIG/merge_sxhkdrc.sh"
 | 
			
		||||
							
								
								
									
										3
									
								
								dotfiles-old/.config/displaym/merge_sxhkdrc.sh
									
									
									
									
									
										Executable file
									
								
							
							
						
						
									
										3
									
								
								dotfiles-old/.config/displaym/merge_sxhkdrc.sh
									
									
									
									
									
										Executable file
									
								
							@ -0,0 +1,3 @@
 | 
			
		||||
#!/bin/sh
 | 
			
		||||
cat "$DISPLAYM_CONFIG/sxhkdrc" "$DISPLAYM_CONFIG/$WM/sxhkdrc" \
 | 
			
		||||
	>"$HOME/.config/sxhkd/sxhkdrc"
 | 
			
		||||
							
								
								
									
										2
									
								
								dotfiles-old/.config/displaym/merge_xinitrc.sh
									
									
									
									
									
										Executable file
									
								
							
							
						
						
									
										2
									
								
								dotfiles-old/.config/displaym/merge_xinitrc.sh
									
									
									
									
									
										Executable file
									
								
							@ -0,0 +1,2 @@
 | 
			
		||||
#!/bin/sh
 | 
			
		||||
cat "$DISPLAYM_CONFIG/.xinitrc" "$DISPLAYM_CONFIG/$WM/.xinitrc" >"$HOME/.xinitrc"
 | 
			
		||||
@ -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
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user