Hevin screensaver on one monitor

This commit is contained in:
2025-03-25 16:24:54 -04:00
parent 82baa8a23d
commit 20f80bdd8c
12 changed files with 90 additions and 22 deletions

View File

@@ -357,7 +357,8 @@ am "antimicro"
# task [[[ # # task [[[ #
a "task" a "task"
aa "task add proj:anp" #aa "task add proj:anp"
aa "task add proj:sniper"
aan "task add" aan "task add"
aal "task add proj:lnx" aal "task add proj:lnx"
aap "task add proj:" aap "task add proj:"
@@ -371,7 +372,7 @@ aaj "task add proj:pey +jira []"
aapp "task add proj:pogo" aapp "task add proj:pogo"
aas "task add proj:sch" aas "task add proj:sch"
aay "task add proj:pey" aay "task add proj:pey"
ac "task context" acx "task context"
acn "task context none && task" acn "task context none && task"
ach "task context home && task" ach "task context home && task"
acm "task context mny && task" acm "task context mny && task"
@@ -485,7 +486,7 @@ pipes "pipes.sh -t 3"
pcp "pycp" pcp "pycp"
pmv "pymv" pmv "pymv"
py "python" py "python"
q "qalc '" #q "qalc '"
#qe "qalc -e '1USD to CAD'" #qe "qalc -e '1USD to CAD'"
qg "qalculate-gtk" qg "qalculate-gtk"
r "ranger" r "ranger"
@@ -938,8 +939,7 @@ mm "printf '\033c' && bear make clean move_mouse_with_head && ./move_mouse_with_
#med "printf '\033c' && bear make clean eye_detector && ./eye_detector" #med "printf '\033c' && bear make clean eye_detector && ./eye_detector"
mft "printf '\033c' && bear make clean face_detector && ./face_detector" mft "printf '\033c' && bear make clean face_detector && ./face_detector"
rft "~/coding/face-tracker/face_detector > /tmp/move_mouse_with_head.out" rft "~/coding/face-tracker/face_detector > /tmp/move_mouse_with_head.out"
# gpsb "git push bitbucket" gpsb "git push bitbucket"
gpsb "git push bot"
# ]]] ada-mario # # ]]] ada-mario #
@@ -1062,13 +1062,17 @@ ttle "timetrace start leetcode@job"
ts "npx tsc" ts "npx tsc"
njs "node src/download-json.js" njs "node src/download-json.js"
xi "npx ts-node src/index.ts" xi "npx ts-node src/index.ts 2>&1 | tee logs/index.log"
xs "npx ts-node src/sync.ts" xd "npm run dev 2>&1 | tee logs/index.log"
xs "npx ts-node src/sync.ts 2>&1 | tee logs/sync.log"
xt "npm run type-check | tee logs/type-check.log"
#xsv "nodemon --exec node --loader ts-node/esm src/server.ts" #xsv "nodemon --exec node --loader ts-node/esm src/server.ts"
#xsv "npx nodemon" #xsv "npx nodemon"
xsv "nodemon --exec tsx src/server.ts" #xsv "nodemon --exec tsx src/server.ts"
xsv "npx nodemon --exitcrash --exec tsx src/server.ts"
cl "npx ts-node src/cli.ts list-nfts -p 5 -t 100" cl "npx ts-node src/cli.ts list-nfts -p 5 -t 100"
clw "watch npx ts-node src/cli.ts list-nfts -p 5 -t 100" clw "watch npx ts-node src/cli.ts list-nfts -p 5 -t 100"
vp "vercel --prod"
# ]]] work # # ]]] work #

View File

@@ -282,12 +282,14 @@ anb ~/coding/ai-nft-proj/backend
anf ~/coding/ai-nft-proj/frontend anf ~/coding/ai-nft-proj/frontend
tt ~/coding/try-eliza-twitter-client tt ~/coding/try-eliza-twitter-client
me ~/coding/me-sniper me ~/coding/me-sniper/backend
mef ~/coding/me-sniper-fe mef ~/coding/me-sniper/frontend
med ~/coding/me-sniper-discord mefn ~/coding/me-sniper/frontend-next-js
me2 ~/coding/me-sniper-2 med ~/coding/me-sniper/discord-bot
me2 ~/coding/me-sniper/backend-copy
mu ~/coding/stakemetrix kb ~/coding/kanban-calendar
ac ~/coding/astral-challenge-txt
# ]]] sch # # ]]] sch #

