hosts (all): remove sxmo-related polyfills
This commit is contained in:
@@ -2,7 +2,6 @@
|
|||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
./fs.nix
|
./fs.nix
|
||||||
./polyfill.nix
|
|
||||||
];
|
];
|
||||||
|
|
||||||
sane.roles.client = true;
|
sane.roles.client = true;
|
||||||
|
@@ -1,41 +0,0 @@
|
|||||||
# doesn't actually *enable* anything,
|
|
||||||
# but sets up any modules such that if they *were* enabled, they'll act as expected.
|
|
||||||
{ pkgs, ... }:
|
|
||||||
{
|
|
||||||
sane.gui.sxmo = {
|
|
||||||
noidle = true; #< power button requires 1s hold, which makes it impractical to be dealing with.
|
|
||||||
settings = {
|
|
||||||
# XXX: make sure the user is part of the `input` group!
|
|
||||||
SXMO_LISGD_INPUT_DEVICE = "/dev/input/by-id/usb-Wacom_Co._Ltd._Pen_and_multitouch_sensor-event-if00";
|
|
||||||
# these identifiers are from `swaymsg -t get_inputs`
|
|
||||||
SXMO_VOLUME_BUTTON = "1:1:AT_Translated_Set_2_keyboard";
|
|
||||||
# SXMO_VOLUME_BUTTON = "none";
|
|
||||||
# N.B.: thinkpad's power button requires a full second press to do anything
|
|
||||||
SXMO_POWER_BUTTON = "0:1:Power_Button";
|
|
||||||
# SXMO_POWER_BUTTON = "none";
|
|
||||||
SXMO_DISABLE_LEDS = "1";
|
|
||||||
SXMO_UNLOCK_IDLE_TIME = "120"; # default
|
|
||||||
# sxmo tries to determine device type from /proc/device-tree/compatible,
|
|
||||||
# but that doesn't seem to exist on NixOS? (or maybe it just doesn't exist
|
|
||||||
# on non-aarch64 builds).
|
|
||||||
# the device type informs (at least):
|
|
||||||
# - SXMO_WIFI_MODULE
|
|
||||||
# - SXMO_RTW_SCAN_INTERVAL
|
|
||||||
# - SXMO_TOUCHSCREEN_ID
|
|
||||||
# - SXMO_MONITOR
|
|
||||||
# - SXMO_ALSA_CONTROL_NAME
|
|
||||||
# - SXMO_SWAY_SCALE
|
|
||||||
# see <repo:mil/sxmo-utils:scripts/deviceprofiles>
|
|
||||||
# SXMO_DEVICE_NAME = "pine64,pinephone-1.2";
|
|
||||||
# if sxmo doesn't know the device, it can't decide whether to use one_button or three_button mode
|
|
||||||
# and so it just wouldn't handle any button inputs (sxmo_hook_inputhandler.sh not on path)
|
|
||||||
SXMO_DEVICE_NAME = "three_button_touchscreen";
|
|
||||||
};
|
|
||||||
package = (pkgs.sxmo-utils.override { preferSystemd = true; }).overrideAttrs (base: {
|
|
||||||
postPatch = (base.postPatch or "") + ''
|
|
||||||
# after volume-button navigation mode, restore full keyboard functionality
|
|
||||||
cp ${./xkb_mobile_normal_buttons} ./configs/xkb/xkb_mobile_normal_buttons
|
|
||||||
'';
|
|
||||||
});
|
|
||||||
};
|
|
||||||
}
|
|
@@ -42,74 +42,4 @@
|
|||||||
modules.windowTitle = false;
|
modules.windowTitle = false;
|
||||||
# TODO: show modem state
|
# TODO: show modem state
|
||||||
};
|
};
|
||||||
|
|
||||||
sane.gui.sxmo = {
|
|
||||||
nogesture = true;
|
|
||||||
settings = {
|
|
||||||
### hardware: touch screen
|
|
||||||
SXMO_LISGD_INPUT_DEVICE = "/dev/input/by-path/platform-1c2ac00.i2c-event";
|
|
||||||
# vol and power are detected correctly by upstream
|
|
||||||
|
|
||||||
### preferences
|
|
||||||
DEFAULT_COUNTRY = "US";
|
|
||||||
|
|
||||||
SXMO_AUTOROTATE = "1"; # enable auto-rotation at launch. has no meaning in stock/upstream sxmo-utils
|
|
||||||
|
|
||||||
# BEMENU lines (wayland DMENU):
|
|
||||||
# - camera is 9th entry
|
|
||||||
# - flashlight is 10th entry
|
|
||||||
# - config is 14th entry. inside that:
|
|
||||||
# - autorotate is 11th entry
|
|
||||||
# - system menu is 19th entry
|
|
||||||
# - close is 20th entry
|
|
||||||
# - power is 15th entry
|
|
||||||
# - close is 16th entry
|
|
||||||
SXMO_BEMENU_LANDSCAPE_LINES = "11"; # default 8
|
|
||||||
SXMO_BEMENU_PORTRAIT_LINES = "16"; # default 16
|
|
||||||
SXMO_LOCK_IDLE_TIME = "15"; # how long between screenoff -> lock -> back to screenoff (default: 8)
|
|
||||||
# gravity: how far to tilt the device before the screen rotates
|
|
||||||
# for a given setting, normal <-> invert requires more movement then left <-> right
|
|
||||||
# i.e. the settingd doesn't feel completely symmetric
|
|
||||||
# SXMO_ROTATION_GRAVITY default is 16374
|
|
||||||
# SXMO_ROTATION_GRAVITY = "12800"; # uncomfortably high
|
|
||||||
# SXMO_ROTATION_GRAVITY = "12500"; # kinda uncomfortable when walking
|
|
||||||
SXMO_ROTATION_GRAVITY = "12000";
|
|
||||||
SXMO_SCREENSHOT_DIR = "/home/colin/Pictures"; # default: "$HOME"
|
|
||||||
|
|
||||||
# sway/wayland scaling:
|
|
||||||
# - conflicting info out there on how scaling actually works
|
|
||||||
# at the least, for things where it matters (mpv), it seems like scale settings have 0 effect on perf
|
|
||||||
# ways to enforce scaling:
|
|
||||||
# - <https://wiki.archlinux.org/title/HiDPI>
|
|
||||||
# - `swaymsg -- output DSI-1 scale 2.0` (scales everything)
|
|
||||||
# - `dconf write /org/gnome/desktop/interface/text-scaling-factor 2.0` (scales ONLY TEXT)
|
|
||||||
# - `GDK_DPI_SCALE=2.0` (scales ONLY TEXT)
|
|
||||||
#
|
|
||||||
# application notes:
|
|
||||||
# - cozy: in landscape, playback position is not visible unless scale <= 1.7
|
|
||||||
# - if in a tab, then scale 1.6 is the max
|
|
||||||
# SXMO_SWAY_SCALE = "1.5"; # hard to press gPodder icons
|
|
||||||
SXMO_SWAY_SCALE = "1.6";
|
|
||||||
# SXMO_SWAY_SCALE = "1.8";
|
|
||||||
# SXMO_SWAY_SCALE = "2";
|
|
||||||
SXMO_WORKSPACE_WRAPPING = "5"; # how many workspaces. default: 4
|
|
||||||
|
|
||||||
# wvkbd layers:
|
|
||||||
# - full
|
|
||||||
# - landscape
|
|
||||||
# - special (e.g. coding symbols like ~)
|
|
||||||
# - emoji
|
|
||||||
# - nav
|
|
||||||
# - simple (like landscape, but no parens/tab/etc; even fewer chars)
|
|
||||||
# - simplegrid (simple, but grid layout)
|
|
||||||
# - dialer (digits)
|
|
||||||
# - cyrillic
|
|
||||||
# - arabic
|
|
||||||
# - persian
|
|
||||||
# - greek
|
|
||||||
# - georgian
|
|
||||||
WVKBD_LANDSCAPE_LAYERS = "landscape,special,emoji";
|
|
||||||
WVKBD_LAYERS = "full,special,emoji";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user