Skip to content

Commit 09c37dc

Browse files
committed
feat(wl-clip-persist): Keep Wayland clipboard even after programs close
Thi resolves all copy paste crashes Close #623
1 parent b6b8bf2 commit 09c37dc

File tree

2 files changed

+17
-14
lines changed

2 files changed

+17
-14
lines changed

Configs/.local/share/hyde/hyprland.conf

Lines changed: 16 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ $start.APPTRAY_BLUETOOTH=blueman-applet
5050
$start.WALLPAPER=$scrPath/wallpaper.sh --global
5151
$start.TEXT_CLIPBOARD=wl-paste --type text --watch cliphist store
5252
$start.IMAGE_CLIPBOARD=wl-paste --type image --watch cliphist store
53+
$start.CLIPBOARD_PERSIST=wl-clip-persist --clipboard regular
5354
$start.BATTERY_NOTIFY=$scrPath/batterynotify.sh
5455
$start.NETWORK_MANAGER=nm-applet --indicator
5556
$start.REMOVABLE_MEDIA=udiskie --no-automount --smart-tray
@@ -394,20 +395,21 @@ exec = $exec.mkdir & $set.env & $exec.animation & $exec.keybinds_hint
394395
# // █░░ ▄▀█ █░█ █▄░█ █▀▀ █░█
395396
# // █▄▄ █▀█ █▄█ █░▀█ █▄▄ █▀█
396397

397-
exec-once = $start.XDG_PORTAL_RESET # reset XDPH for screenshare
398-
exec-once = $start.DBUS_SHARE_PICKER # for XDPHgl
399-
exec-once = $start.SYSTEMD_SHARE_PICKER # for XDPH
400-
exec-once = $start.AUTH_DIALOGUE # authentication dialogue for GUI apps
401-
exec-once = $start.BAR # launch the system bar
402-
exec-once = $start.APPTRAY_BLUETOOTH # systray app for Bluetooth
403-
exec-once = $start.REMOVABLE_MEDIA # front-end that allows to manage removable media
404-
exec-once = $start.NETWORK_MANAGER # systray app for Network/Wifi
405-
exec-once = $start.NOTIFICATIONS # start notification demon
406-
exec-once = $start.TEXT_CLIPBOARD # clipboard store text data
407-
exec-once = $start.IMAGE_CLIPBOARD # clipboard store image data
408-
exec-once = $start.WALLPAPER # start wallpaper daemon
409-
exec-once = $start.BATTERY_NOTIFY # battery notification
410-
exec-once = $start.IDLE_DAEMON # idle daemon
398+
exec-once = uwsm app -- $start.XDG_PORTAL_RESET || $start.XDG_PORTAL_RESET # resetxdgportal.sh (one-time setup)
399+
exec-once = uwsm app -- $start.DBUS_SHARE_PICKER || $start.DBUS_SHARE_PICKER # dbus-update-activation-environment (one-time setup)
400+
exec-once = uwsm app -- $start.SYSTEMD_SHARE_PICKER || $start.SYSTEMD_SHARE_PICKER # systemctl --user import-environment (one-time setup)
401+
exec-once = uwsm app -t service -s s -- $start.BAR || $start.BAR # waybar.py --watch (daemon)
402+
exec-once = uwsm app -t service -s s -- $start.NOTIFICATIONS || $start.NOTIFICATIONS # dunst (daemon)
403+
exec-once = uwsm app -t service -s a -- $start.APPTRAY_BLUETOOTH || $start.APPTRAY_BLUETOOTH # blueman-applet (system tray)
404+
exec-once = uwsm app -t service -s b -- $start.WALLPAPER || $start.WALLPAPER # wallpaper.sh --global (daemon)
405+
exec-once = uwsm app -t service -s s -- $start.TEXT_CLIPBOARD || $start.TEXT_CLIPBOARD # wl-paste --watch (daemon)
406+
exec-once = uwsm app -t service -s s -- $start.IMAGE_CLIPBOARD || $start.IMAGE_CLIPBOARD # wl-paste --watch (daemon)
407+
exec-once = uwsm app -t service -s s -- $start.CLIPBOARD_PERSIST || $start.CLIPBOARD_PERSIST # wl-clip-persist (daemon)
408+
exec-once = uwsm app -t service -s a -- $start.BATTERY_NOTIFY || $start.BATTERY_NOTIFY # batterynotify.sh (monitoring daemon)
409+
exec-once = uwsm app -t service -s a -- $start.NETWORK_MANAGER || $start.NETWORK_MANAGER # nm-applet (system tray)
410+
exec-once = uwsm app -t service -s a -- $start.REMOVABLE_MEDIA || $start.REMOVABLE_MEDIA # udiskie (daemon)
411+
exec-once = uwsm app -t service -s s -- $start.AUTH_DIALOGUE || $start.AUTH_DIALOGUE # polkitkdeauth.sh (authentication agent)
412+
exec-once = uwsm app -t service -s s -- $start.IDLE_DAEMON || $start.IDLE_DAEMON # hypridle (daemon)
411413

412414
# hyde/config.toml is parsed and exported to the environment
413415
# exec-once = $scrPath/parse.config.py --daemon --input $env.XDG_CONFIG_HOME/hyde/config.toml --env $env.XDG_STATE_HOME/hyde/config --hypr $env.XDG_STATE_HOME/hyde/hyprland.conf

Scripts/pkg_core.lst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ hyprpicker # color picker
3636
slurp # region select for screenshot/screenshare
3737
satty # Modern Screenshot Annotation
3838
cliphist # clipboard manager
39+
wl-clip-persist # Keep Wayland clipboard even after programs close (avoids crashes)
3940
hyprsunset # blue light filter
4041

4142
# --------------------------------------------------- // Dependencies

0 commit comments

Comments
 (0)