From ce6649276ce0c14a93285634052d8b09ed4e5768 Mon Sep 17 00:00:00 2001 From: Sunderland93 Date: Fri, 6 Jun 2025 12:27:14 +0400 Subject: [PATCH] Enable screencasting, enable clipboard manager --- etc/skel/.config/miracle-wm.yaml | 31 ++++++++++--------- etc/xdg/xdg-desktop-portal-wlr/config | 3 ++ usr/share/xdg-desktop-portal/mir-portals.conf | 4 +++ 3 files changed, 24 insertions(+), 14 deletions(-) create mode 100644 etc/xdg/xdg-desktop-portal-wlr/config create mode 100644 usr/share/xdg-desktop-portal/mir-portals.conf diff --git a/etc/skel/.config/miracle-wm.yaml b/etc/skel/.config/miracle-wm.yaml index 5e1778a..6e75f4e 100644 --- a/etc/skel/.config/miracle-wm.yaml +++ b/etc/skel/.config/miracle-wm.yaml @@ -2,22 +2,25 @@ terminal: alacritty # Start waybar and Azote on startup startup_apps: - - command: bash ~/.azotebg - restart_on_death: true + - command: bash ~/.azotebg + restart_on_death: true + - command: wl-paste --watch cliphist store & environment_variables: - - key: QT_QPA_PLATFORM - value: wayland;xcb - - key: QT_QPA_PLATFORMTHEME - value: qt5ct - - key: XCURSOR_SIZE - value: 24 - - key: ECORE_EVAS_ENGINE - value: wayland-egl - - key: ELM_ACCEL - value: gl - - key: _JAVA_AWT_WM_NONREPARENTING - value: 1 + - key: XDG_CURRENT_DESKTOP + value: mir + - key: QT_QPA_PLATFORM + value: wayland;xcb + - key: QT_QPA_PLATFORMTHEME + value: qt5ct + - key: XCURSOR_SIZE + value: 24 + - key: ECORE_EVAS_ENGINE + value: wayland-egl + - key: ELM_ACCEL + value: gl + - key: _JAVA_AWT_WM_NONREPARENTING + value: 1 border: size: 2 diff --git a/etc/xdg/xdg-desktop-portal-wlr/config b/etc/xdg/xdg-desktop-portal-wlr/config new file mode 100644 index 0000000..6a1cc86 --- /dev/null +++ b/etc/xdg/xdg-desktop-portal-wlr/config @@ -0,0 +1,3 @@ +[screencast] +chooser_type=dmenu +chooser_cmd=wlr-randr | grep -oP '^[^ ]+' | wofi -d diff --git a/usr/share/xdg-desktop-portal/mir-portals.conf b/usr/share/xdg-desktop-portal/mir-portals.conf new file mode 100644 index 0000000..d55d092 --- /dev/null +++ b/usr/share/xdg-desktop-portal/mir-portals.conf @@ -0,0 +1,4 @@ +[preferred] +default=gtk +org.freedesktop.impl.portal.Screenshot=wlr +org.freedesktop.impl.portal.ScreenCast=wlr