diff --git a/etc/systemd/system/x11vnc.service b/etc/systemd/system/x11vnc.service index f8b2ec6..1dfe5d7 100644 --- a/etc/systemd/system/x11vnc.service +++ b/etc/systemd/system/x11vnc.service @@ -5,8 +5,7 @@ After=graphical.target [Service] Type=simple -User=kan -ExecStart=/usr/bin/x11vnc -noxdamage -rfbauth /home/kan/.vnc/passwd -display :0 -forever +ExecStart=/usr/bin/x11vnc -noxdamage -rfbauth /var/run/vnc/passwd -display :0 -forever Restart=on-failure [Install] diff --git a/home/user/.config/i3/config b/home/user/.config/i3/config index 6b129f1..16625fb 100644 --- a/home/user/.config/i3/config +++ b/home/user/.config/i3/config @@ -221,9 +221,9 @@ exec --no-startup-id feh --randomize --no-fehbg --bg-scale $HOME/.wallpaper/* # default workspaces for monitors in setup workspace $ws1 output primary workspace $ws2 output primary +workspace $ws3 output primary workspace $ws9 output $SecMon workspace $ws10 output $SecMon -exec --no-startup-id i3-msg 'workspace $ws1; exec firefox' workspace hide1 output primary workspace hide2 output $SecMon diff --git a/install b/install index 73cb698..ded4b7e 100755 --- a/install +++ b/install @@ -1,9 +1,14 @@ #!/bin/bash +set -u + +readonly SANDBOX_PATH SANDBOX_PATH="/tmp/.dotfiles-install-$(date +%H-%M-%s)" + +readonly TARGET_PATH TARGET_PATH="$HOME" - +readonly SUB SUB="$(pwd)/home/user" @@ -47,7 +52,8 @@ _link_files_in_sandbox() { } _compare_sandbox_to_home() { - local comparisons="$(diff -rq "$SANDBOX_PATH" "$TARGET_PATH")" + local comparisons + comparisons="$(diff -rq "$SANDBOX_PATH" "$TARGET_PATH")" echo "$comparisons" | grep -vE "^Only in .+" } @@ -149,7 +155,8 @@ cmd_bat() { } cmd_ipython() { - local sub=".ipython" + local sub + sub=".ipython" _die_if_installed "$HOME/$sub" @@ -158,7 +165,8 @@ cmd_ipython() { } cmd_font() { - local sub="$HOME/.local/share/fonts" + local sub + sub="$HOME/.local/share/fonts" mkdir -p "$sub" cd "$sub"