Commit Graph

176 Commits (30f2b88b9e8774f8702ad7f97f23e29c89f85734)

Author SHA1 Message Date
Peter Cai 30f2b88b9e bash: Allow the default tty which should start sway to be customized per machine 2023-01-08 22:59:36 -05:00
Peter Cai 651fc8ed66 sway: Configure swaylock ring colors in better detail 2023-01-04 17:32:40 -05:00
Peter Cai fcc18b4859 sway: Add bindings for audio volume control based on WirePlumber 2023-01-04 15:59:21 -05:00
Peter Cai 4b0e5c04ee sway: Restart kanshi on reload 2023-01-04 15:54:55 -05:00
Peter Cai 68e7eac999 sway: Fine-tune the vignette effect 2023-01-04 14:26:37 -05:00
Peter Cai b24dab1098 sway: Increase pixelation radius 2023-01-04 14:14:13 -05:00
Peter Cai 00eaed8a26 sway: Enable more fancy effects such as fade in on swaylock
...because I just fixed them for swaylock-effects
2023-01-04 14:09:54 -05:00
Peter Cai aa37246fdd sway: Switch to my fork of swaylock-effects 2023-01-03 21:27:12 -05:00
Peter Cai 4f312a1042 sway: Add flags for electron apps on Wayland 2023-01-03 09:48:40 -05:00
Peter Cai 7ef923c231 sway: Add chromium-flags for Wayland support (w/ IME) 2023-01-03 09:14:53 -05:00
Peter Cai bee621e0a7 app_containers: Don't perform privileged operations in cleanup 2022-12-31 16:16:31 -05:00
Peter Cai bc418c3776 app_container: Expand TODO 2022-12-31 15:57:59 -05:00
Peter Cai a631fae406 app_containers: Add TODO about DBus in userns 2022-12-31 15:56:56 -05:00
Peter Cai 1afb772f71 app_containers: Kill all previously running instances
Because things like dbus can be broken inside.
2022-12-31 15:56:09 -05:00
Peter Cai edcfaef386 app_containers: Move to using CONTAINER_BIND_MOUNTS for extra binds
...instead of the overly generic SYSTEMD_NSPAWN_EXTRA_ARGS variable.
2022-12-31 15:26:51 -05:00
Peter Cai 19f37e343b app_containers: Rename the cleanup routine to cleanup()
exit is actually a keyword in bash
2022-12-31 15:22:16 -05:00
Peter Cai 8ce1f690b7 app_containers: Force the use of SUDO_ASKPASS 2022-12-31 15:21:20 -05:00
Peter Cai edddafda26 app_containers: Grant input devices access to inside the container 2022-12-31 15:20:03 -05:00
Peter Cai da9414d4a8 app_containers: Properly support different UID on host / in container
We simply use the same logic as the user namespaced case.
2022-12-31 15:14:32 -05:00
Peter Cai fd3fcf1e36 app_containers: Detect the user home directory dynamically
...so that we can stop assuming the username inside the container
(although the shortcut generation script still does, but we'll fix that
later, hopefully)
2022-12-31 15:08:55 -05:00
Peter Cai 8aa252305d app_containers: Define SUDO_ASKPASS first 2022-12-31 15:04:35 -05:00
Peter Cai fab54bfafa app_containers: Use UID instead of username for $run_as
Note that we still assume the user name inside the container is `user`.
2022-12-31 15:01:54 -05:00
Peter Cai fc6ee67cf2 app_containers: Optionally support user namespaces
using the env variable CONTAINER_USE_USERNS
2022-12-31 14:46:23 -05:00
Peter Cai 062d08778e app_containers: pulse socket is not in $container_xdg_runtime
:D
2022-12-31 11:29:59 -05:00
Peter Cai 4c18c58c6d app_containers: Handle pulse native socket properly 2022-12-31 11:13:53 -05:00
Peter Cai fad120e4af app_containers: Enable userns with identity mapping by default 2022-12-31 10:58:34 -05:00
Peter Cai 440a00ce16 app_containers: Add support for icon generation in pixmaps 2022-12-30 16:06:44 -05:00
Peter Cai ec63e2303a restic-backup: Exclude caches 2022-12-29 22:21:13 -05:00
Peter Cai e7d024f68a bash: Add shorthands to mount client-side encrypted NAS directories 2022-12-29 16:38:53 -05:00
Peter Cai 12683853e5 Add scripts for backing up to NAS based on restic 2022-12-29 16:34:31 -05:00
Peter Cai 5e5e489d85 bashrc: Add utility function to clamp maximum length of file name
This is useful when synchronizing to an Rclone encrypted remote
2022-12-28 14:13:23 -05:00
Peter Cai a6561ba279 sway: Add saner dual monitor configuration
Use a second set of workspaces prefixed with 'F' on secondary monitor
2022-12-27 12:40:08 -05:00
Peter Cai ea876c8a76 app_containers: Support generation of shortcuts from ~/.local/share 2022-12-26 19:33:54 -05:00
Peter Cai ccde40e865 app_containers: Explain GDK_SCALE 2022-12-26 13:29:45 -05:00
Peter Cai a172660bcf app_containers: Set XDG_SESSION_TYPE instead 2022-12-26 13:29:01 -05:00
Peter Cai 195b685148 app_containers: Launch QT programs inside containers under Wayland 2022-12-26 13:25:24 -05:00
Peter Cai fcdacc1ff6 sway: check in kdeglobals config
the color scheme for KDE apps must be configured in kdeglobals. Let's
just check it in.

Note that the color scheme is simply appended to kdeglobals. This is
probably not exactly a valid config for KDE itself, but it works fine
for KDE apps.
2022-12-26 10:14:34 -05:00
Peter Cai 58a207c66c app_containers: Add default hacks for Proton
Need to disable futex for Proton to avoid dead locks (for some reason).
2022-12-26 09:40:27 -05:00
Peter Cai d8d634e45c app_containers: Disable /dev/shm mount
We have disabled the MIT-SHM extension entirely.
2022-12-26 08:34:12 -05:00
Peter Cai 2e6e29ed34 app_containers: Set DeviceAllow properly
/dev/dri and /dev/shm are NOT devices.
2022-12-26 08:32:01 -05:00
Peter Cai c64e51a244 sway/bashrc: Disable MIT-SHM extension for Xwayland
MIT-SHM does not work well inside containers like systemd-nspawn
2022-12-26 08:31:33 -05:00
Peter Cai 0d9d4b363e app_containers: Bind Xorg sockets as rw 2022-12-25 23:01:15 -05:00
Peter Cai 2fbffcda50 app_containers: Add automatic shortcut generation 2022-12-25 19:01:08 -05:00
Peter Cai 529f6e358c app_containers: Bind the entire /dev/dri subdirectory 2022-12-25 19:00:48 -05:00
Peter Cai 79aeb5321f app_containers: Support per-container config
We don't use the .nspawn files because they live in /etc...
2022-12-25 17:58:36 -05:00
Peter Cai fc08c1002a app_containers: Use askpass_bemenu to invoke sudo
This makes it work in GUI mode
2022-12-25 17:40:15 -05:00
Peter Cai 39a6b458a2 Add askpass-bemenu 2022-12-25 17:39:32 -05:00
Peter Cai c3d5c58ce3 app_containers: Add Wayland handling 2022-12-25 17:34:25 -05:00
Peter Cai 60e83e345d Introduce run_app_container script 2022-12-25 17:12:13 -05:00
Peter Cai 372523a6d7 sway: Add kanshi user service 2022-12-23 17:15:01 -05:00