diff options
Diffstat (limited to 'accounts')
| -rw-r--r-- | accounts/gkleen@sif/default.nix | 37 | ||||
| -rw-r--r-- | accounts/gkleen@sif/niri/default.nix | 2 |
2 files changed, 38 insertions, 1 deletions
diff --git a/accounts/gkleen@sif/default.nix b/accounts/gkleen@sif/default.nix index 2d2e25cb..7a2095ad 100644 --- a/accounts/gkleen@sif/default.nix +++ b/accounts/gkleen@sif/default.nix | |||
| @@ -504,6 +504,10 @@ in { | |||
| 504 | [Unit] | 504 | [Unit] |
| 505 | After=graphical-session.target | 505 | After=graphical-session.target |
| 506 | ''; | 506 | ''; |
| 507 | "systemd/user/home-manager.service.d/before-graphical-session.conf".text = '' | ||
| 508 | [Unit] | ||
| 509 | Before=graphical-session-pre.target | ||
| 510 | ''; | ||
| 507 | }; | 511 | }; |
| 508 | 512 | ||
| 509 | xdg.dataFile = { | 513 | xdg.dataFile = { |
| @@ -645,6 +649,39 @@ in { | |||
| 645 | color-scheme = "prefer-dark"; | 649 | color-scheme = "prefer-dark"; |
| 646 | }; | 650 | }; |
| 647 | }; | 651 | }; |
| 652 | |||
| 653 | home.persistence."/.bcachefs/home/gkleen" = { | ||
| 654 | directories = [ | ||
| 655 | "documents" "scad" "projects" "screenshots" "Downloads" | ||
| 656 | "media" | ||
| 657 | |||
| 658 | { directory = ".local/share/Steam"; method = "symlink"; } | ||
| 659 | |||
| 660 | ".mozilla" ".local/share/direnv" ".local/share/nix" | ||
| 661 | ".local/share/libvirt" ".local/share/remmina" | ||
| 662 | ".local/share/documents.unison" ".local/share/etesync-dav" | ||
| 663 | ".pki" ".wallpapers" ".thunderbird" ".zoom" ".gnupg" ".cups" | ||
| 664 | ".ssh" ".config/sops" ".config/freerdp" ".config/libvirt" | ||
| 665 | ".config/rclone" ".config/OpenSCAD" | ||
| 666 | ".config/var/lib/swtpm-localca" ".config/xournalpp" | ||
| 667 | ".config/borg" ".config/keepassxc" ".config/obs-studio" | ||
| 668 | ".config/remmina" ".config/glab-cli" ".config/google-chrome" | ||
| 669 | ".config/google-chrome-rainbow" ".config/Element" | ||
| 670 | ".config/Element-lmu" ".config/worktime" ".config/gh" | ||
| 671 | ".config/Youtube Music Desktop App" | ||
| 672 | ".config/emacs/auto-save-list" ".cache/worktime" | ||
| 673 | ]; | ||
| 674 | files = [ | ||
| 675 | "store.kdbx" "rz.kdbx" | ||
| 676 | |||
| 677 | ".config/swtpm-localca.options" ".config/swtpm-localca.conf" | ||
| 678 | ".config/swtpm_setup.conf" ".config/synadm.yaml" | ||
| 679 | ".config/zoom.conf" ".config/zoomus.conf" ".netrc" | ||
| 680 | ".store.kdbx.json" ".zsh_history" | ||
| 681 | ".config/gtk-2.0/gtkfilechooser.ini" | ||
| 682 | ]; | ||
| 683 | allowOther = true; | ||
| 684 | }; | ||
| 648 | }; | 685 | }; |
| 649 | }; | 686 | }; |
| 650 | } | 687 | } |
diff --git a/accounts/gkleen@sif/niri/default.nix b/accounts/gkleen@sif/niri/default.nix index 93acc7d7..bf124211 100644 --- a/accounts/gkleen@sif/niri/default.nix +++ b/accounts/gkleen@sif/niri/default.nix | |||
| @@ -19,7 +19,7 @@ let | |||
| 19 | 19 | ||
| 20 | workspaces_json="$(niri msg -j workspaces)" | 20 | workspaces_json="$(niri msg -j workspaces)" |
| 21 | workspace_output="$(jq -r --arg workspace_name "$workspace_name" '.[] | select(.name == $workspace_name) | .output' <<<"$workspaces_json")" | 21 | workspace_output="$(jq -r --arg workspace_name "$workspace_name" '.[] | select(.name == $workspace_name) | .output' <<<"$workspaces_json")" |
| 22 | active_workspace="$(jq -r --arg workspace_output "$workspace_output" '.[] | select(.output == $workspace_output and .is_active) | .id' <<<"$workspaces_json")" | 22 | # active_workspace="$(jq -r --arg workspace_output "$workspace_output" '.[] | select(.output == $workspace_output and .is_active) | .id' <<<"$workspaces_json")" |
| 23 | active_output="$(jq -r '.[] | select(.is_focused) | .output' <<<"$workspaces_json")" | 23 | active_output="$(jq -r '.[] | select(.is_focused) | .output' <<<"$workspaces_json")" |
| 24 | if [[ $workspace_output != "$active_output" ]]; then | 24 | if [[ $workspace_output != "$active_output" ]]; then |
| 25 | niri msg action move-workspace-to-monitor --reference "$workspace_name" "$active_output" | 25 | niri msg action move-workspace-to-monitor --reference "$workspace_name" "$active_output" |
