Add laptop configs

This commit is contained in:
Tobias Reisinger 2024-12-04 00:36:21 +01:00
parent a60d88a5ef
commit a88f3ec73a
Signed by: serguzim
GPG key ID: 13AD60C237A28DFE
5 changed files with 56 additions and 0 deletions

View file

@ -0,0 +1,27 @@
#!/usr/bin/env bash
modes="monitor-std
monitor-presenter"
host_mode_monitor () {
echo "Loading portalo monitor layout ${1:-std}"
yadm config --unset-all local.class monitor-*
if [ -n "$1" ]; then
yadm config --add local.class "$1"
fi
swaymsg reload
}
if [ -z "$1" ]; then
mode=$(echo "$modes" | $DMENU -p "mode")
else
mode=$1
fi
case $mode in
"monitor-std") host_mode_monitor ;;
"monitor-"*) host_mode_monitor "$mode" ;;
*) echo "'$mode' is not a valid mode" ;;
esac

View file

@ -1,6 +1,9 @@
[hosts.portalo]
groups = ['common', 'chat', 'messenger']
[hosts.serguzim-laptop]
groups = ['common']
[apps.autotiling]
command = 'autotiling'
hosts = []

View file

@ -0,0 +1,11 @@
#!/bin/sh
export AUDIO_DEVICE=""
export AUTOSTART_DISPLAY="Hyprland"
export MONITOR_PRIMARY="primary"
export MONITOR_SECONDARY="secondary"
export BROWSER_CHROMIUM="brave"
export DUNST_MONITOR="0"

View file

@ -0,0 +1,7 @@
$mon1 = eDP-1
$mon2 = HDMI-A-2
monitor = $mon1,1600x900@60,0x0,auto
monitor = $mon2,preferred,1600x0,auto
source = ~/.config/hypr/lib/7_3_ws_layout.conf

View file

@ -0,0 +1,8 @@
$mon1 = eDP-1
$mon2 = HDMI-A-2
$mon = $mon1
monitor = $mon1,1600x900@60,0x0,auto
monitor = $mon2,disable
source = ~/.config/hypr/lib/single_mon.conf