Commit graph

48 commits

Author SHA1 Message Date
tetrakist
51bc9ab8b8 Replace all XDG_RUNTIME_HOME with XDG_RUNTIME_DIR.
This is per the XDG Base Directory Specification:
https://specifications.freedesktop.org/basedir-spec/basedir-spec-latest.html

Signed-off-by: Maarten van Gompel <proycon@anaproy.nl>
2021-03-17 20:52:34 +01:00
Maarten van Gompel
39739ae974 fix for passing keyboard arguments 2021-03-15 21:29:52 +01:00
Maarten van Gompel
4eb914265d Added sxmo_keyboard script that acts as an intermediary to opening and closing the keyboard 2021-03-15 13:51:48 +01:00
tetrakist
49b435d24f Make Xresource loading generic. Call xrdb with "-merge".
Signed-off-by: Maarten van Gompel <proycon@anaproy.nl>
2021-03-06 23:13:24 +01:00
Maarten van Gompel
accd38806a Include custom Xresources if it exists 2021-02-26 14:30:08 +01:00
Maarten van Gompel
295af30993 various scripts were not sourcing the common include script yet (noted by mrrabbit1155) 2021-02-21 15:14:16 +01:00
Maarten van Gompel
24905884ee Removed explicit font from most dmenu calls, dmenu font is read from Xresources now and kept as uniform as possible 2021-02-01 18:32:32 +01:00
Maarten van Gompel
ce188e2f26 Use $SHELL, fix after patch: Start terminal with a login shell if run from dmenu
Signed-off-by: Maarten van Gompel <proycon@anaproy.nl>
2020-11-07 00:00:43 +01:00
Andre Ramnitz
a59aa85ee4 Don't touch $TERM
This name already exists and is usually set
by the terminal or a multiplexer.

Signed-off-by: Maarten van Gompel <proycon@anaproy.nl>
2020-11-06 23:59:29 +01:00
Anjandev Momi
90ddbc3e74 move dwm.log to $XDG_CACHE_HOME 2020-11-02 14:59:54 -05:00
Maarten van Gompel
a537bea76a changed default background colour (to be the same as the one in sxmo-xdm-config)
it's subjective, but the old one was rather ugly imho. Of course people
should customise it in their own custom xinit, but it might be
better if the default is a bit more appealing to the eye as it's the
first thing new users will see.

Signed-off-by: Maarten van Gompel <proycon@anaproy.nl>
2020-11-01 18:01:41 +01:00
Reed Wade
8d5eda8af7 Add automatic shellchecks with CI
Signed-off-by: Reed Wade <reedwade@misterbanal.net>
2020-10-30 12:56:04 -04:00
Miles Alan
deb83c0967 Don't source /etc/profile & $HOME/.profile if nonexistant in xinit 2020-09-19 17:15:32 -05:00
Maarten van Gompel
7830d95209 also source ~/.profile when looking for envvars
I have the impression that setting environment variables in the custom
xinit script doesn't always work properly (no idea why). Putting them in
~/.profile seems to be more robust. Sourcing it is a good idea anyhow,
hence this patch:
2020-09-15 19:29:17 -05:00
Miles Alan
a211d82939 Set MPV_HOME in xinit and add input.conf & mpv.conf 2020-08-31 22:13:28 -05:00
Anjandev Momi
44784c106b camera: low latency preview and picture
- Take pictures by pressing "s" when the preview opens.
- Depends on sxmo_autorotate.sh
- movie is not currently working. See comments in code
- uses sxiv for image previews of photos taken during that photoshoot
- TODO: use sxiv keyhandlers to add a delete photo function
	- See: /usr/share/examples/sxiv/key-handler
	- I dont know how we would distribute this
2020-08-28 21:51:26 -05:00
Maarten van Gompel
dbdb45bd6c smarter configuration of default keyboard if none specified; now compatible with upstream svkbd
Minor patch that correctly detects which virtual keyboard is available
if none was set explicitly, supports both the new upstream svkbd, as
well as the current sxmo-svkbd fork.
2020-08-18 20:37:48 -05:00
Miles Alan
ce50d0aef7 Re-enable notifications monitor 2020-08-05 23:33:53 -05:00
Miles Alan
faf9bfc48d Refactor notifications work to use 1 interface for writing notifs & use dates
Summary of changes:
1. Always use the sxmo_notificationwrite.sh script to write notifications
   rather then sometimes using echo to the DIR
2. Reorder args for notiffile spec to be action as 1st line, watchfile 2nd, and
   rest as msg; this way msg can be multiple lines without propogating bugs
3. Write calls as a standard notification via sxmo_notificationwrite.sh
4. Use datestamps from notification files instead of filename, this way (3)
   works without extra logic
