- Fixed i3lock re-using the last image

- Set up /etc/environment sharing
This commit is contained in:
Rick van Lieshout 2022-08-03 21:28:16 +02:00
parent d28b21dcdf
commit 414bb14b1b
4 changed files with 23 additions and 10 deletions

View File

@ -5,6 +5,11 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to date versioning. and this project adheres to date versioning.
## [2022-08-03]
- Fixed i3lock re-using the last image
- Set up /etc/environment sharing
## [2022-07-26] ## [2022-07-26]
- Added `vers=2.1` to `mount.cifs` command in [mounts.sh](./bash/mounts.sh) to fix an [upstream bug](https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=linux-5.18.y&id=ca83f50b43a099345e61950f74c4d9eb81c765fe) - Added `vers=2.1` to `mount.cifs` command in [mounts.sh](./bash/mounts.sh) to fix an [upstream bug](https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=linux-5.18.y&id=ca83f50b43a099345e61950f74c4d9eb81c765fe)

7
config/environment Normal file
View File

@ -0,0 +1,7 @@
#
# This file is parsed by pam_env module
#
# Syntax: simple "KEY=VAL" pairs on separate lines
#
XCURSOR_THEME="Adwaita"
EDITOR="nano"

View File

@ -4,7 +4,7 @@ icon="$HOME/.config/i3/icons/lock.png"
tmpbg='/tmp/screen.png' tmpbg='/tmp/screen.png'
# detect whether tidal is running # detect whether tidal is running
isPlaying=$(~/.config/i3/scripts/tidal-cli.sh status); isPlaying=$(~/.config/i3/scripts/tidal-cli.sh status)
scrot "$tmpbg" scrot "$tmpbg"
convert "$tmpbg" -scale 10% -scale 1000% "$tmpbg" convert "$tmpbg" -scale 10% -scale 1000% "$tmpbg"
@ -15,15 +15,15 @@ convert "$tmpbg" "$icon" -gravity center -composite -matte "$tmpbg"
# check whether the lockscreen is being activated because of a suspend # check whether the lockscreen is being activated because of a suspend
if [[ $* == *--suspend ]]; then if [[ $* == *--suspend ]]; then
# if it is, simply lock without no-fork # if it is, simply lock without no-fork
i3lock -f -i "$tmpbg"; i3lock -f -i "$tmpbg"
else else
# if it isn't suspended, enable no-fork # if it isn't suspended, enable no-fork
i3lock -n -f -i "$tmpbg"; i3lock -n -f -i "$tmpbg"
# if tidal was playing before we locked, resume.
if [ $isPlaying == "playing" ]; then
~/.config/i3/scripts/tidal-cli.sh play
fi;
# if tidal was playing before we locked, resume.
if [ $isPlaying == "playing" ]; then
~/.config/i3/scripts/tidal-cli.sh play
fi
rm -rf $tmpbg
fi fi

View File

@ -110,6 +110,7 @@ function install_config {
sudo ln -sf "$PWD"/config/package-managers/makepkg.conf /etc/makepkg.conf sudo ln -sf "$PWD"/config/package-managers/makepkg.conf /etc/makepkg.conf
sudo ln -sf "$PWD"/config/ntp.conf /etc/ntp.conf sudo ln -sf "$PWD"/config/ntp.conf /etc/ntp.conf
sudo ln -sf "$PWD"/bash/Completion/ /etc/bash_completion.d sudo ln -sf "$PWD"/bash/Completion/ /etc/bash_completion.d
sudo ln -sf "$PWD"/config/environment /etc/environment
# create empty .custom alias file # create empty .custom alias file
echo "" >~/.custom echo "" >~/.custom