mirror of
https://github.com/Derisis13/dotfiles.git
synced 2025-12-06 19:32:50 +01:00
fix(cliphist): re-implement cliphist for uwsm
This commit is contained in:
@@ -12,7 +12,7 @@ replace_config_line () {
|
|||||||
}
|
}
|
||||||
|
|
||||||
set_unit () {
|
set_unit () {
|
||||||
systemctl --user enable $*
|
systemctl --user enable --now $*
|
||||||
}
|
}
|
||||||
|
|
||||||
replace_config_line "/etc/dnf/dnf.conf" "installonly_limit" "3"
|
replace_config_line "/etc/dnf/dnf.conf" "installonly_limit" "3"
|
||||||
@@ -60,11 +60,13 @@ ensure_installed hyprland hyprpaper hypridle hyprlock hyprsunset
|
|||||||
mkdir -p ~/.local/share/backgrounds/
|
mkdir -p ~/.local/share/backgrounds/
|
||||||
curl -o ~/.local/share/backgrounds/eKxlw8.jpg -fsSL "https://live.staticflickr.com/5077/5914101671_d80c6591e8_k.jpg"
|
curl -o ~/.local/share/backgrounds/eKxlw8.jpg -fsSL "https://live.staticflickr.com/5077/5914101671_d80c6591e8_k.jpg"
|
||||||
set_unit hypridle.service hyprpaper.service hyprpolkitagent.service hyprsunset.service
|
set_unit hypridle.service hyprpaper.service hyprpolkitagent.service hyprsunset.service
|
||||||
|
set_unit pipewire.service pipewire-pulse.service
|
||||||
# desktop elements that just work
|
# desktop elements that just work
|
||||||
ensure_installed swaync
|
ensure_installed swaync
|
||||||
set_unit swaync.service
|
set_unit swaync.service
|
||||||
ensure_installed waybar fontawesome4-fonts
|
ensure_installed waybar fontawesome4-fonts
|
||||||
set_unit waybar.service
|
set_unit waybar.service
|
||||||
|
set_unit cliphist.service
|
||||||
|
|
||||||
# Install ReGreet
|
# Install ReGreet
|
||||||
ensure_installed cargo gtk4-devel cairo-gobject-devel pango-devel greetd
|
ensure_installed cargo gtk4-devel cairo-gobject-devel pango-devel greetd
|
||||||
|
|||||||
@@ -14,8 +14,8 @@ exec-once = dbus-update-activation-environment --systemd WAYLAND_DISPLAY XDG_CUR
|
|||||||
#exec-once = uwsm app swaync
|
#exec-once = uwsm app swaync
|
||||||
|
|
||||||
# clippy
|
# clippy
|
||||||
exec-once = uwsm app wl-paste --type text --watch cliphist -max-items 36 store #Stores only text data
|
# exec-once = uwsm app wl-paste --type text --watch cliphist -max-items 36 store #Stores only text data
|
||||||
exec-once = uwsm app wl-paste --type image --watch cliphist -max-items 36 store #Stores only image data
|
# exec-once = uwsm app wl-paste --type image --watch cliphist -max-items 36 store #Stores only image data
|
||||||
|
|
||||||
#exec-once = hyprland-per-window-layout
|
#exec-once = hyprland-per-window-layout
|
||||||
|
|
||||||
|
|||||||
22
systemd/user/cliphist.service
Normal file
22
systemd/user/cliphist.service
Normal file
@@ -0,0 +1,22 @@
|
|||||||
|
[Unit]
|
||||||
|
Description=Clipboard history “manager” for wayland
|
||||||
|
Documentation=https://github.com/sentriz/cliphist
|
||||||
|
# order startup after WM
|
||||||
|
After=graphical-session.target
|
||||||
|
|
||||||
|
[Service]
|
||||||
|
Type=exec
|
||||||
|
# Repurpose XDG Autostart filtering
|
||||||
|
ExecCondition=/lib/systemd/systemd-xdg-autostart-condition "wlroots:sway:Wayfire:labwc:Hyprland" ""
|
||||||
|
ExecStart=wl-paste --watch cliphist -max-items 50 store
|
||||||
|
Restart=on-failure
|
||||||
|
Slice=app-graphical.slice
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=graphical-session.target
|
||||||
|
# Alternatively can be wanted by specific WMs' targets
|
||||||
|
# Should also be duplicated in 'After=' to avoid ordering loop
|
||||||
|
#WantedBy=wayland-session@sway.desktop.target
|
||||||
|
#WantedBy=wayland-session@wayfire.desktop.target
|
||||||
|
#WantedBy=wayland-session@labwc.desktop.target
|
||||||
|
#WantedBy=wayland-session@hyprland.desktop.target
|
||||||
Reference in New Issue
Block a user