From 711cb838836dd525ecc5ae6566801d40718a5297 Mon Sep 17 00:00:00 2001 From: Wiktor Zykubek Date: Sun, 8 Mar 2020 19:14:45 +0100 Subject: [PATCH] Edit lockscreen script to working on my both computers --- botfiles/.config/zsh/history | 32 ++++++++++++++++++++++++++++++++ botfiles/.scripts/lockscreen.sh | 6 ++++-- 2 files changed, 36 insertions(+), 2 deletions(-) diff --git a/botfiles/.config/zsh/history b/botfiles/.config/zsh/history index 60ac587..ddeaec4 100644 --- a/botfiles/.config/zsh/history +++ b/botfiles/.config/zsh/history @@ -532,3 +532,35 @@ tree -L 2 .local cd .local/share/TelegramDesktop/tdata ls owo -S shopt +vi .scripts/get-local-wificard-ip.sh +pass +updot +vi updot +vi updot +vi updot +vi updot +upsot +updot +vi updot +vi updot +updot +ls ~/Test/.config/nvim/ +vi updot +cat updot|copy +vi updot +updot +ls -a ~/Test +ls -a ~/Test/.config +vi updot +vi updot +updot +ls botfiles/.config +ls botfiles/.config +ls botfiles/.config/nvim +ls botfiles/.config/zsh +vi updot +updot +ls botfiles/.config +ga . +gc +gpom diff --git a/botfiles/.scripts/lockscreen.sh b/botfiles/.scripts/lockscreen.sh index 9a6692c..da467d4 100644 --- a/botfiles/.scripts/lockscreen.sh +++ b/botfiles/.scripts/lockscreen.sh @@ -1,3 +1,5 @@ -#!/bin/sh +#!/bin/zsh -i3lock -i ~/.config/wallpapers/1920x1080/wall$(( ( RANDOM % $(ls ~/.config/wallpapers/1920x1080 | wc -l) +1 ) )).png --composite --insidecolor=55443311 --ringcolor=99443300 --ringvercolor=00000000 --insidevercolor=55443311 --keyhlcolor=99999999 --indicator --veriftext= --wrongtext=! --radius 180 -b --separatorcolor=00000000 -k --timesize=40 --datesize=20 --time-font=Monospace --date-font=Monospace --bar-indicator +RESOL=$(xrandr | grep '*' | grep -o '?*[0-9]*x?*[0-9]*') + +i3lock -i ~/.config/wallpapers/$RESOL/wall$(( ( RANDOM % $(ls ~/.config/wallpapers/$RESOL | wc -l) +1 ) )).png --composite --insidecolor=55443311 --ringcolor=99443300 --ringvercolor=00000000 --insidevercolor=55443311 --keyhlcolor=99999999 --indicator --veriftext= --wrongtext=! --radius 180 -b --separatorcolor=00000000 -k --timesize=40 --datesize=20 --time-font=Monospace --date-font=Monospace --bar-indicator