-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(chezmoi): misc cleanup in chezmoi data
- Loading branch information
Showing
20 changed files
with
86 additions
and
99 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
*.md | ||
.gsettings.yaml | ||
*.jsonc |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
--- | ||
version: 0.1 | ||
cli: | ||
version: 1.22.8 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,30 @@ | ||
{{- $name := "Scott Ames" -}} | ||
{{- $dotsStr := "dots" -}} | ||
{{- $email := "[email protected]" -}} | ||
{{- $githubUser := "scottames" -}} | ||
{{- $fontMonospace := "FiraCode Nerd Font Mono" -}} | ||
{{- $chassis := "" -}} | ||
{{- $gpu := "" -}} | ||
{{- $isContainer := false -}} | ||
{{- $isDistroBox := false -}} | ||
{{- $isUblue := false -}} | ||
|
||
{{- $chassis := "" -}} | ||
{{- $desktopSession := env "DESKTOP_SESSION" -}} | ||
{{- $gpu := "" -}} | ||
{{- $hostname := "" -}} | ||
{{- $hourDark := 24 -}} | ||
{{- $hourLight := 24 -}} | ||
{{- $osVariant := "" -}} | ||
{{- $ublueImageInfo := "" -}} | ||
{{- $dotsStr := "dots" -}} | ||
|
||
{{- $isContainer := false -}} | ||
{{- $isDistroBox := false -}} | ||
{{- $isUblue := false -}} | ||
{{- $loginSession := 0 -}} | ||
{{- $loginSessionType := "" -}} | ||
|
||
{{- $osVariant := "" -}} | ||
{{- $ublueImageInfo := "" -}} | ||
{{- $useGitWorktrees := true -}} | ||
|
||
{{- if $useGitWorktrees -}} | ||
{{- $dotsStr = "dots/main" -}} | ||
{{- $dotsStr = printf "%s/main" $dotsStr -}} | ||
{{- end -}} | ||
|
||
{{- $gravatarID := trim ( | ||
output "sh" "-c" "printf '[email protected]' | md5sum - | cut -d' ' -f1" | ||
output "sh" "-c" "printf '[email protected]' | md5sum - | cut -d' ' -f1" | ||
) -}} | ||
|
||
{{- if eq .chezmoi.os "linux" -}} | ||
|
@@ -41,6 +42,9 @@ output "sh" "-c" "printf '[email protected]' | md5sum - | cut -d' ' -f1" | |
{{- $chassis = trim ( | ||
output "distrobox-host-exec" "hostnamectl" "chassis" | ||
) -}} | ||
{{- $hostname = trim ( | ||
output "distrobox-host-exec" "hostnamectl" "hostname" | ||
) -}} | ||
{{- $loginSession = trim ( | ||
output "distrobox-host-exec" "sh" "-c" "loginctl | grep user | awk '{print $1}'" | ||
) -}} | ||
|
@@ -95,41 +99,54 @@ output "sh" "-c" "printf '[email protected]' | md5sum - | cut -d' ' -f1" | |
|
||
sourceDir = "{{ $chezmoiSourceDir }}" | ||
progress = true | ||
{{- if lookPath "delta" }} | ||
|
||
{{ if lookPath "delta" -}} | ||
[diff] | ||
pager = "delta" | ||
command = "delta" | ||
args = ["--paging", "never"] | ||
exclude = ["dirs", "scripts"] | ||
{{- end }} | ||
|
||
{{ end -}} | ||
[data] | ||
aqua_installed = {{ $aquaInstalled }} | ||
aqua_bin_dir = "{{ $aquaRoot }}/bin" | ||
aqua_root = "{{ $aquaRoot }}" | ||
chezmoi_home = "{{ $chezmoiSourceDir }}" | ||
desktop_session = "{{ $desktopSession }}" | ||
dots = "{{ $dots }}" | ||
hour_dark = {{ $hourDark }} | ||
hour_light = {{ $hourLight }} | ||
login_session = {{ $loginSession }} | ||
login_session_type = "{{ $loginSessionType }}" | ||
monospace_font = "{{ $fontMonospace }}" | ||
wallpaper = "{{ $wallpaper }}" | ||
[data.home] | ||
chezmoi_home = "{{ $chezmoiSourceDir }}" | ||
dots = "{{ $dots }}" | ||
|
||
[data.home.aqua] | ||
installed = {{ $aquaInstalled }} | ||
bin_dir = "{{ $aquaRoot }}/bin" | ||
root = "{{ $aquaRoot }}" | ||
|
||
[data.host] | ||
name = "{{ $hostname }}" | ||
chassis = "{{ $chassis }}" | ||
is_ublue = {{ $isUblue }} | ||
os_variant = "{{ $osVariant }}" | ||
gpu = "{{ $gpu }}" | ||
|
||
[data.desktop] | ||
session = "{{ $desktopSession }}" | ||
wallpaper = "{{ $wallpaper }}" | ||
|
||
[data.desktop.fonts] | ||
monospace = "{{ $fontMonospace }}" | ||
|
||
[data.desktop.hour] | ||
light = 24 | ||
dark = 24 | ||
|
||
[data.desktop.login] | ||
session = {{ $loginSession }} | ||
type = "{{ $loginSessionType }}" | ||
|
||
[data.me] | ||
user = "{{ .chezmoi.username }}" | ||
email = "{{ $email }}" | ||
name = "{{ $name }}" | ||
|
||
[data.me.gravatar] | ||
id = "{{ $gravatarID }}" | ||
|
||
[data.me.github] | ||
username = "{{ $githubUser }}" | ||
|
||
# vi: ft=toml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
home/private_dot_config/aquaproj-aqua/symlink_aqua-checksums.json.tmpl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
{{ .dots }}/aqua/aqua-checksums.json | ||
{{ .home.dots }}/aqua/aqua-checksums.json |
2 changes: 1 addition & 1 deletion
2
home/private_dot_config/aquaproj-aqua/symlink_aqua-policy.yaml.tmpl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
{{ .dots }}/aqua/aqua-policy.yaml | ||
{{ .home.dots }}/aqua/aqua-policy.yaml |
2 changes: 1 addition & 1 deletion
2
home/private_dot_config/aquaproj-aqua/symlink_aqua-registry.yaml.tmpl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
{{ .dots }}/aqua/aqua-registry.yaml | ||
{{ .home.dots }}/aqua/aqua-registry.yaml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
{{ .dots }}/aqua/aqua.yaml | ||
{{ .home.dots }}/aqua/aqua.yaml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -50,42 +50,13 @@ input { | |
// focus-follows-mouse max-scroll-amount="0%" | ||
} | ||
|
||
// You can configure outputs by their name, which you can find | ||
// by running `niri msg outputs` while inside a niri instance. | ||
// The built-in laptop monitor is usually called "eDP-1". | ||
// Find more information on the wiki: | ||
// https://github.com/YaLTeR/niri/wiki/Configuration:-Outputs | ||
// Remember to uncomment the node by removing "/-"! | ||
/-output "eDP-1" { | ||
// Uncomment this line to disable this output. | ||
// off | ||
|
||
// Resolution and, optionally, refresh rate of the output. | ||
// The format is "<width>x<height>" or "<width>x<height>@<refresh rate>". | ||
// If the refresh rate is omitted, niri will pick the highest refresh rate | ||
// for the resolution. | ||
// If the mode is omitted altogether or is invalid, niri will pick one automatically. | ||
// Run `niri msg outputs` while inside a niri instance to list all outputs and their modes. | ||
mode "[email protected]" | ||
|
||
// You can use integer or fractional scale, for example use 1.5 for 150% scale. | ||
scale 2 | ||
|
||
// Transform allows to rotate the output counter-clockwise, valid values are: | ||
// normal, 90, 180, 270, flipped, flipped-90, flipped-180 and flipped-270. | ||
{{ if regexMatch "^zx1" .host.name -}} | ||
output "DP-2" { | ||
mode "[email protected]" | ||
scale 1 | ||
transform "normal" | ||
|
||
// Position of the output in the global coordinate space. | ||
// This affects directional monitor actions like "focus-monitor-left", and cursor movement. | ||
// The cursor can only move between directly adjacent outputs. | ||
// Output scale and rotation has to be taken into account for positioning: | ||
// outputs are sized in logical, or scaled, pixels. | ||
// For example, a 3840×2160 output with scale 2.0 will have a logical size of 1920×1080, | ||
// so to put another output directly adjacent to it on the right, set its x to 1920. | ||
// If the position is unset or results in an overlap, the output is instead placed | ||
// automatically. | ||
position x=1280 y=0 | ||
} | ||
{{- end }} | ||
|
||
// Settings that influence how windows are positioned and sized. | ||
// Find more information on the wiki: | ||
|
@@ -487,6 +458,12 @@ binds { | |
// Mod+Space { switch-layout "next"; } | ||
// Mod+Shift+Space { switch-layout "prev"; } | ||
|
||
// One caveat is that currently rootful Xwayland doesn't seem to share | ||
// clipboard with the compositor. For textual data you can do it manually | ||
// using wl-clipboard. https://github.com/YaLTeR/niri/wiki/Xwayland | ||
Mod+Shift+C { spawn "sh" "-c" "env DISPLAY=:0 xsel -ob | wl-copy"; } | ||
Mod+Shift+V { spawn "sh" "-c" "wl-paste -n | env DISPLAY=:0 xsel -ib"; } | ||
|
||
Print { screenshot; } | ||
Ctrl+Print { screenshot-screen; } | ||
Alt+Print { screenshot-window; } | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
{{ .chezmoi_home }}/private_dot_config/nvim/lazylock.json | ||
{{ .home.chezmoi_home }}/private_dot_config/nvim/lazylock.json |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters