Commit graph

10 commits

Author SHA1 Message Date
496522605f
X: Improve lockscreen handling
Added lockscreen trapping and media pausing for lockscreen.
When it is invoked `lockscreen`, all media will be attempted to be pause
and the system will be muted.
Then the lockscreen is engaged.
This should happen automatically when the screen shuts off or the system
suspends or hibernates and can be invoked manually, as before, with
super+x shortcut.
2021-07-28 14:41:02 +02:00
3d0446de05
sxhkd: Change chain mode exiting
Changed the way to exit sxhkd chain modes. Instead of using `esc` to get
out of them, now pressing the mode key chain again will also exit out of
the mode (e.g. `alt + m` to get into `media` mode, then `alt + m` once
more to exit it).

This is done since using escape will interfere with many normal-use
scenarios while in a chain-mode, especially if those modes are intended
to be used over somewhat longer periods of time (somewhat like vim-modes
or emacs layers). The key to exit modes has now been moved to `copyright`,
so in the rather improbable case that your keyboard contains a
`copyright` key, be careful of accidentally hitting it when in an sxhkd
chain mode.

Fixed passing arguments to the sxhkd-piped script. It will pass along
any commandline arguments passed now (even `-s`, though then the script
will cease to do anything).

Improved version output of sxhkd-chain-labels a little, invoking
`sxhkd-chain-labels -v` will now show the correct configuration file and
FIFO pipe being used, as well as whether they exist on the file system.
Fixed the versioning of the script to display the correct version.
2021-07-10 18:03:50 +02:00
d6d2c3d787
X: Fix xinitrc keyboard language setting
Improved the language setting to simply make use of the search for
touchpad, just like setting the touchpad options.
Since these are my only two keyboards at the moment, the difference
should be meagre to non-existent in the way the old detection worked and
the new one does.
2021-04-12 18:37:30 +02:00
5973de3425
Fix for updated arch dmesg access policy
Archlinux changed the access to 'dmesg' to only be available to super
users with the following commit:
b78bc292e2 (diff-3e341d2d9c67be01819b25b25d5e53ea3cdf3a38d28846cda85a195eb9b7203a)

This changes the command to enabled touch pad tapping on X startup to a
systemd-compatible version, following the recommendation found here:
https://www.reddit.com/r/archlinux/comments/kqvotl/dmesg_cannot_be_run_as_normal_user_anymore/
2021-01-26 12:33:59 +01:00
b83929bcbd
services: Move flashfocus to systemd service
Removed manual initialization of flashfocus from xinitrc, enabled the
service in systemd.

Changed the restart timer to 5 seconds, to mirror other X-dependent user
services to circumvent systemd being too eager to start the service
before X is ready on booting.
2020-09-18 13:16:09 +02:00
717f2a13d6
X: Remove xdg-user-dirs, manually set dirs with sh
We already have a file which is strictly dedicated to xdg setting
environment variables and taking care of folder creations.

Using xdg-user-dirs as an application was basically doubling up on that.
Also, I don't need my directories localized - I just want them to point
to exactly where they should.
2020-07-29 08:13:31 +02:00
51178df4a3
services: Add time override to greenclip, redshift
Both greenclip and redshift did not automatically start on system start,
since they needed X to be running but their restart was almost
instantaneously. So, they restarted their alloted 5 times before X was
ready and gave up.

Restart time has been set to 5 and 10 seconds, so their startup takes a
little longer but should, in most cases, succeed.
2020-07-29 08:13:25 +02:00
cfcd458427
[X] Correctly detect laptop or desktop for key map
While shellcheck complains that posix does not know about HOSTNAME
env var, it seems to be required for zsh/bash.
2020-07-24 14:07:37 +02:00
9872bdf3fe
[X] Fix flashfocus autostart error
Until flashfocus [#54](https://github.com/fennerm/flashfocus/issues/54)
is fixed, the short option for lone window flashing does not work as
expected. This changes it to use the long option instead.
2020-07-05 10:27:31 +02:00
a2ea57ad98
[X] Unify xresources, xdg, fontconfig modules
Removed modules for xdg folders and fontconfig setup, and unified it all
under the X heading, which now also houses the xresources module.
2020-06-05 22:22:16 +02:00