configuration merge with laptop and pc
This commit is contained in:
@@ -9,3 +9,10 @@ hl.on("hyprland.start", function()
|
||||
hl.exec_cmd("~/.config/hypr/scripts/autostart.sh")
|
||||
end)
|
||||
|
||||
-- old stuff, probably not needed anymore
|
||||
-- exec-once = gnome-keyring-daemon --start --components=secrets
|
||||
-- exec-once = systemctl --user start gcr-ssh-agent.socket
|
||||
--
|
||||
-- Polkit Daemon
|
||||
-- exec-once = /usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1
|
||||
--
|
||||
|
||||
@@ -9,7 +9,7 @@ hl.monitor({
|
||||
-- if no profile match at all, the fallback_profile will be applied anyways.
|
||||
local fallback_profile="laptop"
|
||||
local profiles = {
|
||||
home = {
|
||||
home_docked = {
|
||||
priority = 10,
|
||||
monitors = {
|
||||
"desc:GIGA-BYTE TECHNOLOGY CO. LTD. M34WQ 0x00000B52",
|
||||
@@ -25,6 +25,25 @@ local profiles = {
|
||||
workspace_rules = {
|
||||
},
|
||||
},
|
||||
home_pc = {
|
||||
priority = 20,
|
||||
monitors = {
|
||||
"desc:GIGA-BYTE TECHNOLOGY CO. LTD. M34WQ 0x00000B52",
|
||||
"desc:Dell Inc. DELL U2724D DL7R834",
|
||||
"desc:Dell Inc. DELL U2414H 292K475V26JL",
|
||||
},
|
||||
disable_other_monitors = true,
|
||||
monitor_config = {
|
||||
["desc:GIGA-BYTE TECHNOLOGY CO. LTD. M34WQ 0x00000B52"] = {disabled=false, scale=1, position="0x0", mode="3440x1440@120"},
|
||||
["desc:Dell Inc. DELL U2414H 292K475V26JL"] = {disabled=false, scale=1, position="760x-1080", mode="1920x1080@60"},
|
||||
["desc:Dell Inc. DELL U2724D DL7R834"] = {disabled=false, scale=1, position="3440x0", mode="2560x1440@120"},
|
||||
},
|
||||
workspace_rules = {
|
||||
{ workspace = "1", monitor = "desc:GIGA-BYTE TECHNOLOGY CO. LTD. M34WQ 0x00000B52", default = true, persistent = true},
|
||||
{ workspace = "9", monitor = "desc:Dell Inc. DELL U2724D DL7R834", default = true, persistent = true},
|
||||
{ workspace = "10", monitor = "desc:Dell Inc. DELL U2414H 292K475V26JL", default = true, persistent = true},
|
||||
}
|
||||
},
|
||||
work = {
|
||||
priority = 10,
|
||||
monitors = {
|
||||
@@ -162,7 +181,7 @@ local function apply_monitor_profile()
|
||||
end
|
||||
|
||||
local monitor_profile_timer = nil
|
||||
local function request_apply_monitor_profile(data)
|
||||
function request_apply_monitor_profile(data)
|
||||
debug_notify("requested monitor profile update")
|
||||
table.insert(apply_monitor_request_queue, data or {})
|
||||
if monitor_profile_timer == nil or not monitor_profile_timer:is_enabled() then
|
||||
|
||||
@@ -1,10 +1,16 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
(sleep 5 ; hyprctl eval 'request_apply_monitor_profile()') &
|
||||
|
||||
hyprctl dispatch 'hl.dsp.exec_cmd("uwsm app -- thunderbird", {workspace = 10})'
|
||||
{{ if eq .work_env true -}}
|
||||
hyprctl dispatch 'hl.dsp.exec_cmd("uwsm app -- /home/frank/.local/share/applications/librewolf.webapp-e7db0a1c-02e9-42cc-a5da-8fdc222e89dc.desktop", {workspace = 9})'
|
||||
hyprctl dispatch 'hl.dsp.exec_cmd("uwsm app -- jetbrains-toolbox.desktop")'
|
||||
{{ end -}}
|
||||
hyprctl dispatch 'hl.dsp.exec_cmd("uwsm app -- nextcloud")'
|
||||
sleep 3
|
||||
hyprctl dispatch 'hl.dsp.exec_cmd("uwsm app -- Telegram --ozone-platform=wayland", {workspace = 10})'
|
||||
hyprctl dispatch 'hl.dsp.exec_cmd("uwsm app -- signal-desktop --ozone-platform=wayland", {workspace = 10})'
|
||||
{{ if eq .work_env true -}}
|
||||
hyprctl dispatch 'hl.dsp.exec_cmd("uwsm app -- /home/frank/.local/share/applications/librewolf.webapp-daf88433-cdaa-4a10-9bfb-af0a20fb7b71.desktop", {workspace = 9})'
|
||||
|
||||
{{ end -}}
|
||||
|
||||
Reference in New Issue
Block a user