xession: add st-abduco-tabbed; dk: change term to st and add key for st-abduco-tabbed
This commit is contained in:
@@ -7,7 +7,10 @@ mod4 + p
|
|||||||
|
|
||||||
# terminal
|
# terminal
|
||||||
mod4 + shift + Return
|
mod4 + shift + Return
|
||||||
alacritty
|
st
|
||||||
|
|
||||||
|
mod4 + ctrl + shift + Return
|
||||||
|
st-abduco-tabbed
|
||||||
|
|
||||||
# screenshot and selection capture
|
# screenshot and selection capture
|
||||||
{_,mod4 + }@Print
|
{_,mod4 + }@Print
|
||||||
@@ -109,6 +112,6 @@ mod4 + ctrl + shift + s
|
|||||||
|
|
||||||
# toggle light/dark theme
|
# toggle light/dark theme
|
||||||
mod4 + F6
|
mod4 + F6
|
||||||
~/bin/lupan-set-theme toggle
|
lupan-set-theme toggle
|
||||||
|
|
||||||
# vim:ft=sxhkdrc
|
# vim:ft=sxhkdrc
|
||||||
|
|||||||
16
xsession/bin/st-abduco-tabbed
Executable file
16
xsession/bin/st-abduco-tabbed
Executable file
@@ -0,0 +1,16 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
if [ $# -eq 0 ]; then
|
||||||
|
exec tabbed "$0" -w
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ "$1" = "-w" ] && [ -n "$2" ]; then
|
||||||
|
name=$(abduco | tail +2 | awk -F'\t' '{ print $3 }' | dmenu -p session: -l 10)
|
||||||
|
if [ -n "$name" ]; then
|
||||||
|
# exec alacritty --embed "$2" --title "$name" -e abduco -A "$name" "$SHELL"
|
||||||
|
exec st -w "$2" -t "$name" -e abduco -A "$name" "$SHELL"
|
||||||
|
fi
|
||||||
|
else
|
||||||
|
echo error: requires either no arguments or single option -w with and argument >&2
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
Reference in New Issue
Block a user