docker configs and modified screenshot script

This commit is contained in:
2025-09-08 21:37:53 -04:00
parent 95b73b38f8
commit dbd98d0b47
5 changed files with 47 additions and 5 deletions

View File

@@ -0,0 +1,3 @@
#!/usr/bin/bash
creddy docker $@

View File

@@ -0,0 +1,32 @@
#!/bin/bash
# adapted from ~/.local/share/omarchy/bin/omarchy-cmd-screenshot
[[ -f ~/.config/user-dirs.dirs ]] && source ~/.config/user-dirs.dirs
OUTPUT_DIR="${OMARCHY_SCREENSHOT_DIR:-${XDG_PICTURES_DIR:-$HOME/Pictures}}"
if [[ ! -d "$OUTPUT_DIR" ]]; then
notify-send "Screenshot directory does not exist: $OUTPUT_DIR" -u critical -t 3000
exit 1
fi
# if we are in the process of screenshotting, cancel that and exit
pkill slurp && exit 0
# freeze display(s)
wayfreeze &
sleep 0.1
# use process substitution to send to satty rather than piping so that we can kill wayfreeze as soon as hyprshot finishes
hyprshot -m ${1:-region} --raw > >(
satty --filename - \
--output-filename "$output_dir/screenshot-$(date +'%y-%m-%d_%h-%m-%s').png" \
--early-exit \
--actions-on-enter save-to-clipboard \
--save-after-copy \
--copy-command 'wl-copy'
) &
wait $(jobs -p %hyprshot)
kill $(jobs -p %wayfreeze)
# satty is still running at this point, but we don't particularly care

View File

@@ -2,5 +2,9 @@
sudo pacman -U https://git.jfmonty2.com/jfmonty2/creddy/releases/download/v0.6.5/creddy-0.6.5-1-x86_64.pkg.tar.zst sudo pacman -U https://git.jfmonty2.com/jfmonty2/creddy/releases/download/v0.6.5/creddy-0.6.5-1-x86_64.pkg.tar.zst
sudo pacman -S unixodbc sudo pacman -S unixodbc
sudo pacman -S vulkan-radeon
sudo pacman -R amdvlk
yay aur/msodbcsql17 yay msodbcsql17
yay wayfreeze-git
yay heynote-bin

View File

@@ -1,7 +1,7 @@
#!/usr/bin/bash #!/usr/bin/bash
# current highest-numbered workspace # generate ids from 1-100, remove the ids of existing workspaces, take the
MAX_WORKSPACE=$(hyprctl workspaces -j | jq 'sort_by(.id) | reverse | .[0].id') # first of the remaining numbers and you have the first available workspace id
FIRST_AVAILABLE=$(hyprctl workspaces -j | jq '[range(1; 100)] - map(.id) | .[0]')
hyprctl dispatch workspace $(($MAX_WORKSPACE + 1))
hyprctl dispatch workspace $FIRST_AVAILABLE

View File

@@ -0,0 +1,3 @@
{
"credsStore": "creddy"
}