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