Skip to content

Commit

Permalink
feat: libinput keys module
Browse files Browse the repository at this point in the history
Adds a new module which shows the status of toggle mod keys (capslock, num lock, scroll lock).

Resolves #700
  • Loading branch information
JakeStanger committed Nov 17, 2024
1 parent bdf6b3b commit dc5e6ba
Show file tree
Hide file tree
Showing 9 changed files with 555 additions and 13 deletions.
1 change: 1 addition & 0 deletions .github/scripts/ubuntu_setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ $SUDO apt-get update && $SUDO apt-get install --assume-yes \
libssl-dev${CROSS_DEB_ARCH:+:$CROSS_DEB_ARCH} \
libgtk-3-dev${CROSS_DEB_ARCH:+:$CROSS_DEB_ARCH} \
libgtk-layer-shell-dev${CROSS_DEB_ARCH:+:$CROSS_DEB_ARCH} \
libinput-dev${CROSS_DEB_ARCH:+:$CROSS_DEB_ARCH} \
libdbusmenu-gtk3-dev${CROSS_DEB_ARCH:+:$CROSS_DEB_ARCH} \
libpulse-dev${CROSS_DEB_ARCH:+:$CROSS_DEB_ARCH} \
libluajit-5.1-dev${CROSS_DEB_ARCH:+:$CROSS_DEB_ARCH}
78 changes: 71 additions & 7 deletions Cargo.lock

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

14 changes: 10 additions & 4 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ default = [
"focused",
"http",
"ipc",
"keys",
"launcher",
"music+all",
"network_manager",
Expand Down Expand Up @@ -49,12 +50,14 @@ http = ["dep:reqwest"]

cairo = ["lua-src", "mlua", "cairo-rs"]

clipboard = ["nix"]
clipboard = ["dep:nix"]

clock = ["chrono"]

focused = []

keys = ["dep:input", "dep:evdev-rs", "dep:libc", "dep:nix"]

launcher = []

music = ["regex"]
Expand Down Expand Up @@ -131,12 +134,14 @@ lua-src = { version = "547.0.0", optional = true }
mlua = { version = "0.9.9", optional = true, features = ["luajit"] }
cairo-rs = { version = "0.18.5", optional = true, features = ["png"] }

# clipboard
nix = { version = "0.29.0", optional = true, features = ["event", "fs"] }

# clock
chrono = { version = "0.4.38", optional = true, default-features = false, features = ["clock", "unstable-locales"] }

# input
input = { version = "0.9.1", optional = true }
evdev-rs = { version = "0.6.1", optional = true }
libc = { version = "0.2.164", optional = true }

# music
mpd-utils = { version = "0.2.1", optional = true }
mpris = { version = "2.0.1", optional = true }
Expand All @@ -163,6 +168,7 @@ futures-util = { version = "0.3.31", optional = true }

# shared
futures-lite = { version = "2.5.0", optional = true } # network_manager, upower, workspaces
nix = { version = "0.29.0", optional = true, features = ["event", "fs", "poll"] } # clipboard, input
regex = { version = "1.11.1", default-features = false, features = [
"std",
], optional = true } # music, sys_info
Expand Down
Loading

0 comments on commit dc5e6ba

Please sign in to comment.