12 changed files with 91 additions and 23 deletions
-
20aliases/key_aliases.tmpl
-
14aliases/key_dirs.tmpl
-
2dot_config/fish/config.fish.tmpl
-
8dot_config/fish/functions/bc-qalc.fish
-
3dot_config/fish/functions/taskopen-new.fish
-
10dot_config/i3/config.tmpl
-
4dot_config/neofetch/config.conf
-
3dot_config/ranger/rc.conf.tmpl
-
1dot_config/ranger/rifle.conf
-
5dot_taskrc
-
41scripts/executable_dual-monitor-slideshow
-
3scripts/executable_kraken
@ -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 |
@ -0,0 +1,3 @@ |
|||
function taskopen-new |
|||
echo "md" | taskopen -A $argv[1] && taskopen -A $argv[1] |
|||
end |
@ -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 |
Write
Preview
Loading…
Cancel
Save
Reference in new issue