feat: different setups for monitors
This commit is contained in:
@ -23,7 +23,8 @@ source=~/.config/hypr/themes/mocha.conf
|
|||||||
################
|
################
|
||||||
|
|
||||||
# See https://wiki.hyprland.org/Configuring/Monitors/
|
# See https://wiki.hyprland.org/Configuring/Monitors/
|
||||||
monitor=,preferred,auto,1
|
#DESKTOP: monitor=HDMI-A-1,2560x1440@144,1920x0,1,mirror,EDP-1
|
||||||
|
#LAPTOP: monitor=,preferred,auto,1
|
||||||
|
|
||||||
|
|
||||||
###################
|
###################
|
||||||
|
@ -66,6 +66,6 @@ arch = [
|
|||||||
"xorg-server",
|
"xorg-server",
|
||||||
"xorg-xinit",
|
"xorg-xinit",
|
||||||
"yay",
|
"yay",
|
||||||
"zram-generator", "lazygit", "logseq-desktop-bin", "tailscale", "git-delta",
|
"zram-generator", "lazygit", "logseq-desktop-bin", "tailscale", "git-delta", "keepassxc",
|
||||||
]
|
]
|
||||||
|
|
||||||
|
@ -4,14 +4,16 @@ git pull
|
|||||||
|
|
||||||
# Replace the monitors part of hyprland config
|
# Replace the monitors part of hyprland config
|
||||||
|
|
||||||
# current_host=""
|
current_host=""
|
||||||
# if [[ $(hostname) == "johnc-desktop" ]]; then
|
if [[ $(hostnamectl hostname) == "john-desktop" ]]; then
|
||||||
# current_host="DESKTOP"
|
current_host="DESKTOP"
|
||||||
# else
|
else
|
||||||
# current_host="LAPTOP"
|
current_host="LAPTOP"
|
||||||
# fi
|
fi
|
||||||
#
|
|
||||||
# sed -i "s/#$current_host: //" ./hypr/hyprland/monitors.conf
|
echo Current hostname: $current_host
|
||||||
|
|
||||||
|
sed -i "s/#$current_host: //" .config/hypr/hyprland.conf
|
||||||
|
|
||||||
for file in ".config"/*; do
|
for file in ".config"/*; do
|
||||||
echo "rsync -av $file ~/.config --delete"
|
echo "rsync -av $file ~/.config --delete"
|
||||||
@ -22,4 +24,4 @@ kitty metapac sync
|
|||||||
|
|
||||||
# Cleanup
|
# Cleanup
|
||||||
|
|
||||||
# sed -i "s/^monitor/#$current_host: monitor/" ./hypr/hyprland/monitors.conf
|
sed -i "s/^monitor/#$current_host: monitor/" .config/hypr/hyprland.conf
|
||||||
|
Reference in New Issue
Block a user