Commit graph

36 commits

Author SHA1 Message Date
Maarten van Gompel
61451f6292
added a default audiostart hook to force output over main speaker and set a sane default volume
Signed-off-by: Stacy Harper <contact@stacyharper.net>
2021-09-12 09:32:16 +02:00
Stacy Harper
3c3c5f5b45 Hide border on Sway when only one window is present
Signed-off-by: Stacy Harper <contact@stacyharper.net>
Signed-off-by: Anjandev Momi <anjan@momi.ca>
2021-09-04 03:33:58 -04:00
Stacy Harper
4571330df4 Add and setup nclutter-xfixes
Signed-off-by: Stacy Harper <contact@stacyharper.net>
Signed-off-by: Maarten van Gompel <proycon@anaproy.nl>
2021-09-01 18:58:48 +02:00
baroque
5b705dc91b
reduce notification spam in volume/brightness
Added a second parameter to notifications (actually a first, "app-name"), so they can be *grouped* when there is more than one, reducing the clutter on the screen, using the mako config parameter " group-by=app-name "

with proper quotes (i hope), case and cute icon ;)

added "group-by = app-name" directive in mako config

Signed-off-by: Stacy Harper <contact@stacyharper.net>
2021-08-31 20:45:42 +02:00
Stacy Harper
7f39de55f0
move sway input/output to a dedicated file 2021-08-31 16:42:37 +02:00
Maxim Karasev
85e18743bf
Clean up sway config and add BQ Aquaris X5 support
Signed-off-by: Stacy Harper <contact@stacyharper.net>
2021-08-31 16:42:36 +02:00
Stacy Harper
f86cc46d03 Add a bemenu control mode to access bemenu control with buttons
Signed-off-by: Stacy Harper <contact@stacyharper.net>
Signed-off-by: Maarten van Gompel <proycon@anaproy.nl>
2021-08-30 22:22:43 +02:00
Stacy Harper
98c7d1f2d4 Add some missing sway keyboard inputs
This is maily for docked mode but those bind are required.

Signed-off-by: Stacy Harper <contact@stacyharper.net>
Signed-off-by: Maarten van Gompel <proycon@anaproy.nl>
2021-08-24 22:12:51 +02:00
Stacy Harper
8a27933c47 SWMO - SXMO over Wayland
This is a huge patch for Swmo, Sxmo over Sway.

It is Dwm backward compatible so dwm users should not expect regressions.

If you install all dependencies, you then can toggle between Sway and Dwm using a new config entry. It will reboot the phone.

This commit also contains:
    * Make the modemmonitor bullet proof
    * various other smaller fixes

Signed-off-by: Stacy Harper <contact@stacyharper.net>
Signed-off-by: Maarten van Gompel <proycon@anaproy.nl>
2021-08-22 13:23:22 +02:00
Miles Alan
69fe290dfa xinit_template: Don't set SXMO_LOCK_SCREEN_OFF=1 by default
This should be a better default as users of the previous C screenlock
may expect this funcionality to work ootb / this retains prior defaults.
2021-07-30 23:50:32 -04:00
Anjandev Momi
ccc6223c1b Revert "add a configurable daemon that warns on low battery"
This reverts commit c7e0e3b656.

Signed-off-by: Anjandev Momi <anjan@momi.ca>
2021-07-15 18:29:35 -04:00
Stacy Harper
0ed27f8538 Handle cron tasks while in crust
mnc goal is to display when will occurs the next cron job.

We drop the "sxmo_screenlock.sh rtc" command and the
SXMO_RTCWAKEINTERVAL variable. We will now only use
"sxmo_screenlock.sh crust" which mean suspend until next cron job
(-2 seconds).

To replicate the old behavior of the blinking phone then returning to
suspension (if needed) we now use a new script.

By example:

*/15 * * * * DISPLAY=:0 sxmo_rtcwake.sh sleep 10

This will trigger a 10s sleep task every 15 minutes (the old default
rtcwake hook).

Signed-off-by: Stacy Harper <contact@stacyharper.net>
Signed-off-by: Maarten van Gompel <proycon@anaproy.nl>
2021-06-29 22:43:09 +02:00
noneofyourbusiness
c7e0e3b656 add a configurable daemon that warns on low battery
Signed-off-by: Maarten van Gompel <proycon@anaproy.nl>
2021-06-21 23:01:48 +02:00
Stacy Harper
e428d0c4a4 Simplify the termmode detection
As we now rely on sxmo_terminal.sh and the TERMCMD env variable, we then
can simplify things.

In the sxmo dwm context, TERMCMD="st -e" so sxmo_terminal.sh will run
the command in st.

In the ssh context, we dont have TERMCMD so sxmo_terminal.sh will just
run the command

