Compare commits
No commits in common. "c51c7a757cd9e06d3ccfde3c1b630d62f6bc0093" and "570fc79fa9152dc411fb748a467b845c865311f9" have entirely different histories.
c51c7a757c
...
570fc79fa9
|
@ -1,10 +1,10 @@
|
|||
profile multihead {
|
||||
output eDP-1 enable
|
||||
output DP-1 enable
|
||||
output HDMI-A-2 enable
|
||||
exec swaymsg workspace "1: ", move workspace to eDP-1
|
||||
exec swaymsg workspace "3: ", move workspace to eDP-1
|
||||
exec swaymsg workspace "2: ", move workspace to DP-1
|
||||
exec swaymsg workspace "4: ", move workspace to DP-1
|
||||
exec swaymsg workspace "2: ", move workspace to HDMI-A-2
|
||||
exec swaymsg workspace "4: ", move workspace to HDMI-A-2
|
||||
exec light -S 100
|
||||
exec light -s sysfs/leds/tpacpi::kbd_backlight -S 0
|
||||
exec pkill waybar; waybar
|
||||
|
@ -14,4 +14,5 @@ profile nomad {
|
|||
output eDP-1 enable mode 1920x1080
|
||||
exec light -S 70
|
||||
exec pkill waybar; waybar
|
||||
exec pkill Xwayland
|
||||
}
|
||||
|
|
|
@ -9,22 +9,6 @@ usage() {
|
|||
exit 1
|
||||
}
|
||||
|
||||
copy_nix_files() {
|
||||
cp ~/Documents/IT/shell.nix .
|
||||
cp ~/Documents/IT/flake-template.nix flake.nix
|
||||
}
|
||||
|
||||
git_initialization() {
|
||||
git init
|
||||
git add ./*
|
||||
git commit -m "Initial commit"
|
||||
}
|
||||
|
||||
direnv_integration() {
|
||||
echo "use flake" >.envrc
|
||||
direnv allow
|
||||
}
|
||||
|
||||
if [ $# != 1 ]; then
|
||||
usage
|
||||
fi
|
||||
|
@ -32,26 +16,35 @@ fi
|
|||
type=$1
|
||||
|
||||
if [ "$type" = "git" ]; then
|
||||
git init
|
||||
cp ~/Documents/IT/shell.nix .
|
||||
cp ~/Documents/IT/flake-template.nix flake.nix
|
||||
mkdir src data
|
||||
copy_nix_files
|
||||
git_initialization
|
||||
direnv_integration
|
||||
git add ./*
|
||||
git commit -m "Initial commit"
|
||||
echo "use flake" >.envrc
|
||||
direnv allow
|
||||
elif [ "$type" = "remote-git" ]; then
|
||||
git init
|
||||
touch README.org
|
||||
cp ~/Documents/IT/gpl-3.0.md LICENSE.md
|
||||
copy_nix_files
|
||||
cp ~/Documents/IT/shell.nix .
|
||||
cp ~/Documents/IT/flake-template.nix flake.nix
|
||||
mkdir src tests data
|
||||
git_initialization
|
||||
direnv_integration
|
||||
git add ./*
|
||||
git commit -m "Initial commit"
|
||||
echo "use flake" >.envrc
|
||||
direnv allow
|
||||
elif [ "$type" = "doc" ]; then
|
||||
mkdir docs docs/assets
|
||||
touch docs/Summary.org
|
||||
touch .project
|
||||
elif [ "$type" = "src" ]; then
|
||||
copy_nix_files
|
||||
cp ~/Documents/IT/shell.nix .
|
||||
mkdir src data
|
||||
touch .project
|
||||
direnv_integration
|
||||
echo "use nix" >.envrc
|
||||
direnv allow
|
||||
else
|
||||
usage
|
||||
fi
|
||||
|
|
Loading…
Reference in New Issue