I'm transitioning over to river from bspwm and I was doing something like this
# move a floating window
super + w
echo "mode_move" >"$SXHKD_MODE_FILE"; \
notify-send --hint int:transient:1 "sxhkd" "Move mode enabled"; \
killall sxhkd && sxhkd -c "$XDG_CONFIG_HOME"/sxhkd/mode_move
### mode_move file
# return to original sxhkd
Escape
printf "" >"$SXHKD_MODE_FILE"; \
killall zscroll 2>/dev/null; \
killall sxhkd && sxhkd &
{m,n,e,i}
bspc node -v {-20 0,0 20,0 -20,20 0}
I'm asking how to do this using swhkd since it needs root and I'm not willing to input password every time I do something like this
This is what I have tried
super + w
echo "mode_move" >"$SXHKD_MODE_FILE"; \
notify-send --hint int:transient:1 "swhkd" "Move mode enabled"; \
pkill -HUP swhkd -c "$XDG_CONFIG_HOME"/swhkd/mode_move
also on sxhkd these 2 are different keybinds why doesnt this work with swhkd
# Browser launcher
super + g
qutebrowser
super + G
"$XDG_CONFIG_HOME"/qutebrowser/userscripts/container-open
|