Remove cliphist in favor of elephant-clipboard

This commit is contained in:
ItsDrike 2025-10-19 20:54:36 +02:00
parent 5a76947c3b
commit d7387047e0
Signed by: ItsDrike
GPG key ID: FA2745890B7048C0
2 changed files with 2 additions and 36 deletions

View file

@ -1,34 +0,0 @@
[Unit]
Description=Clipboard history "manager" for Wayland
After=graphical-session.target
PartOf=graphical-session.target
[Service]
Type=simple
ExecStart=/usr/bin/wl-paste --watch /usr/bin/cliphist -max-items 10 store
Restart=on-failure
# Use the background slice rather than the session slice. Cliphist isn't
# a fundamental part of the graphical session experience.
Slice=background-graphical.slice
CPUQuota=2%
# Cliphist allows storng up to 5 MB per item entries, with 10 entries
# limit, this means 50 MB. Annoyingly, it seems to load all entries
# even when it's just writing a single new one (during `cliphist store`),
# so we need to account for this. See:
# https://github.com/sentriz/cliphist/issues/155 to understand
#
# If the above issue gets addressed, these limits can likely be lowered.
MemoryHigh=60M
MemoryMax=120M
# Because of the issue above, significantly increase the likelihood of
# this process getting terminated during OOM I don't really care that
# much about a clipboard manager staying up anyways.
OOMScoreAdjust=300
[Install]
WantedBy=graphical-session.target

View file

@ -83,7 +83,7 @@ paru -S --noconfirm --needed \
# Wayland Utilities # Wayland Utilities
paru -S --noconfirm --needed \ paru -S --noconfirm --needed \
wev wdisplays grim slurp swappy wf-recorder wlogout cliphist \ wev wdisplays grim slurp swappy wf-recorder wlogout \
hyprpicker hyprpaper hyprsunset hyprpicker hyprpaper hyprsunset
# Application launcher # Application launcher
@ -152,7 +152,7 @@ gsettings set org.gnome.desktop.interface cursor-size 24
# Services # Services
sudo systemctl enable --now seatd.service sudo systemctl enable --now seatd.service
systemctl --user enable polkit-gnome-agent.service fumon.service hyprpaper.service hypridle.service hyprsunset.service elephant.service walker.service swaync.service systemd-lock-handler.service hyprlock.service swaync-inhibit-lock.service swaync-inhibit-unlock.service pcmanfm-qt.service nm-applet.service blueman-applet.service cliphist.service systemctl --user enable polkit-gnome-agent.service fumon.service hyprpaper.service hypridle.service hyprsunset.service elephant.service walker.service swaync.service systemd-lock-handler.service hyprlock.service swaync-inhibit-lock.service swaync-inhibit-unlock.service pcmanfm-qt.service nm-applet.service blueman-applet.service
echo "GUI Installation finished, you should now reboot and run uwsm start hyprland.desktop" echo "GUI Installation finished, you should now reboot and run uwsm start hyprland.desktop"
echo "" echo ""