Skip to content

Commit

Permalink
amend 54f0f23
Browse files Browse the repository at this point in the history
  • Loading branch information
JakeStanger committed Aug 13, 2023
1 parent 9e2ac0f commit 6be18da
Show file tree
Hide file tree
Showing 7 changed files with 65 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .cargo/config.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[target.x86_64-unknown-linux-gnu]
linker = "clang"
rustflags = ["-C", "link-arg=-fuse-ld=/usr/bin/mold"]
15 changes: 15 additions & 0 deletions .fleet/run.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"configurations": [
{
"type": "cargo",
"name": "run",
"cargoArgs": ["run"],
},
{
"type": "cargo",
"name": "build",
"cargoArgs": ["build"],
},

]
}
3 changes: 3 additions & 0 deletions .fleet/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"toolchains": []
}
17 changes: 17 additions & 0 deletions .idea/runConfigurations/Watch_docs.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

22 changes: 22 additions & 0 deletions examples/test.corn
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
let {
$workspaces = { type = "workspaces" favorites.DP-2 = ["Code" "6"] all_monitors = true }
$launcher = { type = "launcher" favorites = [ "google-chrome" ] }
$focused = { type = "focused" show_icon = true }
$sensors = { type = "sys_info" format = [] }
$clipboard = { type = "clipboard" }
$clock = { type = "clock" }
$tray = { type = "tray" }
$mpris = { type = "music" }
$mpd = { type = "music" player_type = "mpd" host = "chloe:6600" }

$custom = { type = "custom" bar = [ { type = "label" label = "Hello, #subject" } ] show_if = "#show_custom" }
} in {
icon_theme = "Paper"

ironvar_defaults.subject = "everybody"
ironvar_defaults.show_custom = "true"

monitors.DP-2.start = [ $launcher ]
// center = [ $mpris ]
monitors.DP-2.end = [ $clock ]
}
4 changes: 4 additions & 0 deletions scripts/watch-docs.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/usr/bin/env bash

browser-sync ./target/doc -w&
cargo watch -s 'cargo doc'
2 changes: 1 addition & 1 deletion src/modules/launcher/item.rs
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,7 @@ impl ItemButton {

let close = match bar_position {
BarPosition::Top => y + THRESHOLD < alloc.height() as f64,
BarPosition::Bottom => y > 0.0,
BarPosition::Bottom => y > THRESHOLD,
BarPosition::Left => x + THRESHOLD < alloc.width() as f64,
BarPosition::Right => x > THRESHOLD,
};
Expand Down

0 comments on commit 6be18da

Please sign in to comment.