View File

@@ -203,6 +203,7 @@ abbr adr "task-due-rm"
abbr anx "task-next" abbr anx "task-next"
abbr anr "task-next-rm" abbr anr "task-next-rm"
abbr ant "task-notes" abbr ant "task-notes"
abbr aon "taskopen-new"
abbr apr "task-mod-pri" abbr apr "task-mod-pri"
abbr aprl "task-mod-pri L" abbr aprl "task-mod-pri L"
abbr aprm "task-mod-pri M" abbr aprm "task-mod-pri M"
@@ -272,6 +273,7 @@ abbr mtm "maven-test-method"
abbr pgr "grep-pdf" abbr pgr "grep-pdf"
abbr pgrf "grep-pdf-file" abbr pgrf "grep-pdf-file"
abbr pst "pastebin" abbr pst "pastebin"
abbr q "bc-qalc '"
abbr qh "qalc-history" abbr qh "qalc-history"
abbr qu "qalc-update" abbr qu "qalc-update"
abbr re "reminder ''" abbr re "reminder ''"

View File

@@ -0,0 +1,8 @@
#function bc-qalc
#echo "scale=4; $argv[1]" | bc
#end
function bc-qalc
set -l expression "scale=4; $argv[1]"
set -l result (echo "$expression" | bc -l)
python3 -c "print(f'{float($result):,}')"
end

View File

@@ -0,0 +1,3 @@
function taskopen-new
echo "md" | taskopen -A $argv[1] && taskopen -A $argv[1]
end

View File

