Separate wallpaper and lockscreen by host
Signed-off-by: Severin Kaderli <severin@kaderli.dev>
This commit is contained in:
parent
14e80e6bf2
commit
b4b02847dd
13 changed files with 83 additions and 49 deletions
BIN
assets/lockscreen.odin.jpg
Normal file
BIN
assets/lockscreen.odin.jpg
Normal file
Binary file not shown.
After Width: | Height: | Size: 298 KiB |
BIN
assets/wallpaper.odin.jpg
Normal file
BIN
assets/wallpaper.odin.jpg
Normal file
Binary file not shown.
After Width: | Height: | Size: 319 KiB |
39
install
39
install
|
@ -13,24 +13,25 @@
|
||||||
#
|
#
|
||||||
# USAGE:
|
# USAGE:
|
||||||
# ./install
|
# ./install
|
||||||
|
. ./system/.config/custom/env
|
||||||
. ./system/.local/bin/utils
|
. ./system/.local/bin/utils
|
||||||
|
|
||||||
###############################################################################
|
###############################################################################
|
||||||
# Configuration variables #
|
# Configuration variables #
|
||||||
###############################################################################
|
###############################################################################
|
||||||
# The user for the installation
|
HOST="$(hostname)"
|
||||||
USER="severin"
|
|
||||||
|
|
||||||
# Directories which should be created
|
# Directories which should be created
|
||||||
DIRECTORIES=(
|
DIRECTORIES=(
|
||||||
".local/log"
|
".local/log"
|
||||||
"Build"
|
"Build"
|
||||||
"Downloads"
|
"Downloads"
|
||||||
|
"Keys"
|
||||||
|
"Music"
|
||||||
|
"Pictures"
|
||||||
"Projects"
|
"Projects"
|
||||||
"Tasks"
|
"Tasks"
|
||||||
"Videos"
|
"Videos"
|
||||||
"Pictures"
|
|
||||||
"Music"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
# Files which should be symlinked in the home folder
|
# Files which should be symlinked in the home folder
|
||||||
|
@ -95,20 +96,15 @@ SYSTEMD_SERVICES=(
|
||||||
"NetworkManager"
|
"NetworkManager"
|
||||||
"org.cups.cupsd"
|
"org.cups.cupsd"
|
||||||
"suspend"
|
"suspend"
|
||||||
|
"xboxdrv"
|
||||||
)
|
)
|
||||||
|
|
||||||
#######################################
|
###############################################################################
|
||||||
# Main code
|
# Install package manager and packages #
|
||||||
#######################################
|
###############################################################################
|
||||||
print_section "Installing requirements"
|
print_section "Installing requirements"
|
||||||
sudo pacman -S git base-devel --noconfirm --needed
|
sudo pacman -S git base-devel --noconfirm --needed
|
||||||
|
|
||||||
print_section "Creating directories"
|
|
||||||
for dir in "${DIRECTORIES[@]}"
|
|
||||||
do
|
|
||||||
create_directory "${dir}"
|
|
||||||
done
|
|
||||||
|
|
||||||
print_section "Installing yay"
|
print_section "Installing yay"
|
||||||
is_yay_installed=$(command -v yay)
|
is_yay_installed=$(command -v yay)
|
||||||
|
|
||||||
|
@ -128,8 +124,17 @@ fi
|
||||||
print_section "Installing packages"
|
print_section "Installing packages"
|
||||||
package_count=$(< "${PACKAGES_DIR}/packages.list" wc -l)
|
package_count=$(< "${PACKAGES_DIR}/packages.list" wc -l)
|
||||||
print_log "Installing ${package_count} packages"
|
print_log "Installing ${package_count} packages"
|
||||||
# Install packages
|
yay -S --noconfirm --needed $(cat "${PACKAGES_DIR}/packages.list")
|
||||||
#yay -S --noconfirm $(cat "${PACKAGES_DIR}/packages.list")
|
|
||||||
|
|
||||||
|
###############################################################################
|
||||||
|
# Create directories and symlinks #
|
||||||
|
###############################################################################
|
||||||
|
print_section "Creating directories"
|
||||||
|
for dir in "${DIRECTORIES[@]}"
|
||||||
|
do
|
||||||
|
create_directory "${dir}"
|
||||||
|
done
|
||||||
|
|
||||||
print_section "Creating symlinks"
|
print_section "Creating symlinks"
|
||||||
for file in "${LINKED_FILES_HOME[@]}";
|
for file in "${LINKED_FILES_HOME[@]}";
|
||||||
|
@ -180,6 +185,10 @@ do
|
||||||
copy_sudoers_content "${file}"
|
copy_sudoers_content "${file}"
|
||||||
done
|
done
|
||||||
|
|
||||||
|
print_section "Set lockscreen image"
|
||||||
|
echo "${DOTFILES}/assets/lockscreen.${HOST}.jpg"
|
||||||
|
betterlockscreen -u "${DOTFILES}/assets/lockscreen.${HOST}.jpg"
|
||||||
|
|
||||||
print_section "Create issue file"
|
print_section "Create issue file"
|
||||||
{
|
{
|
||||||
echo '\e{red}';
|
echo '\e{red}';
|
||||||
|
|
|
@ -19,7 +19,6 @@ betterlockscreen-git
|
||||||
biber
|
biber
|
||||||
binutils
|
binutils
|
||||||
bison
|
bison
|
||||||
bless
|
|
||||||
blueman
|
blueman
|
||||||
bluez-utils
|
bluez-utils
|
||||||
bzip2
|
bzip2
|
||||||
|
@ -50,13 +49,13 @@ e2fsprogs
|
||||||
efibootmgr
|
efibootmgr
|
||||||
escrotum-git
|
escrotum-git
|
||||||
evince
|
evince
|
||||||
|
evtest
|
||||||
exfat-utils
|
exfat-utils
|
||||||
fakeroot
|
fakeroot
|
||||||
fd
|
fd
|
||||||
feh
|
feh
|
||||||
figlet
|
figlet
|
||||||
file
|
file
|
||||||
filemanager-actions
|
|
||||||
filesystem
|
filesystem
|
||||||
filezilla
|
filezilla
|
||||||
findutils
|
findutils
|
||||||
|
@ -77,6 +76,7 @@ glibc
|
||||||
google-chrome-beta
|
google-chrome-beta
|
||||||
gotop-bin
|
gotop-bin
|
||||||
gparted
|
gparted
|
||||||
|
gpick
|
||||||
gpicview-gtk3
|
gpicview-gtk3
|
||||||
grep
|
grep
|
||||||
grive-git
|
grive-git
|
||||||
|
@ -85,6 +85,7 @@ gtk-engine-murrine
|
||||||
gtk-engines
|
gtk-engines
|
||||||
gucharmap
|
gucharmap
|
||||||
guvcview
|
guvcview
|
||||||
|
gvfs-smb
|
||||||
gzip
|
gzip
|
||||||
hplip
|
hplip
|
||||||
httpie
|
httpie
|
||||||
|
@ -101,8 +102,9 @@ iproute2
|
||||||
iputils
|
iputils
|
||||||
java-openjfx-bin
|
java-openjfx-bin
|
||||||
jdk-openjdk
|
jdk-openjdk
|
||||||
jdk8
|
jdk8-openjdk
|
||||||
jfsutils
|
jfsutils
|
||||||
|
jpegoptim
|
||||||
jre-openjdk
|
jre-openjdk
|
||||||
jstest-gtk-git
|
jstest-gtk-git
|
||||||
keepassxc
|
keepassxc
|
||||||
|
@ -117,7 +119,9 @@ light
|
||||||
linux
|
linux
|
||||||
linux-firmware
|
linux-firmware
|
||||||
logrotate
|
logrotate
|
||||||
|
lsb-release
|
||||||
lsd
|
lsd
|
||||||
|
lutris
|
||||||
lvm2
|
lvm2
|
||||||
lxappearance
|
lxappearance
|
||||||
m4
|
m4
|
||||||
|
@ -154,17 +158,20 @@ noto-fonts
|
||||||
noto-fonts-cjk
|
noto-fonts-cjk
|
||||||
noto-fonts-emoji
|
noto-fonts-emoji
|
||||||
npm
|
npm
|
||||||
|
nss-mdns
|
||||||
nvidia
|
nvidia
|
||||||
nvidia-settings
|
nvidia-settings
|
||||||
nvidia-xrun
|
nvidia-xrun
|
||||||
obs-studio
|
obs-studio
|
||||||
openssh
|
openssh
|
||||||
|
optipng
|
||||||
ovmf
|
ovmf
|
||||||
p7zip
|
p7zip
|
||||||
pacman
|
pacman
|
||||||
pamixer
|
pamixer
|
||||||
pandoc
|
pandoc-bin
|
||||||
pandoc-citeproc
|
pandoc-citeproc-bin
|
||||||
|
pandoc-crossref-bin
|
||||||
paper-icon-theme
|
paper-icon-theme
|
||||||
patch
|
patch
|
||||||
pavucontrol
|
pavucontrol
|
||||||
|
@ -175,6 +182,7 @@ perl-archive-zip
|
||||||
phonon-qt4
|
phonon-qt4
|
||||||
php-cs-fixer
|
php-cs-fixer
|
||||||
picard
|
picard
|
||||||
|
plata-theme
|
||||||
polybar
|
polybar
|
||||||
procps-ng
|
procps-ng
|
||||||
psmisc
|
psmisc
|
||||||
|
@ -247,7 +255,6 @@ texlive-pstricks
|
||||||
texlive-publishers
|
texlive-publishers
|
||||||
texlive-science
|
texlive-science
|
||||||
tk
|
tk
|
||||||
todoist-git
|
|
||||||
tsk-git
|
tsk-git
|
||||||
ttf-croscore
|
ttf-croscore
|
||||||
ttf-dejavu
|
ttf-dejavu
|
||||||
|
@ -272,6 +279,8 @@ whois
|
||||||
wine-tkg-staging-esync-marchopt-git
|
wine-tkg-staging-esync-marchopt-git
|
||||||
winetricks
|
winetricks
|
||||||
wqy-zenhei
|
wqy-zenhei
|
||||||
|
xboxdrv
|
||||||
|
xclip
|
||||||
xdelta3
|
xdelta3
|
||||||
xdg-user-dirs
|
xdg-user-dirs
|
||||||
xf86-video-intel
|
xf86-video-intel
|
||||||
|
@ -279,6 +288,7 @@ xfsprogs
|
||||||
xorg-server
|
xorg-server
|
||||||
xorg-xbacklight
|
xorg-xbacklight
|
||||||
xorg-xev
|
xorg-xev
|
||||||
|
xorg-xhost
|
||||||
xorg-xinit
|
xorg-xinit
|
||||||
xorg-xprop
|
xorg-xprop
|
||||||
xorg-xrandr
|
xorg-xrandr
|
||||||
|
@ -286,6 +296,7 @@ xpad
|
||||||
xreader
|
xreader
|
||||||
xss-lock
|
xss-lock
|
||||||
xwiimote-git
|
xwiimote-git
|
||||||
|
xwinwrap-git
|
||||||
yay-git
|
yay-git
|
||||||
youtube-dl
|
youtube-dl
|
||||||
zathura-pdf-mupdf
|
zathura-pdf-mupdf
|
||||||
|
|
|
@ -19,8 +19,8 @@
|
||||||
# Synchronize notes every 15 minutes
|
# Synchronize notes every 15 minutes
|
||||||
*/15 * * * * $HOME/.local/bin/sync-notes >> $HOME/.local/log/cron.log
|
*/15 * * * * $HOME/.local/bin/sync-notes >> $HOME/.local/log/cron.log
|
||||||
|
|
||||||
# Synchronize tasks every 15 minutes
|
# Synchronize tasks every 10 minutes
|
||||||
*/15 * * * * $HOME/.local/bin/sync-tasks >> $HOME/.local/log/cron.log
|
*/10 * * * * $HOME/.local/bin/sync-tasks >> $HOME/.local/log/cron.log
|
||||||
|
|
||||||
# Synchronize rss feeds every 15 minutes
|
# Synchronize rss feeds every 15 minutes
|
||||||
*/15 * * * * $HOME/.local/bin/rss-sync >> $HOME/.local/log/cron.log
|
*/15 * * * * $HOME/.local/bin/rss-sync >> $HOME/.local/log/cron.log
|
||||||
|
|
|
@ -11,7 +11,17 @@
|
||||||
#
|
#
|
||||||
# USAGE:
|
# USAGE:
|
||||||
# This script is sourced by .bashrc
|
# This script is sourced by .bashrc
|
||||||
|
if [ -f "${XDG_BIN_HOME}/utils" ]; then
|
||||||
. "${XDG_BIN_HOME}/utils"
|
. "${XDG_BIN_HOME}/utils"
|
||||||
|
fi
|
||||||
|
|
||||||
|
# XDG_Base_Directories
|
||||||
|
export XDG_CONFIG_HOME="${HOME}/.config"
|
||||||
|
export XDG_CACHE_HOME="${HOME}/.cache"
|
||||||
|
export XDG_DATA_HOME="${HOME}/.local/share"
|
||||||
|
export XDG_BIN_HOME="${HOME}/.local/bin"
|
||||||
|
export XDG_LOG_HOME="${HOME}/.local/log"
|
||||||
|
export DOTFILES="${HOME}/dotfiles"
|
||||||
|
|
||||||
# XDG Overrides for unsupported programs
|
# XDG Overrides for unsupported programs
|
||||||
export HTTPIE_CONFIG_DIR="${XDG_CONFIG_HOME}/httpie"
|
export HTTPIE_CONFIG_DIR="${XDG_CONFIG_HOME}/httpie"
|
||||||
|
@ -53,7 +63,10 @@ export SAVEHIST=1000
|
||||||
export HISTSIZE=1000
|
export HISTSIZE=1000
|
||||||
export HISTFILESIZE=2000
|
export HISTFILESIZE=2000
|
||||||
mkdir -p "${XDG_DATA_HOME}/zsh/zcompdump-${ZSH_VERSION}"
|
mkdir -p "${XDG_DATA_HOME}/zsh/zcompdump-${ZSH_VERSION}"
|
||||||
|
|
||||||
|
if [ -n "$(command -v compinit)" ]; then
|
||||||
compinit -d "${XDG_DATA_HOME}/zsh/zcompdump-${ZSH_VERSION}"
|
compinit -d "${XDG_DATA_HOME}/zsh/zcompdump-${ZSH_VERSION}"
|
||||||
|
fi
|
||||||
|
|
||||||
# Setting applications
|
# Setting applications
|
||||||
export VISUAL=vim
|
export VISUAL=vim
|
||||||
|
|
|
@ -29,7 +29,7 @@
|
||||||
a = add --all
|
a = add --all
|
||||||
|
|
||||||
# Create a commit and sign it off
|
# Create a commit and sign it off
|
||||||
c = commit -s
|
c = commit -s -S
|
||||||
|
|
||||||
# Push to the master branch of the origin remote
|
# Push to the master branch of the origin remote
|
||||||
p = push --follow-tags
|
p = push --follow-tags
|
||||||
|
@ -50,9 +50,6 @@
|
||||||
[push]
|
[push]
|
||||||
default = upstream
|
default = upstream
|
||||||
|
|
||||||
[commit]
|
|
||||||
gpgsign = true
|
|
||||||
|
|
||||||
[url "git@gitlab.com:severinkaderli/"]
|
[url "git@gitlab.com:severinkaderli/"]
|
||||||
insteadOf = gl:
|
insteadOf = gl:
|
||||||
|
|
||||||
|
|
|
@ -15,7 +15,7 @@ data.location=/home/severin/Tasks
|
||||||
verbose=blank,footnote,label,new-id,affected,edit,special,project,sync,unwait
|
verbose=blank,footnote,label,new-id,affected,edit,special,project,sync,unwait
|
||||||
|
|
||||||
report.todo.description=Tasks with now due date, overdue or due in the next 7 days
|
report.todo.description=Tasks with now due date, overdue or due in the next 7 days
|
||||||
report.todo.columns=id,due,project,description.count
|
report.todo.columns=id,due,project,description.desc
|
||||||
report.todo.labels=ID,Due,Project,Description
|
report.todo.labels=ID,Due,Project,Description
|
||||||
report.todo.sort=due+
|
report.todo.sort=due+
|
||||||
report.todo.filter=due.before:1wk and status:pending or due: and status:pending
|
report.todo.filter=due.before:1wk and status:pending or due: and status:pending
|
||||||
|
@ -30,3 +30,10 @@ color.due=
|
||||||
color.due.today=
|
color.due.today=
|
||||||
dateformat=Y-M-D H:N
|
dateformat=Y-M-D H:N
|
||||||
|
|
||||||
|
# Synchronization
|
||||||
|
taskd.certificate=/home/severin/Keys/taskwarrior/private.certificate.pem
|
||||||
|
taskd.key=/home/severin/Keys/taskwarrior/private.key.pem
|
||||||
|
taskd.ca=/home/severin/Keys/taskwarrior/ca.cert.pem
|
||||||
|
taskd.server=taskwarrior.inthe.am:53589
|
||||||
|
taskd.credentials=inthe_am/severin.kaderli/0a28cfd9-a503-4518-8e62-25eef00f6e00
|
||||||
|
taskd.trust=ignore hostname
|
|
@ -40,16 +40,9 @@ zstyle ':completion:*' menu select
|
||||||
# Persistent rehash
|
# Persistent rehash
|
||||||
zstyle ':completion:*' rehash true
|
zstyle ':completion:*' rehash true
|
||||||
|
|
||||||
# XDG_Base_Directories
|
|
||||||
export XDG_CONFIG_HOME="${HOME}/.config"
|
|
||||||
export XDG_CACHE_HOME="${HOME}/.cache"
|
|
||||||
export XDG_DATA_HOME="${HOME}/.local/share"
|
|
||||||
export XDG_BIN_HOME="${HOME}/.local/bin"
|
|
||||||
export XDG_LOG_HOME="${HOME}/.local/log"
|
|
||||||
|
|
||||||
# Sourcing environment variables
|
# Sourcing environment variables
|
||||||
if [ -f "${XDG_CONFIG_HOME}/custom/env" ]; then
|
if [ -f "${HOME}/.config/custom/env" ]; then
|
||||||
. "${XDG_CONFIG_HOME}/custom/env"
|
. "${HOME}/.config/custom/env"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Enable color support of ls
|
# Enable color support of ls
|
||||||
|
|
|
@ -12,4 +12,4 @@
|
||||||
#
|
#
|
||||||
# USAGE:
|
# USAGE:
|
||||||
# ./screenlock
|
# ./screenlock
|
||||||
betterlockscreen -l blur -t "Welcome back, Severin!"
|
betterlockscreen -l -t "Welcome back, Severin!"
|
|
@ -13,8 +13,13 @@
|
||||||
# ./sync-tasks
|
# ./sync-tasks
|
||||||
. /home/severin/.local/bin/utils
|
. /home/severin/.local/bin/utils
|
||||||
|
|
||||||
|
export TASKDATA="/home/severin/Tasks"
|
||||||
|
export TASKRC="/home/severin/.config/task/taskrc"
|
||||||
|
|
||||||
print_time_log "sync-tasks" "Synchronizing tasks"
|
print_time_log "sync-tasks" "Synchronizing tasks"
|
||||||
|
|
||||||
|
task sync
|
||||||
|
|
||||||
cd "/home/severin/Tasks" || exit
|
cd "/home/severin/Tasks" || exit
|
||||||
git pull > /dev/null 2>&1
|
git pull > /dev/null 2>&1
|
||||||
git add --all > /dev/null 2>&1
|
git add --all > /dev/null 2>&1
|
||||||
|
|
|
@ -13,7 +13,5 @@
|
||||||
# ./wallpaper
|
# ./wallpaper
|
||||||
. /home/severin/.local/bin/utils
|
. /home/severin/.local/bin/utils
|
||||||
|
|
||||||
print_time_log "wallpaper" "Changing wallpaper"
|
HOST="$(hostname)"
|
||||||
|
feh --bg-fill --no-fehbg "${DOTFILES}/assets/wallpaper.${HOST}.jpg"
|
||||||
# When run from a cronjob the DISPLAY environment variable is not set
|
|
||||||
DISPLAY=:0 feh --randomize --bg-fill --no-fehbg "${HOME}/Pictures/01_Wallpaper/Desktop/"
|
|
|
@ -1,14 +1,15 @@
|
||||||
|
|
||||||
[Unit]
|
[Unit]
|
||||||
Description=User suspend actions
|
Description=Lock screen when going to sleep or suspend.
|
||||||
Before=suspend.target
|
Before=sleep.target
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
User=severin
|
User=severin
|
||||||
Type=forking
|
Type=simple
|
||||||
Environment=DISPLAY=:0
|
Environment=DISPLAY=:0
|
||||||
ExecStart=/home/severin/.local/bin/screenlock
|
ExecStart=/home/severin/.local/bin/screenlock
|
||||||
ExecStartPost=/usr/bin/sleep 1
|
TimeoutSec=infinity
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
WantedBy=sleep.target
|
WantedBy=sleep.target
|
||||||
|
WantedBy=suspend.target
|
Loading…
Add table
Add a link
Reference in a new issue