#!/bin/bash pkill -0 picom || { picom --config "$HOME/.config/picom.conf" & disown -h %% START_PICOM=1 } img="$HOME/.local/share/wallpaper/wallpaper_blur_desktop.png" [ "$(xrandr | grep primary | cut -d ' ' -f1)" = 'eDP-1' ] && img="$HOME/.local/share/wallpaper/wallpaper_blur_laptop.png" blank='00000000' hl='23232350' hl_red='5c222240' fg='#a0a0a0' pkill i3lock i3lock \ -i "$img" \ -c '00000000' \ --clock \ --date-color=$fg \ --time-color=$fg \ --verif-color=$fg \ --wrong-color=$fg \ --bshl-color=$hl \ --keyhl-color=$hl \ --line-uses-ring \ --ringver-color=$blank \ --ringwrong-color=$hl_red \ --date-str='%A %m/%d' \ --time-str='%H:%M' \ --time-size=82 \ --date-size=18 \ --wrong-size=56 \ --date-pos 'tx:ty+36' \ --verif-text='' \ --noinput-text='' \ --wrong-text='x' \ --time-font="Mononoki Nerd Font Propo" \ --date-font="Mononoki Nerd Font Propo" \ --layout-font="Mononoki Nerd Font Propo" \ --verif-font="Mononoki Nerd Font Propo" \ --wrong-font="Mononoki Nerd Font Propo" \ --bar-color $blank \ --bar-base-width 2080 \ --bar-max-height 2080 \ --bar-step 2080 \ --bar-count 1 \ --bar-periodic-step 2080 \ --redraw-thread \ --bar-indicator \ [ -n "$START_PICOM" ] && { echo 'start' ( for pid in $(pidof i3lock); do tail --pid "$pid" -f /dev/null & done wait pkill -INT picom ) & disown -h %% }