add notification

This commit is contained in:
Mylloon 2024-02-28 12:49:36 +01:00
parent 9379fdc0d2
commit 78dd1d3a6a
Signed by: Anri
GPG key ID: A82D63DFF8D1317F

View file

@ -454,7 +454,7 @@ main() {
fi
gsettings set org.gnome.settings-daemon.plugins.media-keys custom-keybindings "$custom_keybindings_list" # update the list
gsettings set org.gnome.settings-daemon.plugins.media-keys.custom-keybinding:/org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/gpu-screen-recorder/ name "Shadowplay" # set name
gsettings set org.gnome.settings-daemon.plugins.media-keys.custom-keybinding:/org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/gpu-screen-recorder/ command "killall -SIGUSR1 gpu-screen-recorder" # set command
gsettings set org.gnome.settings-daemon.plugins.media-keys.custom-keybinding:/org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/gpu-screen-recorder/ command "killall -SIGUSR1 gpu-screen-recorder && notify-send -t 3000 -- 'Shadowplay' '2 dernières minutes sauvés dans ~/Vidéos'" # set command
gsettings set org.gnome.settings-daemon.plugins.media-keys.custom-keybinding:/org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/gpu-screen-recorder/ binding "<Control>F9" # set shortcut
fi