maybe hotplug on boot?

nice cursor
This commit is contained in:
Anish L 2022-04-21 09:12:41 +10:00
parent 6ef0da00b4
commit 361fecd8cf
3 changed files with 26 additions and 2 deletions

View 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

View file

@ -75,6 +75,8 @@ in
nlSupport = true; nlSupport = true;
}) })
papirus-icon-theme papirus-icon-theme
calendar-cli
wyrd
]; ];
@ -143,8 +145,19 @@ in
*.color239: #565761 *.color239: #565761
*.color240: #6272a4 *.color240: #6272a4
*.color241: #b6b6b2 *.color241: #b6b6b2
xsetroot -cursor_name left_ptr
EOF 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.enable = true;
lightdm.greeters.mini.enable = true; lightdm.greeters.mini.enable = true;
@ -263,6 +276,7 @@ in
".local/bin/passmenu".source = ./bin/passmenu; ".local/bin/passmenu".source = ./bin/passmenu;
".local/bin/powermenu".source = ./bin/powermenu; ".local/bin/powermenu".source = ./bin/powermenu;
".local/bin/screenshot".source = ./bin/screenshot; ".local/bin/screenshot".source = ./bin/screenshot;
# ".local/bin/hotplug-monitor.sh".source = ./bin/hotplug-monitor.sh;
}; };
qt = { qt = {

View file

@ -4,4 +4,3 @@ pkill -u $UID -x polybar
while pgrep -u $UID -x polybar >/dev/null; do sleep 1; done while pgrep -u $UID -x polybar >/dev/null; do sleep 1; done
polybar mybar >$XDG_DATA_HOME/polybar.log 2>&1 & polybar mybar >$XDG_DATA_HOME/polybar.log 2>&1 &
echo 'Polybar launched...'