Add laptop configs
This commit is contained in:
parent
a60d88a5ef
commit
a88f3ec73a
5 changed files with 56 additions and 0 deletions
27
.bin/host-mode##hostname.serguzim-laptop
Executable file
27
.bin/host-mode##hostname.serguzim-laptop
Executable 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
|
|
@ -1,6 +1,9 @@
|
|||
[hosts.portalo]
|
||||
groups = ['common', 'chat', 'messenger']
|
||||
|
||||
[hosts.serguzim-laptop]
|
||||
groups = ['common']
|
||||
|
||||
[apps.autotiling]
|
||||
command = 'autotiling'
|
||||
hosts = []
|
||||
|
|
11
.config/env.d/99-local##hostname.serguzim-laptop
Executable file
11
.config/env.d/99-local##hostname.serguzim-laptop
Executable 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"
|
|
@ -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
|
8
.config/hypr/host.conf##hostname.serguzim-laptop,default
Normal file
8
.config/hypr/host.conf##hostname.serguzim-laptop,default
Normal 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
|
Loading…
Reference in a new issue