nsbin/start-post-i3
Nico Schottelius bb844234de
All checks were successful
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in -19s
start-post-i3: use askpass autodetection
2024-09-11 14:14:10 +09:00

36 lines
775 B
Text
Executable file

2#!/bin/sh
# Restore layouts
#i3-msg 'workspace 1; append_layout ~/.i3/workspace-1.json'
#i3-msg 'workspace 2; append_layout ~/.i3/workspace-2.json'
#i3-msg 'workspace 10'
# Start programs afterwards and watch matching
if command -v firefox; then
firefox &
elif command -v chromium; then
chromium &
elif command -v chromium-browser; then
chromium-browser &
fi
emacs --daemon
for askpass in /usr/lib/ssh/gtk-ssh-askpass \
/usr/bin/ssh-askpass-fullscreen \
/usr/bin/qt4-ssh-askpass; do
if [ -x $askpass ]; then
SSH_ASKPASS=$askpass
break
fi
done
ssh-add </dev/null && mainemacs &
# Dell XPS 13" 2-in-1
xinput map-to-output "WCOM48EC:00 056A:48EC Touchscreen" eDP-1
# Pipewire sound
pipewire &