dotfiles

Personal dotfiles
git clone https://git.bracken.jp/dotfiles.git
Log | Files | Refs | LICENSE

sway (608B)


      1 #!/bin/sh
      2 
      3 SWAY_CONFIG_HOME="${XDG_CONFIG_HOME:-$HOME/.config}/sway"
      4 
      5 # sway-specific environment
      6 if [ -f $SWAY_CONFIG_HOME/env ]; then
      7   . "$SWAY_CONFIG_HOME/env"
      8 fi
      9 
     10 # locate sway binary
     11 for p in /usr/local/bin/sway /usr/bin/sway; do
     12   [ -e "$p" ] && SWAY=/usr/local/bin/sway
     13 done
     14 if [ -z "$SWAY" ]; then
     15   echo "ERROR: unable to locate sway installation" >&2
     16   exit 1
     17 fi
     18 
     19 if [ -e "$(which systemd-cat)" ]; then
     20   # If on a systemd-enabled system, connect session output to the journal.
     21   exec systemd-cat --identifier sway dbus-run-session -- /usr/bin/sway "$@"
     22 else
     23   dbus-run-session -- "$SWAY" "$@"
     24 fi