Terminal -> tmux startup improvements, steam deck mode, field takes awk options

This commit is contained in:
Daniel Flanagan 2023-01-13 10:53:17 -06:00
parent 1c2ef25126
commit 5ee9ab8d5d
Signed by: lytedev
GPG Key ID: 5B2020A0F9921EF4
6 changed files with 23 additions and 4 deletions

View File

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

View File

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

View File

@ -59,6 +59,7 @@
[push]
default = current
autoSetupRemote = true
[sendemail]
smtpserver = smtp.mailgun.org

View File

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

View File

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