mirror of
https://github.com/Mastermindzh/dotfiles.git
synced 2024-11-21 22:33:42 +01:00
- Fixed i3lock re-using the last image
- Set up /etc/environment sharing
This commit is contained in:
parent
d28b21dcdf
commit
414bb14b1b
@ -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/),
|
||||
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]
|
||||
|
||||
- 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
7
config/environment
Normal 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"
|
@ -4,7 +4,7 @@ icon="$HOME/.config/i3/icons/lock.png"
|
||||
tmpbg='/tmp/screen.png'
|
||||
|
||||
# detect whether tidal is running
|
||||
isPlaying=$(~/.config/i3/scripts/tidal-cli.sh status);
|
||||
isPlaying=$(~/.config/i3/scripts/tidal-cli.sh status)
|
||||
|
||||
scrot "$tmpbg"
|
||||
convert "$tmpbg" -scale 10% -scale 1000% "$tmpbg"
|
||||
@ -16,14 +16,14 @@ convert "$tmpbg" "$icon" -gravity center -composite -matte "$tmpbg"
|
||||
# check whether the lockscreen is being activated because of a suspend
|
||||
if [[ $* == *--suspend ]]; then
|
||||
# if it is, simply lock without no-fork
|
||||
i3lock -f -i "$tmpbg";
|
||||
i3lock -f -i "$tmpbg"
|
||||
else
|
||||
# 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;
|
||||
|
||||
fi
|
||||
rm -rf $tmpbg
|
||||
fi
|
||||
|
@ -110,6 +110,7 @@ function install_config {
|
||||
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"/bash/Completion/ /etc/bash_completion.d
|
||||
sudo ln -sf "$PWD"/config/environment /etc/environment
|
||||
|
||||
# create empty .custom alias file
|
||||
echo "" >~/.custom
|
||||
|
Loading…
Reference in New Issue
Block a user