From 5ee9ab8d5dcfb20acf3a860e77f84184aeb484d3 Mon Sep 17 00:00:00 2001 From: Daniel Flanagan Date: Fri, 13 Jan 2023 10:53:17 -0600 Subject: [PATCH] Terminal -> tmux startup improvements, steam deck mode, field takes awk options --- common/bin/field | 3 ++- common/bin/steam | 17 +++++++++++++++++ common/fish/config.fish | 2 +- common/git/config | 1 + common/tmux/conf | 2 +- os/linux/sway/config | 2 +- 6 files changed, 23 insertions(+), 4 deletions(-) create mode 100755 common/bin/steam diff --git a/common/bin/field b/common/bin/field index 3df0042..45bbb7a 100755 --- a/common/bin/field +++ b/common/bin/field @@ -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}"'}' diff --git a/common/bin/steam b/common/bin/steam new file mode 100755 index 0000000..e5c4785 --- /dev/null +++ b/common/bin/steam @@ -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 \ No newline at end of file diff --git a/common/fish/config.fish b/common/fish/config.fish index dc45394..5da5d2c 100755 --- a/common/fish/config.fish +++ b/common/fish/config.fish @@ -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 \ No newline at end of file diff --git a/common/git/config b/common/git/config index f6b8330..b4fbe9f 100644 --- a/common/git/config +++ b/common/git/config @@ -59,6 +59,7 @@ [push] default = current + autoSetupRemote = true [sendemail] smtpserver = smtp.mailgun.org diff --git a/common/tmux/conf b/common/tmux/conf index 794621e..e517077 100644 --- a/common/tmux/conf +++ b/common/tmux/conf @@ -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 diff --git a/os/linux/sway/config b/os/linux/sway/config index 5e017ef..b19a253 100644 --- a/os/linux/sway/config +++ b/os/linux/sway/config @@ -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"