Add xdg-desktop-portal-wlr config

This commit is contained in:
FollieHiyuki 2021-06-28 03:23:18 +03:00
parent 432883e6cf
commit f7b271fc59
No known key found for this signature in database
GPG Key ID: 813CF484F4993419
7 changed files with 26 additions and 17 deletions

View File

@ -39,25 +39,26 @@ echo "
"
case ${server} in
wayland)
cp -rfv ./home/.config/foot/ ~/.config/foot/
cp -rfv ./home/.config/hikari/ ~/.config/hikari/
cp -rfv ./home/.config/foot/ ~/.config/foot/
cp -rfv ./home/.config/hikari/ ~/.config/hikari/
# Dunst is Wayland native too, since 1.6.0
if command -v dunst >/dev/null
then
cp -rfv ./home/.config/dunst/ ~/.config/dunst/
cp -rfv ./home/.config/dunst/ ~/.config/dunst/
else
cp -rfv ./home/.config/mako/ ~/.config/mako/
cp -rfv ./home/.config/mako/ ~/.config/mako/
fi
cp -rfv ./home/.config/nwg-launchers/ ~/.config/nwg-launchers/
cp -rfv ./home/.config/river/ ~/.config/river/
cp -rfv ./home/.config/sway/ ~/.config/sway/
cp -rfv ./home/.config/swaylock/ ~/.config/swaylock/
cp -rfv ./home/.config/waybar/ ~/.config/waybar/
cp -rfv ./home/.config/wofi/ ~/.config/wofi/
cp -rfv ./home/.config/nwg-launchers/ ~/.config/nwg-launchers/
cp -rfv ./home/.config/river/ ~/.config/river/
cp -rfv ./home/.config/sway/ ~/.config/sway/
cp -rfv ./home/.config/swaylock/ ~/.config/swaylock/
cp -rfv ./home/.config/waybar/ ~/.config/waybar/
cp -rfv ./home/.config/wofi/ ~/.config/wofi/
cp -rfv ./home/.config/xdg-desktop-portal-wlr/ ~/.config/xdg-desktop-portal-wlr/
# qimgv is preferable
# cp -rfv ./home/.config/imv/ ~/.config/imv/
# cp -rfv ./home/.config/pqivrc ~/.config/pqivrc
cp -rfv ./home/.config/wayfire.ini ~/.config/wayfire.ini
# cp -rfv ./home/.config/imv/ ~/.config/imv/
# cp -rfv ./home/.config/pqivrc ~/.config/pqivrc
cp -rfv ./home/.config/wayfire.ini ~/.config/wayfire.ini
;;
x11)
cp -rfv ./home/.config/bsp-layout/ ~/.config/bsp-layout/

View File

@ -14,4 +14,5 @@ start_notify &
wl-paste -t text --watch clipman store &
waybar -c ~/.config/waybar/config-generic -s ~/.config/waybar/style-generic.css &
mpDris2 &
# /usr/libexec/xdg-desktop-portal-wlr
# emacs --daemon &

View File

@ -5,8 +5,8 @@ x-scheme-handler/https=firefox.desktop
x-scheme-handler/about=firefox.desktop
x-scheme-handler/unknown=firefox.desktop
video/*=mpv.desktop
application/pdf=org.pwmt.zathura-pdf-poppler.desktop
application/pdf=org.pwmt.zathura-pdf-mupdf.desktop
[Added Associations]
video/*=mpv.desktop;
application/pdf=org.pwmt.zathura-pdf-poppler.desktop;
application/pdf=org.pwmt.zathura-pdf-mupdf.desktop;

View File

@ -15,6 +15,7 @@ riverctl spawn 'waybar'
riverctl spawn 'swayidle -w before-sleep swaylock'
riverctl spawn 'mpDris2'
riverctl spawn 'wlwpp'
# riverctl spawn '/usr/libexec/xdg-desktop-portal-wlr'
# riverctl spawn 'emacs --daemon'
# Looks ────────────────────────────────────────────────────────────────────────

View File

@ -88,7 +88,8 @@ exec swayidle -w \
timeout 600 'swaymsg "output * dpms off"' resume 'swaymsg "output * dpms on"' \
before-sleep 'swaylock'
exec mpDris2
exec swaywpp
exec_always swaywpp
# exec /usr/libexec/xdg-desktop-portal-wlr
# exec emacs --daemon
# ______ ______

View File

@ -123,7 +123,7 @@ idle = swayidle -w before-sleep swaylock
# XDG desktop portal
# Needed by some GTK applications
# portal = /usr/libexec/xdg-desktop-portal
# portal = /usr/libexec/xdg-desktop-portal-wlr
# Sound server
pipewire = pipewire

View File

@ -0,0 +1,5 @@
[screencast]
output_name=eDP-1
max_fps=30
chooser_type=simple
chooser_cmd=slurp -f %o -or