From c1e2aa9ffcf1c4ee116b0495b6e8bf6ba67c5188 Mon Sep 17 00:00:00 2001 From: Hekuran <62762955+narukeh@users.noreply.github.com> Date: Wed, 8 Apr 2020 16:16:59 +0200 Subject: [PATCH 1/3] Move bg link to ~/.local/share/ (#545) * Move bg link to ~/.local/share/ often the ~/.cache directory is deleted because it gets too big, in my case if i compile stuff with yay, firefoxs chace also gets quite big, and mesa shaders are also stored there. * added a symlink to .config/wall.png * removed the .cache dir --- .cache/bg | 1 - .local/bin/setbg | 2 +- .local/share/bg | 1 + 3 files changed, 2 insertions(+), 2 deletions(-) delete mode 120000 .cache/bg create mode 120000 .local/share/bg diff --git a/.cache/bg b/.cache/bg deleted file mode 120000 index 787af6fd..00000000 --- a/.cache/bg +++ /dev/null @@ -1 +0,0 @@ -../.config/wall.png \ No newline at end of file diff --git a/.local/bin/setbg b/.local/bin/setbg index 7b07e23e..82693787 100755 --- a/.local/bin/setbg +++ b/.local/bin/setbg @@ -7,7 +7,7 @@ # If wal is installed, also generate a colorscheme. # Location of link to wallpaper link. -bgloc="${XDG_CACHE_HOME:-$HOME/.cache/}/bg" +bgloc="${XDG_DATA_HOME:-$HOME/.local/share/}/bg" [ -f "$1" ] && ln -sf "$(readlink -f "$1")" "$bgloc" && notify-send -i "$bgloc" "Changing wallpaper..." diff --git a/.local/share/bg b/.local/share/bg new file mode 120000 index 00000000..6c5d2998 --- /dev/null +++ b/.local/share/bg @@ -0,0 +1 @@ +../../.config/wall.png \ No newline at end of file From dd6f9631151e6568b652608a4f3966fd259f9f75 Mon Sep 17 00:00:00 2001 From: Vlad Doster Date: Wed, 8 Apr 2020 09:24:39 -0500 Subject: [PATCH 2/3] Update .xprofile --- .xprofile | 1 - 1 file changed, 1 deletion(-) diff --git a/.xprofile b/.xprofile index c2e2ac96..6bb6b5a6 100644 --- a/.xprofile +++ b/.xprofile @@ -7,6 +7,5 @@ remaps & # run the remaps script, switching caps/esc and more; chec setbg & # set the background with the `setbg` script xcompmgr & # xcompmgr for transparency dunst & # dunst for notifications -#imwheel & # imwheel for disabling scroll issues in st xset r rate 300 50 & # Speed xrate up unclutter & # Remove mouse when idle From 07360364e7cb07bde94b015adc442a5dc04e1091 Mon Sep 17 00:00:00 2001 From: Vlad Doster Date: Wed, 8 Apr 2020 10:35:18 -0500 Subject: [PATCH 3/3] Update .xinitrc --- .xinitrc | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/.xinitrc b/.xinitrc index 405c2b1d..df60731b 100644 --- a/.xinitrc +++ b/.xinitrc @@ -4,15 +4,12 @@ # There are some small but important commands that need to be run when we start # the graphical environment. Those commands reside in ~/.xprofile because that -# file runs automatically if someone uses a display manager (login screen) -# and so they are needed there. To prevent doubling up commands, I source them -# here with the line below. +# file runs automatically. [ -f ~/.xprofile ] && . ~/.xprofile +# [ -f ~/.profile ] && . ~/.profile -[ -f ~/.profile ] && . ~/.profile - -# if problems occur, log to file for debugging: -#exec i3 -V >> ~/i3log-$(date +'%F-%k-%M-%S') 2>&1 +# Log to file in $HOME for debugging: +#exec i3 -V >> $HOME/i3log-$(date +'%F-%k-%M-%S') 2>&1 # else: exec i3