mirror of
https://github.com/XNM1/linux-nixos-hyprland-config-dotfiles.git
synced 2025-09-15 09:45:58 +03:00
first commit
This commit is contained in:
10
home/.config/fish/functions/bookmark_add.fish
Normal file
10
home/.config/fish/functions/bookmark_add.fish
Normal file
@@ -0,0 +1,10 @@
|
||||
function bookmark_add
|
||||
if [ -z $(wl-paste) ]
|
||||
dunstify "Bookmarks" "Can`t add empty space" -u critical -t 2000
|
||||
else if grep -q "^$(wl-paste)\$" .bookmarks
|
||||
dunstify "Bookmarks" "Bookmark '$(wl-paste)' already exists" -u critical -t 2000
|
||||
else
|
||||
wl-paste >> .bookmarks;
|
||||
dunstify "Bookmarks" "Bookmark '$(wl-paste)' was added" -t 2000
|
||||
end
|
||||
end
|
Reference in New Issue
Block a user