Commit graph

612 commits

Author SHA1 Message Date
noneofyourbusiness
1121e29b3e replace "st -e" with sxmo_terminal.sh and edit it to use st -e instead of st
Signed-off-by: Maarten van Gompel <proycon@anaproy.nl>
2021-06-04 21:50:59 +02:00
Anjandev Momi
358d79894e sxmo_files: add "open in st" for current directory
Signed-off-by: Maarten van Gompel <proycon@anaproy.nl>
2021-06-04 21:50:37 +02:00
Anjandev Momi
30e8dfdc88 aerc: reopen menu after archiving or viewing next part 2021-05-31 19:46:35 +00:00
Anjandev Momi
eda812b1fa aerc: archive flat, add close tab, and clarify open as xdg-open 2021-05-31 19:41:37 +00:00
Anjandev Momi
0615306072 added context menu for aerc
Signed-off-by: Maarten van Gompel <proycon@anaproy.nl>
2021-05-31 21:37:52 +02:00
Stacy Harper
18892aa181 Fix default dir to HOME
Signed-off-by: Stacy Harper <contact@stacyharper.net>
Signed-off-by: Anjandev Momi <anjan@momi.ca>
2021-05-23 20:05:10 +00:00
Stacy Harper
4df27b1e81
Unify window killing 2021-05-23 15:56:24 +02:00
Maarten van Gompel
88a5079072
ensure there is always an $EDITOR set
It could occur that a user does not have an $EDITOR set when logging in
via SSH.

Signed-off-by: Stacy Harper <contact@stacyharper.net>
2021-05-23 14:37:11 +02:00
Maarten van Gompel
eb34a970cb
TERMMODE was used but not set in sxmo_modemtext.sh + sanity check for sxmo_terminal
(fixed the shellcheck problem)

Signed-off-by: Stacy Harper <contact@stacyharper.net>
2021-05-23 14:37:11 +02:00
Stacy Harper
0b79710cb5
Fix and simplify the pipecomplete svkbd managing 2021-05-23 14:25:34 +02:00
Nguyễn Gia Phong
d8e19504f6
Use Super as dwm modifier key
Signed-off-by: Stacy Harper <contact@stacyharper.net>
2021-05-23 14:14:59 +02:00
Stacy Harper
200ecfa1a7
Fix the statusbar battery icon
We hardcode the file path as it is now configurable
2021-05-20 19:41:27 +02:00
noneofyourbusiness
500a227d05
Add an automated way to configure a hostspot network
Signed-off-by: Stacy Harper <contact@stacyharper.net>
2021-05-20 16:50:04 +02:00
noneofyourbusiness
f361cf7139
replace if/elif in sxmo_network.sh with case
Signed-off-by: Stacy Harper <contact@stacyharper.net>
2021-05-20 16:03:46 +02:00
Stacy Harper
c183530b38
Fix rotation while simplifying id detection.
We hardcode the default pinephone screen input id as we now can override
it by device.
2021-05-20 13:50:08 +02:00
Clayton Craft
989e36336b
deviceprofiles/librem5: set BACKLIGHT var to correct device
Signed-off-by: Stacy Harper <contact@stacyharper.net>
2021-05-20 09:45:08 +02:00
Clayton Craft
921ab1773a
sxmo_brightness.sh: write brightness val directly to sysfs
This removes the dependency on an external compiled app for writing the
brightness value to sysfs, and just echoes it directly to the backlight
sysfs node.

In addition, if the write fails, the script exits instead of sending a
misleading notification.

Signed-off-by: Stacy Harper <contact@stacyharper.net>
2021-05-20 09:43:08 +02:00
Clayton Craft
4c3e6044ce
sxmo_brightness: add support for overriding backlight device
This uses the BACKLIGHT env var to override the device used for
controlling the backlight. My intention was to keep the default behavior
if it's unset, use the backlight/backlight path if that exists then fall
back to backlight/edp-backlight.

Finally, this changes the script to return immediately if no backlight
device is found with the given options.