@@ -21,10 +21,9 @@ exec wal -i $(/home/kevin/scripts/shuffler "$HOME/Pictures/Backgrounds/dim/editi
# exec --no-startup-id i3-msg 'workspace $ws1; exec $term' # exec --no-startup-id i3-msg 'workspace $ws1; exec $term'
# exec --no-startup-id i3-msg 'workspace $ws2; exec $term -e fish -c "tmux-attach fortnite"' # exec --no-startup-id i3-msg 'workspace $ws2; exec $term -e fish -c "tmux-attach fortnite"'
exec --no-startup-id i3-msg 'workspace $ws3; exec $browser' exec --no-startup-id i3-msg 'workspace $ws3; exec $browser'
exec --no-startup-id i3-msg 'workspace $ws3; exec chrome'
# exec --no-startup-id i3-msg 'workspace $ws5; exec $term -e twitchy' # exec --no-startup-id i3-msg 'workspace $ws5; exec $term -e twitchy'
# exec --no-startup-id i3-msg 'workspace $ws5; exec firefox -P nft' # exec --no-startup-id i3-msg 'workspace $ws5; exec firefox -P nft'
exec --no-startup-id i3-msg workspace $ws6; exec discord #exec --no-startup-id i3-msg workspace $ws6; exec discord
#exec --no-startup-id i3-msg 'workspace $ws6; exec signal-desktop' #exec --no-startup-id i3-msg 'workspace $ws6; exec signal-desktop'
# exec --no-startup-id i3-msg workspace $ws1; exec $term -e fish -c 'tmux-attach school' # exec --no-startup-id i3-msg workspace $ws1; exec $term -e fish -c 'tmux-attach school'
@@ -33,11 +32,12 @@ exec --no-startup-id i3-msg workspace $ws6; exec discord
# applications [[[ # # applications [[[ #
set $mod Mod1 set $mod Mod1
set $browser "firefox" #set $browser "firefox"
set $browser "google-chrome"
#set $browser_secondary "chromium" #set $browser_secondary "chromium"
set $browser_secondary "google-chrome-stable" #set $browser_secondary "google-chrome-stable"
# set $browser "chromium" # set $browser "chromium"
# set $browser_secondary "firefox" set $browser_secondary "firefox"
set $scripts_path "/home/kevin/scripts" set $scripts_path "/home/kevin/scripts"
set $sch_dir "$HOME/Documents/School" set $sch_dir "$HOME/Documents/School"

View File

@@ -336,8 +336,8 @@ public_ip_host="http://ident.me"
# disk_show=('/'): # disk_show=('/'):
# 'Disk (/): 74G / 118G (66%)' # 'Disk (/): 74G / 118G (66%)'
# #
# disk_show=('/' '/home' '/mnt/linux-files' ) disk_show=('/' '/home' '/mnt/linux-files-2' )
disk_show=('/dev/sdc1' '/dev/sdc3' '/dev/sdd1' ) #disk_show=('/dev/sda1' '/dev/sdaf' '/dev/sdd1' )
# Disk subtitle. # Disk subtitle.
# What to append to the Disk subtitle. # What to append to the Disk subtitle.

View File

@@ -713,4 +713,7 @@ default_linemode devicons
set clipboard_program xclip set clipboard_program xclip
map tsx set editor nvim
set editor nvim
# ]]] custom # # ]]] custom #

View File

@@ -110,6 +110,7 @@ ext pl = perl -- "$1"
ext rb = ruby -- "$1" ext rb = ruby -- "$1"
ext js = node -- "$1" ext js = node -- "$1"
ext sh = sh -- "$1" ext sh = sh -- "$1"
ext tsx = nvim "$@"
ext php = php -- "$1" ext php = php -- "$1"
#-------------------------------------------- #--------------------------------------------

View File

@@ -81,8 +81,11 @@ context.out=project:out
context.mny=project:mny context.mny=project:mny
context.pey=project:pey context.pey=project:pey
context.sch=project:sch context.sch=project:sch
#context.sniper=project:sniper project:job
context.sniper=(project:sniper or project:job)
context=none #context=none
context=sniper
# context=home # context=home
# context=out # context=out
#context=sch #context=sch

View File

@@ -0,0 +1,41 @@
#!/usr/bin/env fish
# Find a random image
set image (fdfind -e jpg -e jpeg -e png -e webp . /mnt/linux-files-2/Pictures/hevin | shuf -n 1)
# Create blurred lock image
convert "$image" -resize 1920x1080^ -gravity center -extent 1920x1080 /tmp/lock.png
# Lock with i3lock-color
i3lock -n -i /tmp/lock.png
#!/usr/bin/env fish
# Directory containing your wallpapers
#set WALLPAPER_DIR ~/Pictures/Screensaver
## Get a list of monitors
#set MONITORS (xrandr --listmonitors | grep -v 'Monitors:' | awk '{print $4}')
## Generate blurred lock images for each monitor
#for monitor in $MONITORS
## Pick a random image for this monitor
#set IMAGE (fdfind -e jpg -e jpeg -e png -e webp . $WALLPAPER_DIR | shuf -n 1)
## Generate a blurred version at /tmp/lock-$monitor.png
#convert "$IMAGE" \
#-resize 1920x1080^ \
#-gravity center \
#-extent 1920x1080 \
#-blur 0x8 \
#"/tmp/lock-$monitor.png"
#end
## Build i3lock command for each monitor
#set LOCK_CMD "i3lock-color -n"
#for monitor in $MONITORS
#set LOCK_CMD "$LOCK_CMD --image=/tmp/lock-$monitor.png --screen=$monitor --ignore-empty-password"
#end
## Execute the lock command
#eval $LOCK_CMD

View File

@@ -32,7 +32,8 @@ elif (( $(echo "$price < 100" | bc -l) )); then
echo "$price" | tr -d '.' | awk '{print substr($0, 1, 3)}' echo "$price" | tr -d '.' | awk '{print substr($0, 1, 3)}'
elif (( $(echo "$price < 1000" | bc -l) )); then elif (( $(echo "$price < 1000" | bc -l) )); then
echo "$price" | numfmt --grouping | cut -c -3 echo "$price" | numfmt --grouping | cut -c -3
#elif (( $(echo "$price < 10000" | bc -l) )); then elif (( $(echo "$price < 10000" | bc -l) )); then
echo "$price" | numfmt --grouping | cut -c -4
elif (( $(echo "$price < 100000" | bc -l) )); then elif (( $(echo "$price < 100000" | bc -l) )); then
echo "$price" | cut -c -3 echo "$price" | cut -c -3
elif (( $(echo "$price > 100000" | bc -l) )); then elif (( $(echo "$price > 100000" | bc -l) )); then