From f8ee677aa1163b27fbe397395e452ac6b84aa892 Mon Sep 17 00:00:00 2001 From: ange Date: Tue, 12 Mar 2024 14:44:06 +0100 Subject: [PATCH] feat: prtsc feh --- .config/suckless/dwm-6.4-6-g9f88553/config.h | 4 ++-- .xinitrc | 5 ++--- bin/screensaver | 1 - 3 files changed, 4 insertions(+), 6 deletions(-) delete mode 100755 bin/screensaver diff --git a/.config/suckless/dwm-6.4-6-g9f88553/config.h b/.config/suckless/dwm-6.4-6-g9f88553/config.h index 48b1d43..4f589fe 100644 --- a/.config/suckless/dwm-6.4-6-g9f88553/config.h +++ b/.config/suckless/dwm-6.4-6-g9f88553/config.h @@ -32,7 +32,7 @@ static const Rule rules[] = { * WM_NAME(STRING) = title */ /* class instance title tags mask isfloating monitor */ - { NULL, NULL, NULL, 0, 0, -1 }, + { "feh", NULL, NULL, 0, 1, -1 }, }; /* layout(s) */ @@ -62,7 +62,7 @@ static const char *wwwcmd[] = { "firefox", NULL }; static const char *pwwwcmd[] = { "firefox", "--private-window", NULL }; static const char *calccmd[] = { "alacritty", "-epython", NULL }; static const char *fmcmd[] = { "pcmanfm", NULL }; -static const char *prtsccmd[] = { "sh", "-c", "gm import png:- | xclip -sel c -t image/png", NULL }; +static const char *prtsccmd[] = { "sh", "-c", "gm import png:- | xclip -sel c -t image/png && xclip -sel c -o | feh -", NULL }; static const char *lvolcmd[] = { "set-vol", "-5", NULL }; static const char *rvolcmd[] = { "set-vol", "+5", NULL }; static const char *mutecmd[] = { "set-vol", "m", NULL }; diff --git a/.xinitrc b/.xinitrc index 17ffff2..b5ace80 100644 --- a/.xinitrc +++ b/.xinitrc @@ -4,13 +4,12 @@ dbus-update-activation-environment --systemd DISPLAY XAUTHORITY # startup autorandr -c & -xss-lock -n screensaver -- lock & +xss-lock -n feh --fullscreen "$XDG_CONFIG_HOME/wallpapers/lock.png" -- lock & /usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1 || # arch /usr/lib/policykit-1-gnome/polkit-gnome-authentication-agent-1 || # debian /usr/libexec/polkit-gnome-authentication-agent-1 & # fedora picom & -gammastep 2> /dev/null & +gammastep & sbar & -flameshot & exec dwm diff --git a/bin/screensaver b/bin/screensaver deleted file mode 100755 index dbdc3b4..0000000 --- a/bin/screensaver +++ /dev/null @@ -1 +0,0 @@ -#!/usr/bin/env -Sfeh --fullscreen "${XDG_CONFIG_HOME}/wallpapers/lock.png"