maybe hotplug on boot?
nice cursor
This commit is contained in:
parent
6ef0da00b4
commit
361fecd8cf
11
users/profiles/desktop/bin/hotplug-monitor.sh
Executable file
11
users/profiles/desktop/bin/hotplug-monitor.sh
Executable file
|
@ -0,0 +1,11 @@
|
|||
#! /usr/bin/env bash
|
||||
|
||||
connect() {
|
||||
xrandr --output HDMI-2 --same-as eDP-1
|
||||
}
|
||||
|
||||
disconnect() {
|
||||
xrandr --output HDMI-2 --off
|
||||
}
|
||||
|
||||
xrandr | grep "HDMI-2 connected" &>>/dev/null && connect || disconnect
|
|
@ -75,6 +75,8 @@ in
|
|||
nlSupport = true;
|
||||
})
|
||||
papirus-icon-theme
|
||||
calendar-cli
|
||||
wyrd
|
||||
];
|
||||
|
||||
|
||||
|
@ -143,8 +145,19 @@ in
|
|||
*.color239: #565761
|
||||
*.color240: #6272a4
|
||||
*.color241: #b6b6b2
|
||||
xsetroot -cursor_name left_ptr
|
||||
EOF
|
||||
|
||||
xsetroot -cursor_name left_ptr
|
||||
# hotplug
|
||||
connect() {
|
||||
xrandr --output HDMI-2 --same-as eDP-1
|
||||
}
|
||||
|
||||
disconnect() {
|
||||
xrandr --output HDMI-2 --off
|
||||
}
|
||||
|
||||
xrandr | grep "HDMI-2 connected" &>>/dev/null && connect || disconnect
|
||||
'';
|
||||
lightdm.enable = true;
|
||||
lightdm.greeters.mini.enable = true;
|
||||
|
@ -263,6 +276,7 @@ in
|
|||
".local/bin/passmenu".source = ./bin/passmenu;
|
||||
".local/bin/powermenu".source = ./bin/powermenu;
|
||||
".local/bin/screenshot".source = ./bin/screenshot;
|
||||
# ".local/bin/hotplug-monitor.sh".source = ./bin/hotplug-monitor.sh;
|
||||
};
|
||||
|
||||
qt = {
|
||||
|
|
|
@ -4,4 +4,3 @@ pkill -u $UID -x polybar
|
|||
while pgrep -u $UID -x polybar >/dev/null; do sleep 1; done
|
||||
|
||||
polybar mybar >$XDG_DATA_HOME/polybar.log 2>&1 &
|
||||
echo 'Polybar launched...'
|
||||
|
|
Loading…
Reference in a new issue