Compare commits

...

4 Commits

Author SHA1 Message Date
warthog18
225c3d4f4c
Merge 72537055943cbece5626f09055bc2219b67a314a into 031938a792ac3107a512e89504929ef9e3e8ed6a 2023-11-07 11:25:16 +03:00
Dominik
031938a792
Update dmenurecord (#1370) 2023-11-04 12:33:18 +00:00
warthog18
7253705594
Merge pull request #1 from warthog18/warthog18-bookmarkthis
Added bookmarkthis script
2022-11-11 23:53:58 +01:00
warthog18
5a3a9936b6
Added bookmarkthis script
Adding bookmarkscript by Luke Smith, shown in YT video "Bookmarking for Unix Chads..."... what do you think?
2022-11-11 23:51:00 +01:00
2 changed files with 12 additions and 1 deletions

11
.local/bin/bookmarkthis Normal file
View 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

View File

@ -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