Finally working display toggle
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
---@module 'hl'
|
||||
|
||||
-- === MONITEURS ===
|
||||
local monitors = require("monitors")
|
||||
require("monitors")
|
||||
|
||||
-- Workspace rules (intégrées directement)
|
||||
hl.workspace_rule({ workspace = 1, monitor = "eDP-1" })
|
||||
|
||||
@@ -1 +0,0 @@
|
||||
monitor=desc:BOE 0x0B29,2560x1600@120.00,0x0,1.33333333,transform,0,vrr,0
|
||||
6
.config/hypr/monitors.conf.bak
Normal file
6
.config/hypr/monitors.conf.bak
Normal file
@@ -0,0 +1,6 @@
|
||||
# Generated with hyprdynamicmonitors freeze.
|
||||
# mode: "laptop" = interne seul, "external" = externe seul, sinon (both/vide) = les deux
|
||||
|
||||
monitor=desc:BOE 0x0B29,disable
|
||||
monitor=desc:Shenzhen KTC Technology Group H27T7P-2 0000000000000,2560x1440@119.99800,0x0,1.00000000,transform,0,vrr,0
|
||||
|
||||
@@ -1,41 +1,5 @@
|
||||
-- Generated by hyprconf2lua v1.4.0
|
||||
-- https://github.com/Prateek-squadron/hyprconf2lua
|
||||
-- Manual review may be needed for complex directives
|
||||
-- Généré par hyprdynamicmonitors
|
||||
-- mode: "laptop" = interne seul, "external" = externe seul, sinon = les deux
|
||||
|
||||
---@module 'hl'
|
||||
|
||||
-- Generated with hyprdynamicmonitors freeze.
|
||||
|
||||
-- This is a template that you can edit, it is just a starter that pulled your current monitor setup,
|
||||
|
||||
-- adjust as needed.
|
||||
|
||||
-- You can use templates here etc, see https://github.com/fiffeek/hyprdynamicmonitors/blob/main/examples/basic/hyprconfigs/template.go.tmpl.
|
||||
|
||||
-- Monitors are given arbitrary tags (the "monitor" prefix and the ID coming from hyprland).
|
||||
|
||||
-- If you are using tui to edit, leave this at the end of your file (the last monitor config applies)
|
||||
|
||||
-- and leave the markers.
|
||||
|
||||
-- <<<<< TUI AUTO START
|
||||
|
||||
hl.monitor({
|
||||
output = "desc:BOE 0x0B29",
|
||||
mode = "2560x1600@120.00",
|
||||
position = "320x1440",
|
||||
scale = 1.33333333,
|
||||
transform = 0,
|
||||
vrr = 0,
|
||||
})
|
||||
|
||||
hl.monitor({
|
||||
output = "desc:Shenzhen KTC Technology Group H27T7P-2 0000000000000",
|
||||
mode = "2560x1440@119.99800",
|
||||
position = "0x0",
|
||||
scale = 1.00000000,
|
||||
transform = 0,
|
||||
vrr = 0,
|
||||
})
|
||||
|
||||
-- <<<<< TUI AUTO END
|
||||
hl.monitor({ output = "desc:BOE 0x0B29", mode = "2560x1600@120.00", position = "320x1440", scale = 1.33333333, transform = 0, vrr = 0, disabled = false })
|
||||
hl.monitor({ output = "desc:Shenzhen KTC Technology Group H27T7P-2 0000000000000", mode = "2560x1440@119.99800", position = "0x0", scale = 1.0, transform = 0, vrr = 0, disabled = false })
|
||||
|
||||
5
.config/hypr/monitors.lua.bak
Normal file
5
.config/hypr/monitors.lua.bak
Normal file
@@ -0,0 +1,5 @@
|
||||
-- Généré par hyprdynamicmonitors
|
||||
-- mode: "laptop" = interne seul, "external" = externe seul, sinon = les deux
|
||||
|
||||
hl.monitor({ output = "desc:BOE 0x0B29", mode = "2560x1600@120.00", position = "320x1440", scale = 1.33333333, transform = 0, vrr = 0, disabled = false })
|
||||
hl.monitor({ output = "desc:Shenzhen KTC Technology Group H27T7P-2 0000000000000", mode = "2560x1440@119.99800", position = "0x0", scale = 1.0, transform = 0, vrr = 0, disabled = false })
|
||||
@@ -12,7 +12,7 @@ fi
|
||||
|
||||
# 2. Vérifier que le fichier de configuration existe avant de le modifier
|
||||
if [ -f "$CONFIG_DIR/config.toml" ]; then
|
||||
sed -i 's/^mode = ".*"/mode = "both"/' "$CONFIG_DIR/config.toml"
|
||||
sed -i --follow-symlinks 's/^mode = ".*"/mode = "both"/' "$CONFIG_DIR/config.toml"
|
||||
else
|
||||
echo "Erreur : $CONFIG_DIR/config.toml introuvable" >&2
|
||||
exit 1
|
||||
|
||||
Reference in New Issue
Block a user