[vriska] add screenlayout scripts
This commit is contained in:
parent
23a0c1f907
commit
6035f25ab6
6 changed files with 108 additions and 0 deletions
25
_local/vriska/bin/autoscreenlayout
Executable file
25
_local/vriska/bin/autoscreenlayout
Executable file
|
|
@ -0,0 +1,25 @@
|
|||
#!/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_jenny
|
||||
~/.screenlayout/homeoffice_jenny.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"
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue