summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLibravatarLarge Libravatar memdmp <memdmpestrogenzone>2026-01-25 17:21:34 +0100
committerLibravatarLarge Libravatar memdmp <memdmpestrogenzone>2026-01-25 17:21:34 +0100
commitb3a71cd08b215ba71050cbd338b5ae83ffea9fbe (patch)
treeaa82632cb04394caeabd8731b79f0a3d62ee88f2
parent2a14b4c401ecc1d98d65c09271a8656ccfebc4ec (diff)
downloadbibata-cursor-cli-b3a71cd08b215ba71050cbd338b5ae83ffea9fbe.tar.gz
bibata-cursor-cli-b3a71cd08b215ba71050cbd338b5ae83ffea9fbe.tar.bz2
bibata-cursor-cli-b3a71cd08b215ba71050cbd338b5ae83ffea9fbe.tar.lz
bibata-cursor-cli-b3a71cd08b215ba71050cbd338b5ae83ffea9fbe.zip

feat: default to prefixing subdirs with Bibata-

HEADmaster
-rw-r--r--src/main.rs18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/main.rs b/src/main.rs
index 45d459b..8fccb05 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -145,28 +145,28 @@ fn main() -> Result<()> {
}
fs::create_dir("xcursor-out")?;
for style in cursor_style {
- fs::create_dir(format!("xcursor-out/{}", style.kind))?;
+ fs::create_dir(format!("xcursor-out/Bibata-{}", style.kind))?;
for cursor in style.cursors {
- println!("xcursor-out/{}/{}", style.kind, cursor.name.clone());
+ println!("xcursor-out/Bibata-{}/{}", style.kind, cursor.name.clone());
// shove these files in a dir named `cursors` inside the theme dir
// the theme dir should have these 2 files in it:
//
// cursor.theme:
// [Icon Theme]
- // Name=Bibata
+ // Name=Bibata-{style}
// Inherits="Bibata"
//
// index.theme:
// [Icon Theme]
- // Name=Bibata
- // Comment=Generated Bibata Theme
+ // Name=Bibata-{style}
+ // Comment=Generated Bibata {style} Theme
// Inherits="hicolor"
//
// the theme dir should be ~/.local/share/icons/Bibata
//
- // to apply on gnome: gsettings set org.gnome.desktop.interface cursor-theme Bibata
+ // to apply on gnome: gsettings set org.gnome.desktop.interface cursor-theme Bibata-{style}
fs::write(
- format!("xcursor-out/{}/{}", style.kind, cursor.name.clone()),
+ format!("xcursor-out/Bibata-{}/{}", style.kind, cursor.name.clone()),
process_xcursor(
cursor.clone(),
BibataColourScheme {
@@ -177,7 +177,7 @@ fn main() -> Result<()> {
watch_opacity: 1.0,
},
vec![
- 4, 6, 8, 10, 12, 16, 18, 24, 30, 32, 36, 42, 48, 54, 60, 66, 72, 128,
+ 4, 6, 8, 10, 12, 16, 18, 24, 30, 32, 36, 42, 48, 54, 60, 66, 72, 128
],
750,
),
@@ -185,7 +185,7 @@ fn main() -> Result<()> {
for alias in cursor.aliases {
unix::fs::symlink(
cursor.name.clone(),
- format!("xcursor-out/{}/{}", style.kind, alias),
+ format!("xcursor-out/Bibata-{}/{}", style.kind, alias),
)?;
}
}