diff options
author | xyz <gky44px1999@gmail.com> | 2022-05-29 17:22:08 -0700 |
---|---|---|
committer | xyz <gky44px1999@gmail.com> | 2022-05-29 17:22:08 -0700 |
commit | 0f9207233d0b36b0501712f1d15c2878bb640d9d (patch) | |
tree | 74e616b8d329d8d5128ff3496f2932a2e760499c | |
parent | 29291af7a867d8e5a4f93ec23885c6aa7ae1af15 (diff) |
monerod hotkey, auto assign some programs to tags
-rw-r--r-- | config.def.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/config.def.h b/config.def.h index 69d5f41..4cc891d 100644 --- a/config.def.h +++ b/config.def.h @@ -36,7 +36,9 @@ static const Rule rules[] = { */ /* class instance title tags mask isfloating monitor */ { "Gimp", NULL, NULL, 0, 1, -1 }, - { "Firefox", NULL, NULL, 1 << 8, 0, -1 }, + { "firefox", NULL, NULL, 1 << 1, 0, -1 }, + { NULL, NULL, "monerod", 1 << 5, 0, -1 }, + { "qBittorrent", NULL, NULL, 1 << 5, 0, -1 }, }; /* layout(s) */ @@ -117,7 +119,7 @@ static Key keys[] = { { MODKEY, XF86XK_AudioMute, spawn, SHCMD("amixer set Capture toggle; kill -RTMIN $(pidof -x sbar)") }, { MODKEY, XK_Print, spawn, SHCMD("xrectsel '%w %h %x %y' | xargs sh -c 'ffmpeg -f x11grab -s \"$1x$2\" -i \"$DISPLAY+$3,$4\" -vframes 1 \"$XDG_PICTURES_DIR/screenshots/$(time.uuid).png\"' shell && notify-send 'Screenshot Finished'") }, { MODKEY, XK_n, spawn, SHCMD("dunstctl close") }, - { MODKEY, XK_q, spawn, SHCMD("qbittorrent") }, + { MODKEY, XK_q, spawn, SHCMD("qbittorrent & alacritty -t monerod -e monerod") }, { MODKEY, XK_r, spawn, SHCMD("xsel -ob | rev | xsel -ib") }, // Use "$(xsel -op)" instead of "xsel -op | sdcv" because: the latter won't quit if found items similar and require user input. Not sure why. // use env inside, to fix a bug: alacritty created by `alacritty msg create-window` will quit immediately if result is less than one page. |