Signed-off-by: Stacy Harper <contact@stacyharper.net>
2021-05-20 09:43:08 +02:00
Alex O
5741f0692c
Wileyfox Swift rotate and autorotate fix
Signed-off-by: Stacy Harper <contact@stacyharper.net>
2021-05-20 09:09:45 +02:00
Maarten van Gompel
f60ef805bc added quit option in context menu for less 2021-05-19 23:07:45 +02:00
Maarten van Gompel
c77a54857a added some links back to st menu 2021-05-19 23:07:37 +02:00
Maarten van Gompel
ad586b6b58 add some vim shortcuts to the generic hotkey menu (vim context menu is not always properly detected) 2021-05-19 23:07:28 +02:00
Maarten van Gompel
9795992d8a added Close Tab option for firefox in context menu 2021-05-19 23:07:18 +02:00
Alex O
b2fad74052 Wileyfox Swift battery level icon fix
Signed-off-by: Anjandev Momi <anjan@momi.ca>
2021-05-19 02:46:48 +00:00
Timotej Lazar
51815acb0a smxo_appmenu: replace if/grep with case in programchoicesinit
On a PinePhone, this function took ~90 ms before the change and ~45 ms
after.

Signed-off-by: Anjandev Momi <anjan@momi.ca>
2021-05-18 06:10:12 +00:00
Stacy Harper
7fe317c71b Also give WMNAME to user inputhandlers to handle terminals
Signed-off-by: Stacy Harper <contact@stacyharper.net>
Signed-off-by: Anjandev Momi <anjan@momi.ca>
2021-05-18 06:05:36 +00:00
Stacy Harper
c81940a74e fix a bug as WMCLASS can be '"gl", "mpv"'
I took the WMCLASS linecode from the appmenu where we do not strip the
full line

Signed-off-by: Stacy Harper <contact@stacyharper.net>
Signed-off-by: Anjandev Momi <anjan@momi.ca>
2021-05-18 06:05:36 +00:00
Jochen Sprickerhof
cafd100d28 Alias busybox pgrep/pkill only if apples are available
The Debian busybox does not provide those applets. This makes no
difference for PostmarketOS as they are an alias to busybox.

Signed-off-by: Maarten van Gompel <proycon@anaproy.nl>
2021-05-16 13:49:24 +02:00
Maarten van Gompel
50f58e9ec3 fixed stderr redirect in sxmo_open 2021-05-16 00:25:55 +02:00
Stacy Harper
59fe5977b4 Add a shortcut to list message from contact menu
Signed-off-by: Stacy Harper <contact@stacyharper.net>
Signed-off-by: Maarten van Gompel <proycon@anaproy.nl>
2021-05-16 00:05:03 +02:00
Stacy Harper
2c47c5e55f List unknown numbers when adding contact
Signed-off-by: Stacy Harper <contact@stacyharper.net>
Signed-off-by: Maarten van Gompel <proycon@anaproy.nl>
2021-05-16 00:04:16 +02:00
Stacy Harper
cc81deeb10 fix a bug when you add a contact after edition
The number variable was already used so it is not empty where we need it
to be.

Signed-off-by: Stacy Harper <contact@stacyharper.net>
Signed-off-by: Maarten van Gompel <proycon@anaproy.nl>
2021-05-16 00:01:25 +02:00
Stacy Harper
ed220b34d7 Make bluetooth menu killeable with gesture
Signed-off-by: Stacy Harper <contact@stacyharper.net>
Signed-off-by: Maarten van Gompel <proycon@anaproy.nl>
2021-05-15 23:57:32 +02:00
Stacy Harper
457aa3e1b0 Open the selected file then the nexts preserving the order
Signed-off-by: Stacy Harper <contact@stacyharper.net>
Signed-off-by: Maarten van Gompel <proycon@anaproy.nl>
2021-05-15 23:54:39 +02:00
Stacy Harper
f37de20a0d Make sxmo_file killeable with gesture
Signed-off-by: Stacy Harper <contact@stacyharper.net>
Signed-off-by: Maarten van Gompel <proycon@anaproy.nl>
2021-05-15 23:54:39 +02:00
Jochen Sprickerhof
7239b2c362 Use pkill -f for $KEYBOARD
Some pkill implementations match on /proc/pid/stat which is limited to
15 characters [1]. $KEYBOARD defaults to svkbd-mobile-intl which is more
then 15 characters, so use -f to match the full string. Note that sxmo
uses busybox pkill by default which does not have this limit.

