8 Commits
Author SHA1 Message Date
Kenny Levinsen c4dc0c1ce0 desktop: Unescape backslashes
The desktop spec applies escaping to string values. Perform a primitive
unescape.
2025-04-08 11:53:05 +02:00
Kenny Levinsen d80a64444f cargo: Update lock 2025-04-08 11:51:15 +02:00
Kenny Levinsen 456d61de01 cargo: Set binary name back to wldash
During v2 development, the name was temporarily set to wldash2. Set it
back to wldash so that things work.
2025-03-20 16:57:58 +01:00
Kenny Levinsen ab2655556f readme: Make note of rewrite 2025-02-27 17:42:09 +01:00
Kenny Levinsen f0331e65b1 cargo: Bump to 2024 edition 2025-02-27 17:41:08 +01:00
Kenny Levinsen 25c7322c4b cargo: Bump version to 0.2 2025-02-27 17:40:56 +01:00
Kenny Levinsen 7af5c34856 readme: Update for v2 2025-02-27 17:39:49 +01:00
Kenny Levinsen e8def40fae cargo: Make fontconfig a default feature 2025-02-27 17:39:40 +01:00
5 changed files with 16 additions and 11 deletions
Generated
+2 -2
View File
@@ -1280,8 +1280,8 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "dff9641d1cd4be8d1a070daf9e3773c5f67e78b4d9d42263020c057706765c04"
[[package]]
name = "wldash2"
version = "0.1.0"
name = "wldash"
version = "0.2.0"
dependencies = [
"calloop",
"chrono",
+6 -3
View File
@@ -1,13 +1,16 @@
[package]
name = "wldash2"
version = "0.1.0"
edition = "2021"
name = "wldash"
version = "0.2.0"
edition = "2024"
[profile.release]
#debug = true
lto = "fat"
panic = "abort"
[features]
default = ["fontconfig"]
[dependencies]
wayland-client = { version = "0.30", features = ["calloop", "log"] }
wayland-protocols = { version = "0.30", features = ["client", "unstable", "staging"] }
+6 -5
View File
@@ -6,6 +6,10 @@ A dashboard/launcher/control-panel thing for Wayland. Requires wlr-layer-shell-u
Consider this alpha-quality: While it works, *everything* is subject to change with a moments notice. You may end up pulling in the latest changes, and *poof*, wldash suddenly turns into an artisan espresso machine.
## Rewrite note
wldash has received a significant rewrite. The old version is available in the wldash1 branch for now.
## How to use
1. Checkout: `git clone https://github.com/kennylevinsen/wldash`
@@ -13,9 +17,9 @@ Consider this alpha-quality: While it works, *everything* is subject to change w
3. Put somewhere: `cp target/release/wldash /usr/local/bin/wldash`
4. Run: `wldash`
To see the default configuration, run `wldash print-config`. To configure, place a file in `$XDG_CONFIG_HOME/wldash/config.yaml` (or if `XDG_CONFIG_HOME` is not set, `~/.config/wldash/config.yaml`). JSON is also currently supported.
To generate a new default configuration, run `wldash --write-default-config`. To configure, edit `$XDG_CONFIG_HOME/wldash/config.yml` (or if `XDG_CONFIG_HOME` is not set, `~/.config/wldash/config.yaml`).
Notable settings: `outptuMode` can be `active` or `all`, `scale` can be set to `2` to half the buffer size, and the widgets (and their layout) can be configured.
To regenerate the desktop file cache, run `wldash --desktop-refresh`.
For more info, look in `src/config.rs`.
@@ -63,9 +67,6 @@ The launcher also accepts prefix operators to change its mode:
## Notable missing features:
- Scaling of any kind - all sizes are currently hardcoded in pixels
- Configurability
- Cleanup and reorganization
- Proper line editor for the launcher
## How to discuss
+1 -1
View File
@@ -141,7 +141,7 @@ impl State {
activation.activate(key, surface);
let activation_token = activation.get_activation_token(qh, ());
activation_token.commit();
env::remove_var("XDG_ACTIVATION_TOKEN");
unsafe { env::remove_var("XDG_ACTIVATION_TOKEN"); }
}
_ => (),
}
+1
View File
@@ -269,6 +269,7 @@ impl InterfaceWidget for Launcher {
let d = &self.matches[intf.selection];
if let Some(exec) = &d.exec {
let exec = exec
.replace("\\\\", "\\")
.replace("%f", "")
.replace("%F", "")
.replace("%u", "")