install-script(debug)

This commit is contained in:
TheK4n 2023-09-04 19:42:04 +03:00
parent e2e7f25ca8
commit 2247e334ab
3 changed files with 14 additions and 7 deletions

View File

@ -5,8 +5,7 @@ After=graphical.target
[Service] [Service]
Type=simple Type=simple
User=kan ExecStart=/usr/bin/x11vnc -noxdamage -rfbauth /var/run/vnc/passwd -display :0 -forever
ExecStart=/usr/bin/x11vnc -noxdamage -rfbauth /home/kan/.vnc/passwd -display :0 -forever
Restart=on-failure Restart=on-failure
[Install] [Install]

View File

@ -221,9 +221,9 @@ exec --no-startup-id feh --randomize --no-fehbg --bg-scale $HOME/.wallpaper/*
# default workspaces for monitors in setup # default workspaces for monitors in setup
workspace $ws1 output primary workspace $ws1 output primary
workspace $ws2 output primary workspace $ws2 output primary
workspace $ws3 output primary
workspace $ws9 output $SecMon workspace $ws9 output $SecMon
workspace $ws10 output $SecMon workspace $ws10 output $SecMon
exec --no-startup-id i3-msg 'workspace $ws1; exec firefox'
workspace hide1 output primary workspace hide1 output primary
workspace hide2 output $SecMon workspace hide2 output $SecMon

16
install
View File

@ -1,9 +1,14 @@
#!/bin/bash #!/bin/bash
set -u
readonly SANDBOX_PATH
SANDBOX_PATH="/tmp/.dotfiles-install-$(date +%H-%M-%s)" SANDBOX_PATH="/tmp/.dotfiles-install-$(date +%H-%M-%s)"
readonly TARGET_PATH
TARGET_PATH="$HOME" TARGET_PATH="$HOME"
readonly SUB
SUB="$(pwd)/home/user" SUB="$(pwd)/home/user"
@ -47,7 +52,8 @@ _link_files_in_sandbox() {
} }
_compare_sandbox_to_home() { _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 .+" echo "$comparisons" | grep -vE "^Only in .+"
} }
@ -149,7 +155,8 @@ cmd_bat() {
} }
cmd_ipython() { cmd_ipython() {
local sub=".ipython" local sub
sub=".ipython"
_die_if_installed "$HOME/$sub" _die_if_installed "$HOME/$sub"
@ -158,7 +165,8 @@ cmd_ipython() {
} }
cmd_font() { cmd_font() {
local sub="$HOME/.local/share/fonts" local sub
sub="$HOME/.local/share/fonts"
mkdir -p "$sub" mkdir -p "$sub"
cd "$sub" cd "$sub"