[1] https://manpages.debian.org/buster/procps/pgrep.1.en.html (Notes)

Signed-off-by: Anjandev Momi <anjan@momi.ca>
2021-05-11 19:54:11 +00:00
Jochen Sprickerhof
06a6d472d7 Don't pass parameters when souring scripts
Passing additional parameters when sourcing scripts is not specified in
POSIX [1]. For example dash simply ignores it and proposes to use set
instead [2]. This is needed to use sxmo on top of Debian.

[1] https://pubs.opengroup.org/onlinepubs/9699919799/utilities/V3_chap02.html#dot
[2] https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=713805#10

Signed-off-by: Anjandev Momi <anjan@momi.ca>
2021-05-11 19:54:11 +00:00
Anjandev Momi
161cc52091 Clarify Lagrange submenu not firefox 2021-05-09 06:20:51 +00:00
Stacy Harper
94613e5ae7 Add lagrange shortcuts in appmenu
Signed-off-by: Stacy Harper <contact@stacyharper.net>
Signed-off-by: Anjandev Momi <anjan@momi.ca>
2021-05-09 06:18:30 +00:00
Nguyễn Gia Phong
401ca22d46 Add gomuks to apps launcher
Signed-off-by: Maarten van Gompel <proycon@anaproy.nl>
2021-04-30 20:47:01 +02:00
Maarten van Gompel
906226a4ed added gesture to close less/mless (swipe to left edge or left along bottom edge) 2021-04-26 23:00:35 +02:00
Anjandev Momi
b87be17a64 Revert "Log dwm to CACHEDIR not XDG_CACHE_HOME/sxmo"
This reverts commit 472ad269cb.

double quotes are annoying
2021-04-24 15:19:59 -04:00
Anjandev Momi
472ad269cb Log dwm to CACHEDIR not XDG_CACHE_HOME/sxmo
It's the same directory but we might want to change CACHEDIR in the
future
2021-04-24 15:12:46 -04:00
Clayton Craft
355f68652e sxmo_lisgdstart: log output to file
Useful when identifying/debugging lisgd crashes, and other strange behavior.

The log location is the same place where dwm logs to, so this seemed
appropriate.

Signed-off-by: Anjandev Momi <anjan@momi.ca>
2021-04-24 15:10:07 -04:00
Stacy Harper
bbece6a657 Use toprightcorner to open user script menu
Signed-off-by: Stacy Harper <contact@stacyharper.net>
Signed-off-by: Anjandev Momi <anjan@momi.ca>
2021-04-24 01:27:20 -04:00
Stacy Harper
f16422cf0c fix indentation style
Signed-off-by: Stacy Harper <contact@stacyharper.net>
Signed-off-by: Anjandev Momi <anjan@momi.ca>
2021-04-24 01:27:20 -04:00
Clayton Craft
2d9740f252 sxmo_audio*: properly set vars with default values if they are unset
A mistake from implementing this resulted in the shell trying to expand
the 'word' part (e.g. "Line Out"), when the var was unset or null.
Obviously those are are strings and not expandable.

Signed-off-by: Anjandev Momi <anjan@momi.ca>
2021-04-24 01:14:55 -04:00
Anjandev Momi
7d9b86b54c Add shebang for target shell 2021-04-23 17:23:43 -04:00
Clayton Craft
af621dec7c sxmo_deviceprofile_librem5*: add initial profile for librem5
Currently there are 3 revisions of the L5, and they are all sharing the
same profile here since this only sets audio vars and they're all the
same. In the future the symlinks can be broken if profiles need to
deviate for some reason in order to set different values for vars, etc.

Signed-off-by: Anjandev Momi <anjan@momi.ca>
2021-04-23 17:22:03 -04:00
Clayton Craft
6abfc76bb7 sxmo_audiocurrentdevice: use existing env vars for audio devices
Signed-off-by: Anjandev Momi <anjan@momi.ca>
2021-04-23 17:22:03 -04:00