From 7b37f178bac7549e83da784e9fc3701ef14a2448 Mon Sep 17 00:00:00 2001 From: jason Date: Fri, 7 Jun 2024 15:53:12 -0600 Subject: sway clipboard history --- sway/.config/sway/config | 24 ++++++++++++++---------- 1 file changed, 14 insertions(+), 10 deletions(-) diff --git a/sway/.config/sway/config b/sway/.config/sway/config index 8ab6f9a..1e576c6 100644 --- a/sway/.config/sway/config +++ b/sway/.config/sway/config @@ -32,16 +32,18 @@ set $cmd_laptop_screen_enable swaymsg output $laptop_screen power on enable ##### Default: wmenu #set $menu dmenu_path | wmenu | xargs swaymsg exec -- -set $menu dmenu_path | wofi -S dmenu | xargs swaymsg exec -- - -##### Alacritty popup -# Note: i haven't tested with the new lines + escapes -# set $menu exec $term \ -# --class=launcher \ -# -e bash \ -# -c 'compgen -c | grep -v fzf | sort -u | fzf --layout=reverse \ -# | xargs -r swaymsg -t command exec' -# for_window [app_id="^launcher$"] floating enable, border none, opacity 0.8 +#set $menu dmenu_path | wofi -S dmenu | xargs swaymsg exec -- + +##### Terminal popup +set $menu exec foot \ + --app-id=launcher \ + bash -c 'compgen -c | grep -v fzf | sort -u \ + | fzf --layout=reverse | xargs -r swaymsg -t command exec' +bindsym Ctrl+$alt+v exec foot \ + --app-id=launcher \ + bash -c 'cliphist list | cliphist-fzf-sixel | cliphist decode \ + | wl-copy --primary' +for_window [app_id="^launcher$"] floating enable, border none, opacity 0.8 ############################################################################### # Output configuration @@ -279,6 +281,8 @@ for_window [instance="sun-awt-X11-XWindowPeer"] border pixel 0 # Startup Apps exec [ ! "$(pidof pipewire)" ] && pipewire exec [ ! "$(pidof syncthing)" ] && syncthing serve +exec [ ! "$(ps x | grep wl-paste.*cliphist | wc -l)" -ge 4 ] && wl-paste --watch cliphist store + # Fix for "No Gcr prompter" with pinentry-gnome3 exec dbus-update-activation-environment DISPLAY XAUTHORITY -- cgit v1.2.1