feat: prtsc feh

This commit is contained in:
ange 2024-03-12 14:44:06 +01:00
parent 2531b7c294
commit f8ee677aa1
Signed by: ange
GPG Key ID: 9E0C4157BB7BEB1D
3 changed files with 4 additions and 6 deletions

View File

@ -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 };

View File

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

View File

@ -1 +0,0 @@
#!/usr/bin/env -Sfeh --fullscreen "${XDG_CONFIG_HOME}/wallpapers/lock.png"