dotfiles/_local/vriska/bin/autoscreenlayout

26 lines
610 B
Bash
Executable File

#!/bin/sh
if xrandr | grep -q '^DP-2-[1-3] connected'; then
echo switching to profile homeoffice
~/.screenlayout/homeoffice.sh
elif xrandr | grep -q '^DP-[1-2] connected'; then
echo switching to profile homeoffice_syd
~/.screenlayout/homeoffice_syd.sh
else
echo switching to profile laptop_only
~/.screenlayout/laptop_only.sh
fi
#if xrandr | grep -q 'DP-2-2 connected'; then
# ~/.screenlayout/workplace_withlaptop.sh
#else
# ~/.screenlayout/laptop_only.sh
#fi
# Set keyboard layout
setxkbmap us altgr-intl
# Remap Context Menu key to Super
xmodmap -e "keysym Menu = Super_R"