Skip to content

GlazeWM is a tiling window manager for macOS and Windows inspired by i3wm.

refactor: create `resources/assets` dir

Lars Berger97bc5d530782
diff --git a/README.md b/README.md
index 1b6ced45..0e2564c2 100644
--- a/README.md
+++ b/README.md
@@ -1,5 +1,5 @@
<div align="center">
- <img src="./resources/logo.svg" width="230" alt="GlazeWM logo" />
+ <img src="./resources/assets/logo.svg" width="230" alt="GlazeWM logo" />
<br>
<br>
@@ -46,11 +46,11 @@ On the first launch of GlazeWM, a default configuration can optionally be genera
Below is a cheatsheet of all available commands and their default keybindings.
-![Infographic](/resources/cheatsheet.png)
+![Infographic](/resources/assets/cheatsheet.png)
## Config documentation
-The [default config](https://github.com/glzr-io/glazewm/blob/main/resources/sample-config.yaml) file is generated at `%userprofile%\.glzr\glazewm\config.yaml`.
+The [default config](https://github.com/glzr-io/glazewm/blob/main/resources/assets/sample-config.yaml) file is generated at `%userprofile%\.glzr\glazewm\config.yaml`.
To use a different config file location, you can launch the GlazeWM executable with the CLI argument `--config="..."`, like so:
diff --git a/packages/watcher/build.rs b/packages/watcher/build.rs
index dee7ca90..8526fa23 100644
--- a/packages/watcher/build.rs
+++ b/packages/watcher/build.rs
@@ -4,7 +4,7 @@ fn main() {
println!("cargo:rerun-if-env-changed=VERSION_NUMBER");
let mut res = tauri_winres::WindowsResource::new();
- res.set_icon("../../resources/icon.ico");
+ res.set_icon("../../resources/assets/icon.ico");
// Set language to English (US).
res.set_language(0x0409);
diff --git a/packages/wm/build.rs b/packages/wm/build.rs
index 5a451b8b..c42bdb9e 100644
--- a/packages/wm/build.rs
+++ b/packages/wm/build.rs
@@ -54,7 +54,7 @@ fn main() {
);
res.set_manifest(&manifest_str);
- res.set_icon("../../resources/icon.ico");
+ res.set_icon("../../resources/assets/icon.ico");
// Set language to English (US).
res.set_language(0x0409);
diff --git a/packages/wm/src/user_config.rs b/packages/wm/src/user_config.rs
index 5cc90d64..109878be 100644
--- a/packages/wm/src/user_config.rs
+++ b/packages/wm/src/user_config.rs
@@ -15,7 +15,7 @@ use crate::{
/// Resource string for the sample config file.
const SAMPLE_CONFIG: &str =
- include_str!("../../../resources/sample-config.yaml");
+ include_str!("../../../resources/assets/sample-config.yaml");
#[derive(Debug)]
pub struct UserConfig {
diff --git a/resources/cheatsheet.png b/resources/assets/cheatsheet.png
similarity index 100%
rename from resources/cheatsheet.png
rename to resources/assets/cheatsheet.png
diff --git a/resources/icon.ico b/resources/assets/icon.ico
similarity index 100%
rename from resources/icon.ico
rename to resources/assets/icon.ico
diff --git a/resources/logo.svg b/resources/assets/logo.svg
similarity index 100%
rename from resources/logo.svg
rename to resources/assets/logo.svg
diff --git a/resources/sample-config.yaml b/resources/assets/sample-config.yaml
similarity index 100%
rename from resources/sample-config.yaml
rename to resources/assets/sample-config.yaml
diff --git a/resources/wix/bundle.wxs b/resources/wix/bundle.wxs
index 499fc006..61b780de 100644
--- a/resources/wix/bundle.wxs
+++ b/resources/wix/bundle.wxs
@@ -7,7 +7,7 @@
Manufacturer="Glzr Software Pte. Ltd."
DisableModify="yes"
DisableRemove="yes"
- IconSourceFile="resources/icon.ico"
+ IconSourceFile="resources/assets/icon.ico"
>
<BootstrapperApplication>
<bal:WixStandardBootstrapperApplication
diff --git a/resources/wix/standalone.wxs b/resources/wix/standalone.wxs
index f4420d23..3905020e 100644
--- a/resources/wix/standalone.wxs
+++ b/resources/wix/standalone.wxs
@@ -17,7 +17,7 @@
<MajorUpgrade Schedule="afterInstallInitialize" AllowDowngrades="yes" />
<!-- Set icon used by installer. -->
- <Icon Id="Custom_Ico" SourceFile="resources/icon.ico" />
+ <Icon Id="Custom_Ico" SourceFile="resources/assets/icon.ico" />
<Property Id="ARPPRODUCTICON" Value="Custom_Ico" />
<!-- Enable CAB embed, otherwise, a separate .cab file is created. -->