From e3ec8155059a51414d66c5d7e0643257bdf07c4e Mon Sep 17 00:00:00 2001 From: DreamMaoMao <2523610504@qq.com> Date: Wed, 5 Feb 2025 13:39:41 +0800 Subject: [PATCH] update config --- config.def.h | 4 ++-- ~/.config/plume/autostart.sh | 15 +++++++++++++++ 2 files changed, 17 insertions(+), 2 deletions(-) create mode 100755 ~/.config/plume/autostart.sh diff --git a/config.def.h b/config.def.h index c911f790..8781b587 100644 --- a/config.def.h +++ b/config.def.h @@ -51,7 +51,7 @@ static int warpcursor = 1; /* Warp cursor to focused client */ static const char *const autostart[] = { "/bin/sh", "-c", - "$DWL/autostart.sh", + "~/.config/plume/autostart.sh", NULL, NULL, }; @@ -172,7 +172,7 @@ static const enum libinput_config_tap_button_map button_map = LIBINPUT_CONFIG_TA /* commands */ // static const char *termcmd[] = { "foot", NULL }; -// static const char *menucmd[] = { "wofi --conf $DWL/wofi/config_menu", NULL }; +// static const char *menucmd[] = { "wofi --conf ~/.config/plume/wofi/config_menu", NULL }; static const Key keys[] = { /* Note that Shift changes certain key codes: c -> C, 2 -> at, etc. */ diff --git a/~/.config/plume/autostart.sh b/~/.config/plume/autostart.sh new file mode 100755 index 00000000..ea540979 --- /dev/null +++ b/~/.config/plume/autostart.sh @@ -0,0 +1,15 @@ +#! /bin/bash + +set +e + +systemctl --user unmask xdg-desktop-portal-hyprland +systemctl --user mask xdg-desktop-portal-gnome + +dbus-update-activation-environment --systemd WAYLAND_DISPLAY XDG_CURRENT_DESKTOP=sway + +/usr/lib/xdg-desktop-portal-hyprland & + +wl-clip-persist --clipboard regular & +wl-paste --type text --watch cliphist store & + +