Asahi
Soft reset of dotfiles specific to Asahi, Sway and Neovim.
This commit is contained in:
1 parent
8d688d1107
commit
0bd1501855
84 files changed
+3192
-1973
No files matched your search
Executable
+18
@@ -0,0 +1,18 @@
|
||||
#!/bin/bash
|
||||
|
||||
# Generate base filename with timestamp
|
||||
base_filename=$(date +"%m-%d-%Y_%H-%M-%S")
|
||||
extension=".png"
|
||||
|
||||
# Initialize full filename
|
||||
filename="${base_filename}${extension}"
|
||||
counter=1
|
||||
|
||||
# Check if file exists and append incremental suffix if needed
|
||||
while [[ -e "$filename" ]]; do
|
||||
filename="${base_filename}-${counter}${extension}"
|
||||
((counter++))
|
||||
done
|
||||
|
||||
# Output the available filename
|
||||
grim -g "$(slurp)" "$HOME/Pictures/Screenshots/$filename"
|
||||
Reference in new issue
Block a user