#!/bin/sh
# configversion: 22abf3cab32b9affcf5543b44f9b04ac
# shellcheck source=scripts/core/sxmo_common.sh
. sxmo_common.sh
# Please modify this file to your liking
# Important Instructions:
# All processes you launch from this script must
# be non-blocking: launch them in the background (using &)
# or ensure they return quickly. Only after this script
# finishes will the window manager be loaded
# You will sometime get SMS or calls from not
# country code prefixed phone numbers. To make
# it easy to fixup configure the default countryu.
export DEFAULT_COUNTRY=US
### Configuration Parameters ###
# Note that this is just a subset of all available
# parameters, see the sxmo documentation for more.
# Use firefox as default browser if installed
command -v firefox >/dev/null && export BROWSER=firefox
# Prepopulate Subreddits menu with custom subreddits
#export SXMO_SUBREDDITS="postmarketos pinephoneOfficial pinephone unixporn"
# Change the default terminal command
export TERMCMD="sxmo_terminal.sh"
# Change the used terminal command
export SXMO_TERMINAL="vte-2.91 -T 30 --whole-window-transparent -n 300 --use-theme-colors --"
# When scrolling past the beginning or end of a menu, wrap it around:
#export DMENU_WRAP_AROUND=1
# Enable audio feedback on keypress
#export KEYBOARD_ARGS="-o | clickclack -f $(xdg_data_path sxmo/keytap.wav)"
# Or, enable vibration feedback on keypress
#export KEYBOARD_ARGS="-o | clickclack -V"
# Set the scale factor in sway
# export SXMO_SWAY_SCALE=2
# To load specific part of configuration depending on the running environment
case "$SXMO_WM" in
sway)
export WVKBD_LAYERS="simple,specialpad"
export KEYBOARD_ARGS="-H 160 -O | swipeB"
export BEMENU_OPTS="--fn 'Monospace 14' --scrollbar autohide -s -n -w -c -l8 -M 40 -H 20 --cb #22222288 --cf #bbbbbb --tb #005577 --tf #eeeeee --fb #22222288 --ff #bbbbbb --nb #22222288 --af #bbbbbb --ab #22222288 --nf #bbbbbb --hb #005577 --hf #eeeeee --scb #005577 --scf #eeeeee --fbb #eeeeee --fbf #22222288"
;;
dwm)
;;
esac
#Set RINGTONE to audio file to play for incoming call
export SXMO_RINGTONE="$(xdg_data_path sxmo/ring.ogg)"
#Set TEXTSOUND to audio file to play when received text message
export SXMO_TEXTSOUND="$(xdg_data_path sxmo/notify.ogg)"
#Set RINGTIME to number of seconds the phone will ring
export SXMO_RINGTIME=20
#Set RINGNUMBER to number of times phone will ring or repeat ringtone
#(whichever of SXMO_RINGTIME or SXMO_RINGNUMBER runs less will limit how long phone rings)
export SXMO_RINGNUMBER=10
#Set to the default text for a new text message.
export SXMO_DEFAULT_DRAFT="okay, ..."
#Set background image
export SXMO_BG_IMG=~/Pictures/background.jpg #"$(xdg_data_path sxmo/background.jpg)"
export SXMO_BAR_HIDE_BAT_PER=1
export SXMO_STATUS_DATE_FORMAT=" "
export SXMO_WORKSPACE_WRAPPING=6