sysvol: 2024-06-13 -> 2024-06-20

This commit is contained in:
Colin 2024-06-21 07:24:01 +00:00
parent f83bac3c2b
commit 78f4cd9be2
6 changed files with 21 additions and 17 deletions

View File

@ -15,7 +15,7 @@
- decrease s6 restart time?
- `ssh` access doesn't grant same linux capabilities as login
- ringer (i.e. dino incoming call) doesn't prevent moby from sleeping
- sysvol (volume overlay): when casting with `blast`, sysvol doesn't react to volume changes
- syshud (volume overlay): when casting with `blast`, syshud doesn't react to volume changes
- moby: kaslr is effectively disabled
- `dmesg | grep "KASLR disabled due to lack of seed"`
- fix by adding `kaslrseed` to uboot script before `booti`

View File

@ -143,7 +143,7 @@
./swaylock.nix
./swaynotificationcenter
./switchboard.nix
./sysvol.nix
./syshud.nix
./tangram.nix
./tor-browser.nix
./tuba.nix

View File

@ -164,7 +164,7 @@ in
"swayidle" # enable if you need it
"swaynotificationcenter" # notification daemon
"switchboard" # network/bluetooth/sound control panel
"sysvol" # volume notifier
"syshud" # volume notifier
"unl0kr" # greeter
# "waybar"
"wdisplays" # like xrandr

View File

@ -1,11 +1,15 @@
{ ... }:
{
sane.programs.sysvol = {
sane.programs.syshud = {
sandbox.method = "bwrap";
sandbox.whitelistAudio = true;
sandbox.whitelistWayland = true;
sandbox.extraPaths = [
"/sys/class/backlight" #< crashes if unable to access this directory
# "/sys/devices" #< only if you want it to actually show when the backlight changes
];
fs.".config/sys64/volume.css".symlink.text = ''
fs.".config/sys64/hud.css".symlink.text = ''
window {
background: transparent;
}
@ -53,8 +57,8 @@
}
'';
services."sysvol" = {
description = "sysvol: volume monitor/notifier";
services."syshud" = {
description = "syshud: volume monitor/notifier";
depends = [ "sound" ]; #< specifically wireplumber-pulse
partOf = [ "graphical-session" ];
@ -67,7 +71,7 @@
# -{H,W} N to set the height/width of the notifier, in px.
# -i N to set the size of the volume icon
# -P to hide percentage text
command = "sysvol -p top -t 1 -T 0 -m 22 -H 39 -W 256 -i 32 -P";
command = "syshud -p top -t 1 -T 0 -m 22 -H 39 -W 256 -i 32 -P";
};
};
}

View File

@ -8,14 +8,14 @@
, wrapGAppsHook4
}:
stdenv.mkDerivation {
pname = "sysvol";
version = "0-unstable-2024-06-13";
pname = "syshud";
version = "0-unstable-2024-06-20";
src = fetchFromGitHub {
owner = "System64fumo";
repo = "sysvol";
rev = "af882d40df7c6e1a0ec415d934f643933f455b5a";
hash = "sha256-3gB1u7fEi7EB+FWZKS8ddJ53RC5Chyw3fTBX8Z0Itis=";
repo = "syshud";
rev = "2b97f3441970efe67c788a8313eb58182aa7965b";
hash = "sha256-XPAKjBLaTGEyDgiZT8tYinYzMivOocOEeauzR4leOjI=";
};
postPatch = ''
substituteInPlace Makefile \
@ -40,9 +40,9 @@ stdenv.mkDerivation {
};
meta = {
description = "A basic GTK4 volume indicator";
homepage = "https://github.com/System64fumo/sysvol";
mainProgram = "sysvol";
description = "Simple heads up display written in gtkmm 4";
homepage = "https://github.com/System64fumo/syshud";
mainProgram = "syshud";
platforms = lib.platforms.linux;
maintainers = with lib.maintainers; [ colinsane ];
};

View File

@ -97,7 +97,7 @@ let
sxmo_swaylock = callPackage ./additional/sxmo_swaylock { };
sxmo-suspend = callPackage ./additional/sxmo-suspend { };
sxmo-utils = callPackage ./additional/sxmo-utils { };
sysvol = callPackage ./additional/sysvol { };
syshud = callPackage ./additional/syshud { };
tow-boot-pinephone = callPackage ./additional/tow-boot-pinephone { };
tree-sitter-nix-shell = callPackage ./additional/tree-sitter-nix-shell { };
trivial-builders = lib.recurseIntoAttrs (callPackage ./additional/trivial-builders { });