Compare commits

...
9 Commits
8 changed files with 130 additions and 27 deletions
+5
View File
@@ -119,6 +119,7 @@ packages:
- grim - grim
- jdk-openjdk - jdk-openjdk
- jq - jq
- yq
- kdeconnect - kdeconnect
- kitty - kitty
- librewolf - librewolf
@@ -172,8 +173,12 @@ packages:
yay: yay:
- teams-for-linux-bin - teams-for-linux-bin
- docker - docker
- docker-credential-secretservice-bin
- docker-compose
- claude - claude
- claude-code - claude-code
- webstorm - webstorm
- webstorm-jre - webstorm-jre
- azure-cli - azure-cli
- terraform
- postgresql-libs
@@ -23,6 +23,15 @@ fi
# spotify hash: <not installed> # spotify hash: <not installed>
{{ end }} {{ end }}
{{ $spotifyPath := "/usr/bin/spotify" }}
{{ $s := stat $spotifyPath }}
{{ if and $s (hasKey $s "Exists") $s.Exists }}
# spotify hash: {{ include $spotifyPath | sha256sum }}
{{ else }}
# spotify hash: <not installed>
{{ end }}
{{ $catppuccinPath := joinPath .chezmoi.homeDir ".config/spicetify-catppuccin-theme/catppuccin/app.scss" }} {{ $catppuccinPath := joinPath .chezmoi.homeDir ".config/spicetify-catppuccin-theme/catppuccin/app.scss" }}
{{ $c := stat $catppuccinPath }} {{ $c := stat $catppuccinPath }}
{{ if and $c (hasKey $c "Exists") $c.Exists }} {{ if and $c (hasKey $c "Exists") $c.Exists }}
@@ -661,10 +661,10 @@
"enabled": true "enabled": true
} }
], ],
"spacing": 4, "spacing": 0,
"innerPadding": 6, "innerPadding": 6,
"barInsetPadding": 4, "barInsetPadding": 4,
"bottomGap": 0, "bottomGap": -16,
"transparency": 0, "transparency": 0,
"widgetTransparency": 1, "widgetTransparency": 1,
"squareCorners": false, "squareCorners": false,
@@ -1,10 +1,73 @@
local workspace_rules = {}
{{ if eq .chezmoi.hostname "ia-frank-xps13" -}}
hl.monitor({ hl.monitor({
output = "eDP-1", output = "eDP-1",
scale = 1, scale = 1,
position = "0x0", position = "0x0",
mode = "1920x1200@60" mode = "1920x1200@120"
}) })
hl.monitor({
output = "desc:Dell Inc. DELL U2724DE BD19MF4",
scale = 1,
position = "-2560x0",
mode = "2560x1440@120"
})
hl.monitor({
output = "desc:Dell Inc. DELL U2724D 1CQFMF4",
scale = 1,
position = "-5120x0",
mode = "2560x1440@120"
})
local workspace_rules = {
{ workspace = "6", monitor = "desc:Dell Inc. DELL U2724D 1CQFMF4", default = true, persistent = true },
{ workspace = "7", monitor = "desc:Dell Inc. DELL U2724D 1CQFMF4", persistent = true },
{ workspace = "8", monitor = "desc:Dell Inc. DELL U2724D 1CQFMF4", persistent = true },
{ workspace = "1", monitor = "desc:Dell Inc. DELL U2724DE BD19MF4", default = true, persistent = true },
{ workspace = "2", monitor = "desc:Dell Inc. DELL U2724DE BD19MF4", persistent = true },
{ workspace = "3", monitor = "desc:Dell Inc. DELL U2724DE BD19MF4", persistent = true },
{ workspace = "4", monitor = "desc:Dell Inc. DELL U2724DE BD19MF4", persistent = true },
{ workspace = "5", monitor = "desc:Dell Inc. DELL U2724DE BD19MF4", persistent = true },
{ workspace = "9", monitor = "eDP-1", default = true, persistent = true },
{ workspace = "10", monitor = "eDP-1", persistent = true },
}
{{- else if eq .chezmoi.hostname "arch-next" -}}
hl.monitor({
output = "desc:GIGA-BYTE TECHNOLOGY CO. LTD. M34WQ 0x00000B52",
scale = 1,
position = "0x0",
mode = "3440x1440@120",
})
hl.monitor({
output = "desc:Dell Inc. DELL U2724D DL7R834",
scale = 1,
position = "3440x0",
mode = "2560x1440@120",
})
hl.monitor({
output = "desc:Dell Inc. DELL U2414H 292K475V26JL",
scale = 1,
position = "760x-1080",
mode = "1920x1080@60",
})
local 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},
}
{{- end }}
for _, rule in ipairs(workspace_rules) do
hl.workspace_rule(rule)
end
-- if multiple profiles match, profile with highest priority wins. -- if multiple profiles match, profile with highest priority wins.
-- if no profile match at all, the fallback_profile will be applied anyways. -- if no profile match at all, the fallback_profile will be applied anyways.
local fallback_profile="laptop" local fallback_profile="laptop"
@@ -47,25 +110,25 @@ local profiles = {
work = { work = {
priority = 10, priority = 10,
monitors = { monitors = {
"eDP-1",
"desc:Dell Inc. DELL U2724DE BD19MF4",
"desc:Dell Inc. DELL U2724D 1CQFMF4", "desc:Dell Inc. DELL U2724D 1CQFMF4",
"desc:Dell Inc. DELL U2724DE BD19MF4",
"eDP-1",
}, },
disable_other_monitors = false, disable_other_monitors = false,
monitor_config = { monitor_config = {
["desc:Dell Inc. DELL U2724D 1CQFMF4"] = {disabled=false, scale=1, position="-5120x0", mode="2560x1440@120"},
["desc:Dell Inc. DELL U2724DE BD19MF4"] = {disabled=false, scale=1, position="-2560x0", mode="2560x1440@120"},
["eDP-1"] = {disabled=false, scale=1, position="0x0", mode="1920x1200@120"}, ["eDP-1"] = {disabled=false, scale=1, position="0x0", mode="1920x1200@120"},
["desc:Dell Inc. DELL U2724DE BD19MF4"] = {disabled=false, scale=1, position="1920x0", mode="2560x1440@120"},
["desc:Dell Inc. DELL U2724D 1CQFMF4"] = {disabled=false, scale=1, position="4480x0", mode="2560x1440@120"},
}, },
workspace_rules = { workspace_rules = {
{ workspace = "6", monitor = "desc:Dell Inc. DELL U2724D 1CQFMF4", default = true, persistent = true },
{ workspace = "7", monitor = "desc:Dell Inc. DELL U2724D 1CQFMF4", persistent = true },
{ workspace = "8", monitor = "desc:Dell Inc. DELL U2724D 1CQFMF4", persistent = true },
{ workspace = "1", monitor = "desc:Dell Inc. DELL U2724DE BD19MF4", default = true, persistent = true }, { workspace = "1", monitor = "desc:Dell Inc. DELL U2724DE BD19MF4", default = true, persistent = true },
{ workspace = "2", monitor = "desc:Dell Inc. DELL U2724DE BD19MF4", persistent = true }, { workspace = "2", monitor = "desc:Dell Inc. DELL U2724DE BD19MF4", persistent = true },
{ workspace = "3", monitor = "desc:Dell Inc. DELL U2724DE BD19MF4", persistent = true }, { workspace = "3", monitor = "desc:Dell Inc. DELL U2724DE BD19MF4", persistent = true },
{ workspace = "4", monitor = "desc:Dell Inc. DELL U2724DE BD19MF4", persistent = true }, { workspace = "4", monitor = "desc:Dell Inc. DELL U2724DE BD19MF4", persistent = true },
{ workspace = "5", monitor = "desc:Dell Inc. DELL U2724DE BD19MF4", persistent = true }, { workspace = "5", monitor = "desc:Dell Inc. DELL U2724DE BD19MF4", persistent = true },
{ workspace = "6", monitor = "desc:Dell Inc. DELL U2724D 1CQFMF4", default = true, persistent = true },
{ workspace = "7", monitor = "desc:Dell Inc. DELL U2724D 1CQFMF4", persistent = true },
{ workspace = "8", monitor = "desc:Dell Inc. DELL U2724D 1CQFMF4", persistent = true },
{ workspace = "9", monitor = "eDP-1", default = true, persistent = true }, { workspace = "9", monitor = "eDP-1", default = true, persistent = true },
{ workspace = "10", monitor = "eDP-1", persistent = true }, { workspace = "10", monitor = "eDP-1", persistent = true },
}, },
@@ -221,6 +221,10 @@ rule(
{ matches_class("^(hyprland-share-picker)$") }, { matches_class("^(hyprland-share-picker)$") },
{ float(), center(), pin() } { float(), center(), pin() }
) )
rule(
{ matches_class("^(gcr-prompter)$") },
{ float(), center(), pin() }
)
-- Nemo -- Nemo
rule( rule(
@@ -293,3 +297,4 @@ rule(
{ matches_initial_class("^(jetbrains-toolbox)$") }, { matches_initial_class("^(jetbrains-toolbox)$") },
{ float(), center(), pin() } { float(), center(), pin() }
) )
@@ -1,12 +1,13 @@
#!/usr/bin/env bash #!/usr/bin/env bash
(sleep 1 ; hyprctl eval 'request_apply_monitor_profile()') &
(sleep 2 ; hyprctl eval 'request_apply_monitor_profile()') & (sleep 2 ; hyprctl eval 'request_apply_monitor_profile()') &
(sleep 3 ; hyprctl eval 'request_apply_monitor_profile()') &
hyprctl dispatch 'hl.dsp.exec_cmd("uwsm app -- thunderbird", {workspace = 10})' hyprctl dispatch 'hl.dsp.exec_cmd("uwsm app -- thunderbird", {workspace = 10})'
{{ if eq .work_env true -}} {{ if eq .work_env true -}}
# outlook # outlook
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 -- /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 -}} {{ end -}}
hyprctl dispatch 'hl.dsp.exec_cmd("uwsm app -- nextcloud")' hyprctl dispatch 'hl.dsp.exec_cmd("uwsm app -- nextcloud")'
sleep 3 sleep 3
@@ -15,3 +16,7 @@ hyprctl dispatch 'hl.dsp.exec_cmd("uwsm app -- signal-desktop --ozone-platform=w
{{ if eq .work_env true -}} {{ if eq .work_env true -}}
hyprctl dispatch 'hl.dsp.exec_cmd("uwsm app -- teams-for-linux.desktop", {workspace = 9})' hyprctl dispatch 'hl.dsp.exec_cmd("uwsm app -- teams-for-linux.desktop", {workspace = 9})'
{{ end -}} {{ end -}}
sleep 2
hyprctl dispatch 'hl.dsp.focus({workspace = 10})'
hyprctl dispatch 'hl.dsp.focus({workspace = 9})'
hyprctl dispatch 'hl.dsp.focus({workspace = 1})'
+10 -16
View File
@@ -1,27 +1,21 @@
{{ $rss := "x" }} {{- $rss := "x" -}}
{{ $cal := "x" }} {{- $cal := "x" -}}
{{ $mail := "x" }} {{- $mail := "x" -}}
{{ $tb := "x" }} {{- $tb := "x" -}}
{{ $news := "x" }} {{- $news := "x" -}}
{{- if eq .chezmoi.hostname "arch-next" -}} {{- if eq .chezmoi.hostname "arch-next" -}}
{{- $rss = "userapp-Thunderbird-Y886T3.desktop" -}} {{- $rss = "userapp-Thunderbird-Y886T3.desktop" -}}
{{- $cal = "userapp-Thunderbird-NA25T3.desktop" -}} {{- $cal = "userapp-Thunderbird-NA25T3.desktop" -}}
{{- $mail = "userapp-Thunderbird-Q3N5T3.desktop" -}} {{- $mail = "userapp-Thunderbird-Q3N5T3.desktop" -}}
{{- $tb = "userapp-Thunderbird-SIG6T3.desktop" }} {{- $tb = "userapp-Thunderbird-SIG6T3.desktop" -}}
{{- $news = "userapp-Thunderbird-A0Q6T3.desktop" }} {{- $news = "userapp-Thunderbird-A0Q6T3.desktop" -}}
{{- else if eq .chezmoi.hostname "ia-frank-xps13" -}} {{- else if eq .chezmoi.hostname "ia-frank-xps13" -}}
{{- $rss = "userapp-Thunderbird-WTV1S3.desktop" -}} {{- $rss = "userapp-Thunderbird-WTV1S3.desktop" -}}
{{- $cal = "userapp-Thunderbird-X7G9S3.desktop" -}} {{- $cal = "userapp-Thunderbird-X7G9S3.desktop" -}}
{{- $mail = "userapp-Thunderbird-3QI0S3.desktop" -}} {{- $mail = "userapp-Thunderbird-3QI0S3.desktop" -}}
{{- $tb = "userapp-Thunderbird-U229S3.desktop" -}} {{- $tb = "userapp-Thunderbird-U229S3.desktop" -}}
{{- $news = "userapp-Thunderbird-AH40S3.desktop" -}} {{- $news = "userapp-Thunderbird-AH40S3.desktop" -}}
{{- end -}} {{- end -}}
[Default Applications] [Default Applications]
application/pdf=librewolf.desktop application/pdf=librewolf.desktop
application/rss+xml={{ $rss }} application/rss+xml={{ $rss }}
@@ -89,9 +83,9 @@ x-scheme-handler/feed={{ $rss }};
x-scheme-handler/mailto={{ $mail }}; x-scheme-handler/mailto={{ $mail }};
x-scheme-handler/mid={{ $mail }}; x-scheme-handler/mid={{ $mail }};
x-scheme-handler/net.thunderbird={{ $tb }}; x-scheme-handler/net.thunderbird={{ $tb }};
x-scheme-handler/news={{ $rss }}; x-scheme-handler/news={{ $news }};
x-scheme-handler/nntp={{ $rss }}; x-scheme-handler/nntp={{ $news }};
x-scheme-handler/snews={{ $rss }}; x-scheme-handler/snews={{ $news }};
x-scheme-handler/webcal={{ $cal }}; x-scheme-handler/webcal={{ $cal }};
x-scheme-handler/webcals={{ $cal }}; x-scheme-handler/webcals={{ $cal }};
application/xhtml+xml=librewolf.desktop; application/xhtml+xml=librewolf.desktop;
+22
View File
@@ -0,0 +1,22 @@
{
"credStore": "secretservice",
"auths": {},
"currentContext": "default",
"plugins": {
"-x-cli-hints": {
"enabled": "true"
},
"ai": {
"hooks": "build,buildx build,run,compose"
},
"compose": {
"hooks": "logs,compose logs,compose attach,compose up"
},
"debug": {
"hooks": "exec"
}
},
"features": {
"hooks": "true"
}
}