summaryrefslogtreecommitdiff
path: root/qubes-dwm-6.2/autostart/autostart_blocking.sh
blob: 4e0f569978d417ee253e610c750d9eb6e8ca9695 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/bin/sh

xdg_autostart

# if [ -n "$(qvm-usb | grep tslil_clingman)" ]; then
if [ -n "$(qvm-usb | grep Technomancy_Atreus)" ]; then
  setxkbmap -layout us -variant altgr-intl -option caps:ctrl_modifier,terminate:ctrl_alt_bksp,nodeadkeys
else
  notify-send "Setting layout for internal keyboard"
  # Qubes only presents one device to each domU, so this doesn't work as expected
  internal_keyboard=$(xinput -list | grep 'AT Raw' | sed 's/^.*id=\([0-9]*\).*$/\1/')
  setxkbmap -model pc105aw-sl -layout 'us(cmk_ed_dh)' -option caps:ctrl_modifier,terminate:ctrl_alt_bksp
fi

if [ "$(xl info | awk '/total_memory/ { print $3 }')" -lt "16148" ]; then
  notify-send -u critical "RAM malfunction"
fi;