mirror of
https://github.com/LukeSmithxyz/voidrice.git
synced 2026-01-30 09:48:11 +01:00
Compare commits
4 Commits
37acdab41a
...
225c3d4f4c
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
225c3d4f4c | ||
|
|
031938a792 | ||
|
|
7253705594 | ||
|
|
5a3a9936b6 |
11
.local/bin/bookmarkthis
Normal file
11
.local/bin/bookmarkthis
Normal file
@ -0,0 +1,11 @@
|
||||
#!/bin/sh
|
||||
|
||||
bookmark="$(xclip -o)"
|
||||
file="$HOME/.local/share/larbs/snippets"
|
||||
|
||||
if grep "^$bookmark$" "$file"; then
|
||||
notify-send "Oops." "Already bookmarked!"
|
||||
else
|
||||
notify-send "Bookmark added!" "$bookmark is now saved to the file."
|
||||
echo "$bookmark" >> "$file"
|
||||
fi
|
||||
@ -9,7 +9,7 @@
|
||||
#
|
||||
# If there is already a running instance, user will be prompted to end it.
|
||||
|
||||
getdim() { xrandr | sed -n "s/\s*\([0-9]\+x[0-9]\+\).*\*.*/\1/p" ;}
|
||||
getdim() { xrandr | grep -oP '(?<=current ).*(?=,)' | tr -d ' ' ;}
|
||||
|
||||
updateicon() { \
|
||||
echo "$1" > /tmp/recordingicon
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user