Files
nixpkgs/pkgs/by-name/nw/nwg-bar/fix-paths.patch
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

48 lines
1.2 KiB
Diff

diff --git a/config/bar.json b/config/bar.json
index 6c456e7..98527cb 100644
--- a/config/bar.json
+++ b/config/bar.json
@@ -2,21 +2,21 @@
{
"label": "Lock",
"exec": "swaylock -f -c 000000",
- "icon": "/usr/share/nwg-bar/images/system-lock-screen.svg"
+ "icon": "@out@/share/nwg-bar/images/system-lock-screen.svg"
},
{
"label": "Logout",
"exec": "swaymsg exit",
- "icon": "/usr/share/nwg-bar/images/system-log-out.svg"
+ "icon": "@out@/share/nwg-bar/images/system-log-out.svg"
},
{
"label": "Reboot",
"exec": "systemctl reboot",
- "icon": "/usr/share/nwg-bar/images/system-reboot.svg"
+ "icon": "@out@/share/nwg-bar/images/system-reboot.svg"
},
{
"label": "Shutdown",
"exec": "systemctl -i poweroff",
- "icon": "/usr/share/nwg-bar/images/system-shutdown.svg"
+ "icon": "@out@/share/nwg-bar/images/system-shutdown.svg"
}
]
\ No newline at end of file
diff --git a/tools.go b/tools.go
index f97751e..987163e 100644
--- a/tools.go
+++ b/tools.go
@@ -45,10 +45,7 @@ func configDir() string {
}
func getDataHome() string {
- if os.Getenv("XDG_DATA_HOME") != "" {
- return os.Getenv("XDG_DATA_HOME")
- }
- return "/usr/share/"
+ return "@out@/share/"
}
func createDir(dir string) {