5. Various style fixes
2020-08-05 23:32:39 -05:00
iressa
e6635ba7ef Notification patch v4 2020-08-05 23:32:39 -05:00
Miles Alan
bc10d502bd Remove keynav daemon - this is only relevant for desktop usage.. 2020-08-05 20:11:05 -05:00
Miles Alan
91c77cec6c Actually source custom xinit so that ENV vars are properly exported 2020-07-28 17:32:39 -05:00
Maarten van Gompel
ace9960926 Made choice for virtual keyboard configurable through the $KEYBOARD environment variable.
This implements what was suggested in the discussion regarding the svkbd
patch, it makes the choice of virtual keyboard configurable using the
$KEYBOARD variable, rather than hard-coding it.
2020-07-26 10:22:31 -05:00
Anjandev Momi
92e185b888 Add XDG user directories and env variables
This patch adds the rest of XDG user directories as per XDG base directory
specification.

https://wiki.archlinux.org/index.php/XDG_Base_Directory

This fixes launching anbox on sxmo. Furthermore, it makes sure $XDG_RUNTIME_HOME
has the correct permissions.

Signed-off-by: Miles Alan <m@milesalan.com>
2020-07-18 10:38:22 -05:00
Miles Alan
5c4c6c15e2 Refactor xinit to be more structured and set $EDITOR if unset to vis 2020-07-18 10:14:58 -05:00
Miles Alan
0801bb1adb Restructure configs into seperate folder 2020-07-12 19:29:46 -05:00
Miles Alan
f448f3c444 Source rather than just run the user's custom xinit file; allows exporting ENV 2020-07-11 09:53:18 -05:00
Maarten van Gompel
e455d31e55 read custom conky.conf if available
Signed-off-by: Miles Alan <m@milesalan.com>
2020-06-28 09:34:14 -05:00
Miles Alan
60963cd20c Start lisgd via a script instead of directly so changing gestures is simpler 2020-06-26 19:56:56 -05:00
Miles Alan
1d13cb6379 Make sure shellcheck passes and fixup style in sxmo_gpsutil.sh script 2020-06-24 21:48:48 -05:00
Miles Alan
049a93e5d8 Shellcheck and tabindent all scripts 2020-06-13 20:36:13 -05:00
Miles Alan
8015d49b03 Run $XDG_CONFIG_HOME/sxmo/xinit if it exists on starting X 2020-06-07 11:16:27 -05:00
Miles Alan
6a432b305b Shellcheck a few core scripts 2020-06-07 10:17:14 -05:00
Miles Alan
e23f439b65 Minor style cleanups in userscripts implementation 2020-06-07 10:17:11 -05:00
Anjandev Momi
1b78c3cf2f modem: use XDG_CONFIG_HOME to save logs
Signed-off-by: Miles Alan <m@milesalan.com>
2020-06-07 10:05:46 -05:00
Miles Alan
6d0f282cca Use default lisgd threshold always 2020-06-01 17:56:13 -05:00
Miles Alan
6e9c5ee7d1 Kill old instance of lisgd on xinit 2020-06-01 17:46:27 -05:00
Anjandev Momi
ff5f92c048 xinit: set touch env variable=1 for firefox
Signed-off-by: Miles Alan <m@milesalan.com>
2020-05-30 15:15:05 -05:00
Miles Alan
0cdf6e4723 Rework notifications to only use dunst 2020-05-30 15:15:05 -05:00
Miles Alan
402aa6f142 Add xcalc to the app menu; xrdb new xcalc xresources file on xinit 2020-05-22 23:15:32 -05:00
Miles Alan
fa3550c638 Add warnings to modem scripts if the modem is not present 2020-05-20 17:18:02 -05:00
Miles Alan
b4c02acb76 Set lisgd threshold to 500 2020-05-20 16:47:54 -05:00
Miles Alan
bfbec8ef46 Make default RSS feeds suck less; automatically start modem monitor 2020-05-19 21:30:12 -05:00
Miles Alan
22d974f22f Cleanup calling - mostly working; misc cleanup scripts; add vibrate program 2020-05-11 20:54:54 -05:00
Miles Alan
8ef3749b8b Cleanup xinit 2020-05-04 19:26:45 -05:00
Miles Alan
b96789df69 Enable synclient/keynav; fix kb w/ dmenu script; make bat/volume control device independent 2020-05-02 19:28:54 -05:00
Miles Alan
f47feb559b Remap caps to escape in xmodmap 2020-04-25 08:18:36 -05:00
Miles Alan
ae983ef8c8 Various progess on calling & texting; reorganize scripts dirs by category 2020-04-25 07:55:22 -05:00
Renamed from scripts/sxmo_xinit.sh (Browse further)