Terminal -> tmux startup improvements, steam deck mode, field takes awk options
This commit is contained in:
parent
1c2ef25126
commit
5ee9ab8d5d
|
@ -2,5 +2,6 @@
|
|||
|
||||
has_command gawk || { echo "No gawk." >&2 ; exit 1; }
|
||||
index="${1:-1}"
|
||||
echo "$#" >&2
|
||||
[ "$#" -lt 1 ] || shift
|
||||
gawk '{print $'"${index}"'}' "$@"
|
||||
gawk "$@" '{print $'"${index}"'}'
|
||||
|
|
17
common/bin/steam
Executable file
17
common/bin/steam
Executable file
|
@ -0,0 +1,17 @@
|
|||
#!/usr/bin/env sh
|
||||
|
||||
if [ ! -f /bin/steam ] && [ ! -f /usr/bin/steam ] && [ ! -f /usr/local/bin/steam ]; then
|
||||
echo "Steam not installed (/bin/steam, /usr/bin/steam, and /usr/local/bin/steam not found)"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
mkdir -p ~/.steam/steam/package
|
||||
echo "steampal_stable_9a24a2bf68596b860cb6710d9ea307a76c29a04d" > ~/.steam/steam/package/beta
|
||||
|
||||
if [ -f /bin/steam ]; then
|
||||
exec /bin/steam -gamepadui
|
||||
elif [ -f /usr/bin/steam ]; then
|
||||
exec /usr/bin/steam -gamepadui
|
||||
elif [ -f /usr/local/bin/steam ]; then
|
||||
exec /usr/local/bin/steam -gamepadui
|
||||
fi
|
|
@ -60,5 +60,5 @@ end
|
|||
# end
|
||||
|
||||
if status is-interactive; and not set -q TMUX; and not status --is-login; and not string match '/dev/tty*' (tty)
|
||||
tmux attach -t default || tmux new -s default
|
||||
tmux
|
||||
end
|
|
@ -59,6 +59,7 @@
|
|||
|
||||
[push]
|
||||
default = current
|
||||
autoSetupRemote = true
|
||||
|
||||
[sendemail]
|
||||
smtpserver = smtp.mailgun.org
|
||||
|
|
|
@ -28,7 +28,7 @@ set -g monitor-activity on
|
|||
set -g visual-bell on
|
||||
set -g bell-action other
|
||||
set -g mode-keys vi
|
||||
set -g history-limit 1024000
|
||||
set -g history-limit 1000000
|
||||
set -g status on
|
||||
set -g status-position bottom
|
||||
set -g status-bg colour19
|
||||
|
|
|
@ -182,7 +182,7 @@ exec mako
|
|||
# exec gammastep -t 6500:3500 -l 39.0:-94.5
|
||||
# exec /usr/lib/kdeconnectd
|
||||
# exec sway-init-tmux
|
||||
exec exec kitty --single-instance tmux
|
||||
exec exec kitty --single-instance fish -i
|
||||
exec tmux start-server
|
||||
|
||||
# exec_always notify-send -a "sway" -i ~/.wallpaper "sway configuration loaded"
|
||||
|
|
Reference in a new issue