blob: 2b723b87f0c77e217f6ccac41f6bd5620b93a4a5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
#!/bin/sh
if [ -n "$(qvm-usb | grep tslil_clingman_dactyl_manuform_mini_0)" ]; then
# If my USB keyboard is detected, don't mangle the layout
setxkbmap -layout us -option caps:ctrl_modifier,terminate:ctrl_alt_bksp
else
# Otherwise set the layout for the built-in keyboard
setxkbmap -model pc104curl-z -layout us -variant cmk_ed_dh -option caps:ctrl_modifier,terminate:ctrl_alt_bksp
fi
# In a better world we could use something like
# internal_keyboard=$(xinput -list | grep 'AT Translated' | sed 's/^.*id=\([0-9]*\).*$/\1/')
# setxkbmap -device $internal_keyboard ...
# but Qubes only sends one input source to each domU so this wont work.
# I used to have a slightly-too-large Coreboot image in the EEPROM and it
# would occassionaly cause the RAM to fail. This is fixed, but i might as
# well keep the following around.
if [ "$(xl info | awk '/total_memory/ { print $3 }')" -lt "16148" ]; then
notify-send -u critical "RAM malfunction"
fi;
# FHD mod! Thanks nitrocaster for your hard work, and the coreboot community
# for the patch that disconnects the internal LVDS.
if [ -n "$(xrandr | grep 'VGA1 connected')" ]; then
xrandr --output eDP --auto --output VGA1 --left-of eDP --auto
fi
exec xdg_autostart
|