hyprland-dotfiles/hypr/scripts/xdg.sh

28 lines
631 B
Bash
Raw Normal View History

2023-11-13 07:55:17 +00:00
#!/bin/bash
2023-11-13 07:58:21 +00:00
# __ ______ ____
# \ \/ / _ \ / ___|
# \ /| | | | | _
# / \| |_| | |_| |
# /_/\_\____/ \____|
#
# -----------------------------------------------------
2023-11-13 07:55:17 +00:00
sleep 1
2023-11-17 12:48:02 +00:00
2023-11-13 07:58:21 +00:00
# kill all possible running xdg-desktop-portals
2023-11-13 07:55:17 +00:00
killall xdg-desktop-portal-hyprland
killall xdg-desktop-portal-gnome
killall xdg-desktop-portal-kde
killall xdg-desktop-portal-lxqt
killall xdg-desktop-portal-wlr
2023-11-17 12:48:02 +00:00
killall xdg-desktop-portal-gtk
2023-11-13 07:55:17 +00:00
killall xdg-desktop-portal
sleep 1
2023-11-17 12:48:02 +00:00
2023-11-13 07:58:21 +00:00
# start xdg-desktop-portal-hyprland
2023-11-13 07:55:17 +00:00
/usr/lib/xdg-desktop-portal-hyprland &
sleep 2
2023-11-17 12:48:02 +00:00
2023-11-13 07:58:21 +00:00
# start xdg-desktop-portal
2023-11-13 07:55:17 +00:00
/usr/lib/xdg-desktop-portal &
2023-11-17 12:48:02 +00:00
sleep 1