In a tmux context, we can set TERMCMD="tmux split-window" with
set-environment -g TERMCMD "tmux split-window"
so sxmo_terminal.sh will run the command in a splited window.

Signed-off-by: Stacy Harper <contact@stacyharper.net>
Signed-off-by: Maarten van Gompel <proycon@anaproy.nl>
2021-06-21 22:59:20 +02:00
Stacy Harper
469f7cbd13
Fixup inconsistent usage of default country on phone numbers 2021-06-18 10:32:32 +02:00
Stacy Harper
c5c5537873
Do not enforce -e TERMCMD args and fix TERMMODE
Enforcing -e break some possibilities to use TERMCMD that dont use it.

TERMCMD should be setup in xinit. This way, in ssh mode, the value still
is empty. This way, some custom bash or tmux config could use
it, configuring it.
2021-06-09 08:42:51 +02:00
Stacy Harper
91fe7fbeab Fix the unreliable modem numbers prefix issues
Sometime, the modem will give 0611924312 as incoming text or
call number instead of +33611924312 (example in france).

This cause two issues cause of format missmatch:

* Notifications sometime come from "Unknown" when we actually know
the contact
* Text/Dial menu entries are duplicated with "Unknown" persons

We try here to fix boths issues with a simple idea. We will fallback
to a default prefix when it is missing (on phone like numbers,
composed of 10 numbers).

This prefix is an environment variable that cause 0 impact if missing.

* sxmo_contacts.sh will fix the recent numbers prefixes with the default
* sxmo_modemmonitor.sh will also fix the prefix with the default one

This should solve missmatch issues as both will use country code format

I only recommend to always store contacts in the prefixed format in the
contacts.tsv file.

Signed-off-by: Stacy Harper <contact@stacyharper.net>
Signed-off-by: Maarten van Gompel <proycon@anaproy.nl>
2021-04-10 13:20:19 +02:00
Maarten van Gompel
6951639886 automatically turn modemmanager on in xinit template 2021-03-31 11:37:49 +02:00
Maarten van Gompel
943199aef8 set SXMO_LOCK_SCREEN_OFF=1 in xinit template 2021-03-31 11:37:39 +02:00
Maarten van Gompel
95683bdc0c make notifications not cover the status bar (suggested by ~dinkocar in #220) 2021-03-30 19:11:09 +02:00
Maarten van Gompel
cddec4205d removed the startup tune in the xinit template 2021-03-30 19:05:18 +02:00
Maarten van Gompel
34cf0fd0fc fixed clickclack vibration flag in xinit template 2021-03-30 19:04:07 +02:00
Maarten van Gompel
fa0d9b6e2d fixed 24h conky 2021-03-29 20:21:27 +02:00
Maarten van Gompel
12d7ae0fbb minor fix in xinit template 2021-03-29 19:52:41 +02:00
Maarten van Gompel
c324aed044 fix for firefox as default browser in template 2021-03-29 16:27:54 +02:00
Maarten van Gompel
5f82699014 Added a more detailed xinit_template and added some default media resources (wallpaper,startup tune,keypress sound) that are preconfigured in the template 2021-03-29 14:00:09 +02:00
tetrakist
f8995ad25c Fix large conky shadow when using large fonts.
After HiDPI was enabled, larger font sizes were needed in conky.conf.
Due to conky weirdness, this requires the addition of ${font} at the end
of the conky.text = [[ ]] section in conky.conf to prevent weird large
offsets for the drop shadow. This returns the shadow a ~1 pixel
offset.

See https://forums.gentoo.org/viewtopic-p-7132288.html

Signed-off-by: Maarten van Gompel <proycon@anaproy.nl>
2021-03-24 21:43:53 +01:00
Maarten van Gompel
e03e17fba0 added xresources for st 2021-03-22 19:49:48 +01:00
Maarten van Gompel
a6043ad80d use icons in status bar 2021-03-21 17:00:30 +01:00
Maarten van Gompel
f768d5b551 added xresources files with fonts compatible with the new hidpi patch 2021-03-15 21:29:52 +01:00
tetrakist
890b9bc439 Add HiDPI support: Xft Xresources, and xorg monitor dimesions
Signed-off-by: Maarten van Gompel <proycon@anaproy.nl>
2021-03-15 21:29:52 +01:00
tetrakist
0d66342126 Correct display of sqrt, pi, and division buttons when using terminus font.
Signed-off-by: Maarten van Gompel <proycon@anaproy.nl>
2021-03-06 23:12:05 +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
Andre Ramnitz
1221e853cb Proper xresources for xcalc 2020-09-12 22:26:10 -05:00
iressa
e6635ba7ef Notification patch v4 2020-08-05 23:32:39 -05:00
Miles Alan
0801bb1adb Restructure configs into seperate folder 2020-07-12 19:29:46 -05:00