Compare commits

...

2 Commits

3 changed files with 27 additions and 0 deletions

View File

@@ -7,11 +7,18 @@ apps=(
vesktop vesktop
trayscale trayscale
1password 1password
fcitx5
) )
echo "Starting auto-start applications..." echo "Starting auto-start applications..."
for app in "${apps[@]}"; do for app in "${apps[@]}"; do
if [ -x "$(command -v $app)" ]; then if [ -x "$(command -v $app)" ]; then
# Check if there's already a screen session with the same name
if screen -list | grep -q $app; then
echo "$app is already running. Skipping..."
continue
fi
echo "Starting $app..." echo "Starting $app..."
screen -dmS $app $app screen -dmS $app $app
sleep 1 sleep 1

View File

@@ -55,6 +55,15 @@ secrets() {
"$secrets_script" "$@" "$secrets_script" "$@"
} }
auto_start() {
local auto_start_script="$DOTFILES_BIN/actions/auto-start.sh"
if [[ ! -x "$auto_start_script" ]]; then
printfe "%s\n" "red" "Error: Auto-start script not found or not executable"
return 1
fi
"$auto_start_script" "$@"
}
ensure_git_hooks() { ensure_git_hooks() {
local hooks_dir="$DOTFILES_ROOT/.git/hooks" local hooks_dir="$DOTFILES_ROOT/.git/hooks"
local target_link="$DOTFILES_BIN/actions/git" local target_link="$DOTFILES_BIN/actions/git"
@@ -108,6 +117,7 @@ main() {
help) shift; help "$@" ;; help) shift; help "$@" ;;
term) shift; term "$@" ;; term) shift; term "$@" ;;
secrets) shift; secrets "$@" ;; secrets) shift; secrets "$@" ;;
auto-start) shift; auto_start "$@" ;;
*) help ;; *) help ;;
esac esac
} }

View File

@@ -25,6 +25,16 @@
pulse.enable = true; pulse.enable = true;
}; };
# Japanese input
i18n.inputMethod = {
enabled = "fcitx5";
fcitx5.addons = with pkgs; [
fcitx5-mozc
fcitx5-gtk
];
ibus.engines = with pkgs.ibus-engines; [ mozc ];
};
# Open ports in the firewall # Open ports in the firewall
networking.firewall = { networking.firewall = {
enable = true; enable = true;