fix multiple monitors + desk/lapt

This commit is contained in:
hexlocation pc 2024-07-20 20:02:33 +02:00
parent 661f12b0d8
commit ed7c36b3d0
5 changed files with 14 additions and 8 deletions

View file

@ -181,6 +181,7 @@ let commonMargin = 10
const bar = (monitors = 2) => {
let bars = [];
for (let i = 0; i < monitors; i++) {
print(i);
bars.push(Widget.Window({
exclusivity : 'exclusive',
name : `bar-window-${i}`,
@ -202,7 +203,7 @@ const bar = (monitors = 2) => {
// main Gtk App
App.config({
style : '/home/hex/.config/ags/style.css',
windows : [ search, ...bar(1) ],
windows : [ search, ...bar(2) ],
})
// close search window by default

View file

@ -66,6 +66,7 @@ set_machine_type () {
notify "are you on a laptop or a desktop? (laptop/desktop) "
read MACHINE_TYPE
export MACHINE_TYPE=$MACHINE_TYPE
if [[ "$MACHINE_TYPE" != "laptop" && "$MACHINE_TYPE" != "desktop" ]]; then
err "invalid machine type."
@ -78,7 +79,9 @@ main() {
notify "hello there!"
check_deps
set_machine_type
if [[ $MACHINE_TYPE -eq "laptop" ]]; then
install_backlight_rule
fi
notify "everything has been installed successfully, enjoy!"
}

View file

@ -1,14 +1,10 @@
# Based on the default config
# Start AGS daemon
exec="ags -q"
exec="ags"
# Start hyprpaper
exec-once=hyprpaper
# Start Pipewire daemon
exec-once=gentoo-pipewire-launcher
exec=gentoo-pipewire-launcher restart
# Terminal Daemon
exec-once=foot --server
@ -185,3 +181,7 @@ bind = CTRL, ALT_L, submap, passthrough
submap = passthrough
bind = CTRL, ALT_L, submap, reset
submap = reset
# Start AGS daemon
exec-once="ags"

View file

@ -1,2 +1,4 @@
preload = /home/hex/wallpaper.jpg
wallpaper = eDP-1,/home/hex/wallpaper.jpg
wallpaper = DVI-D-1,/home/hex/wallpaper.jpg
wallpaper = HDMI-A-3,/home/hex/wallpaper.jpg

View file

@ -9,5 +9,5 @@ if [ -e "$LAPTOP" ]; then
fi
# Desktop configuration
hyprctl keyword monitor DVI-D-0,1920x1080@60,0x0,1
hyprctl keyword monitor DVI-D-1,1920x1080@60,0x0,1
hyprctl keyword monitor HDMI-A-3,1680x1050@59.88300,1920x0,1