update config

This commit is contained in:
DreamMaoMao 2025-02-05 13:39:41 +08:00
parent 34cc01b120
commit e3ec815505
2 changed files with 17 additions and 2 deletions

View file

@ -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. */

15
~/.config/plume/autostart.sh Executable file
View file

@ -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 &