feat: Add initial dock scripts

This commit is contained in:
Fabio Lenherr 2023-03-15 23:43:03 +01:00
parent 477afdf6f4
commit 642aacd358
13 changed files with 145 additions and 35 deletions

36
eww_laptop/scripts/monitor.sh Executable file
View file

@ -0,0 +1,36 @@
#!/bin/bash
onlysecond() {
dunstify "Switching to external monitor only"
hyprctl keyword monitor ,highrr,0x0,1
hyprctl keyword monitor eDP-1,disabled
}
onlyfirst() {
dunstify "Switching to internal monitor only"
hyprctl keyword monitor ,disabled
hyprctl keyword monitor eDP-1,1920x1080@144,0x0,1
}
extend() {
dunstify "Switching to extend mode"
hyprctl keyword monitor ,highrr,1920x0,1
hyprctl keyword monitor eDP-1,1920x1080@144,0x0,1
}
mirror() {
dunstify "Switching to mirror mode"
hyprctl keyword monitor ,highrr,0x0,1
hyprctl keyword monitor eDP-1,1920x1080@144,0x0,1
}
if [ "$1" == "onlysecond" ]; then
onlysecond
elif [ "$1" == "onlyfirst" ]; then
onlyfirst
elif [ "$1" == "extend" ]; then
extend
elif [ "$1" == "mirror" ]; then
mirror
fi