flake lock

This commit is contained in:
cnst
2024-11-25 17:24:33 +01:00
parent 25cad3cbf1
commit a651ca013d
6 changed files with 329 additions and 324 deletions

90
flake.lock generated
View File

@@ -82,12 +82,12 @@
"nixpkgs": "nixpkgs_3" "nixpkgs": "nixpkgs_3"
}, },
"locked": { "locked": {
"lastModified": 1732047192, "lastModified": 1732400024,
"narHash": "sha256-QVvcbiOgQIMLM5+NrpKxpB3IRKH4ZbP7+WKBISKO1zM=", "narHash": "sha256-uf1QzIl0Jj5dr7+erWjHWiCUEvywLaR7ir1jcqGgjeQ=",
"rev": "d3ec352824dbec68aa0c17851f7424fdc735ecc4", "rev": "376a2e022a5d8fa21cecb5bb0fef0cb54db5cdfc",
"revCount": 1516, "revCount": 1522,
"type": "tarball", "type": "tarball",
"url": "https://api.flakehub.com/f/pinned/chaotic-cx/nyx/0.1.1516%2Brev-d3ec352824dbec68aa0c17851f7424fdc735ecc4/01934613-7358-7041-acf2-053fb4f76a4c/source.tar.gz?rev=d3ec352824dbec68aa0c17851f7424fdc735ecc4&revCount=1516" "url": "https://api.flakehub.com/f/pinned/chaotic-cx/nyx/0.1.1522%2Brev-376a2e022a5d8fa21cecb5bb0fef0cb54db5cdfc/01935b1b-736f-7162-bf26-076b2462de75/source.tar.gz?rev=376a2e022a5d8fa21cecb5bb0fef0cb54db5cdfc&revCount=1522"
}, },
"original": { "original": {
"type": "tarball", "type": "tarball",
@@ -169,11 +169,11 @@
"rust-analyzer-src": "rust-analyzer-src" "rust-analyzer-src": "rust-analyzer-src"
}, },
"locked": { "locked": {
"lastModified": 1732084544, "lastModified": 1732429952,
"narHash": "sha256-0p50xdUCAvKWh3s7seOiGN4BaXwPAk852gYvNc13hWc=", "narHash": "sha256-kTXRYkTpvYn4AtYY8OUVpO7h9xNjPAaHxtTuz1N4l9g=",
"owner": "nix-community", "owner": "nix-community",
"repo": "fenix", "repo": "fenix",
"rev": "6120ce1d29263ed58981e7e223e55942702de853", "rev": "39603febfbb0b494a368905a5c5c1b13bd6e1e53",
"type": "github" "type": "github"
}, },
"original": { "original": {
@@ -375,11 +375,11 @@
}, },
"hardware": { "hardware": {
"locked": { "locked": {
"lastModified": 1731797098, "lastModified": 1732483221,
"narHash": "sha256-UhWmEZhwJZmVZ1jfHZFzCg+ZLO9Tb/v3Y6LC0UNyeTo=", "narHash": "sha256-kF6rDeCshoCgmQz+7uiuPdREVFuzhIorGOoPXMalL2U=",
"owner": "nixos", "owner": "nixos",
"repo": "nixos-hardware", "repo": "nixos-hardware",
"rev": "672ac2ac86f7dff2f6f3406405bddecf960e0db6", "rev": "45348ad6fb8ac0e8415f6e5e96efe47dd7f39405",
"type": "github" "type": "github"
}, },
"original": { "original": {
@@ -396,11 +396,11 @@
"rust-overlay": "rust-overlay" "rust-overlay": "rust-overlay"
}, },
"locked": { "locked": {
"lastModified": 1731479417, "lastModified": 1732284611,
"narHash": "sha256-NZ+Jc9XecxUIC6RBE5TdDo8hKzI704fMBKTz6lEH32w=", "narHash": "sha256-SH7WRJnFSXDJ6f9UzMUdaa6cS5Fc2kACSW8wB9BA8WU=",
"owner": "helix-editor", "owner": "helix-editor",
"repo": "helix", "repo": "helix",
"rev": "6cca98264fe308bd6a4f7f85be2d821b58f60b4a", "rev": "cbbeca6c5227e65bebdbe9abbadbd2202ffc1005",
"type": "github" "type": "github"
}, },
"original": { "original": {
@@ -416,11 +416,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1732025103, "lastModified": 1732482255,
"narHash": "sha256-qjEI64RKvDxRyEarY0jTzrZMa8ebezh2DEZmJJrpVdo=", "narHash": "sha256-GUffLwzawz5WRVfWaWCg78n/HrBJrOG7QadFY6rtV8A=",
"owner": "nix-community", "owner": "nix-community",
"repo": "home-manager", "repo": "home-manager",
"rev": "a46e702093a5c46e192243edbd977d5749e7f294", "rev": "a9953635d7f34e7358d5189751110f87e3ac17da",
"type": "github" "type": "github"
}, },
"original": { "original": {
@@ -458,11 +458,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1732025103, "lastModified": 1732303962,
"narHash": "sha256-qjEI64RKvDxRyEarY0jTzrZMa8ebezh2DEZmJJrpVdo=", "narHash": "sha256-5Umjb5AdtxV5jSJd5jxoCckh5mlg+FBQDsyAilu637g=",
"owner": "nix-community", "owner": "nix-community",
"repo": "home-manager", "repo": "home-manager",
"rev": "a46e702093a5c46e192243edbd977d5749e7f294", "rev": "8cf9cb2ee78aa129e5b8220135a511a2be254c0c",
"type": "github" "type": "github"
}, },
"original": { "original": {
@@ -547,11 +547,11 @@
"xdph": "xdph" "xdph": "xdph"
}, },
"locked": { "locked": {
"lastModified": 1732100541, "lastModified": 1732545731,
"narHash": "sha256-ryxqTo2N5EOwHjrDXCoVFKuG1ZKpoMlRmCjqqUhjQPU=", "narHash": "sha256-1DqEbNPnp294THiHgBPTII6F8Bee92yysPuzB6messY=",
"owner": "hyprwm", "owner": "hyprwm",
"repo": "hyprland", "repo": "hyprland",
"rev": "940f7aa990dbc99815bab8d355999d8277534b17", "rev": "268778823676ef2bbda42050d78946e1fc27fc31",
"type": "github" "type": "github"
}, },
"original": { "original": {
@@ -689,11 +689,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1729890887, "lastModified": 1732281484,
"narHash": "sha256-Vg98Dm6MaglEUNNTRgLF2Lxy02FrU5ntnlwsMkBSTKg=", "narHash": "sha256-0a+oP7iBgAsgMQ2Vz7LlZVfqfvj4W1iuyjHgIs0VEYM=",
"owner": "hyprwm", "owner": "hyprwm",
"repo": "hyprpaper", "repo": "hyprpaper",
"rev": "3f8cc92109209364e9d39789b3631e9ac109987a", "rev": "0b5e350011116f4bfa0d004a7b3b8c8e30425619",
"type": "github" "type": "github"
}, },
"original": { "original": {
@@ -816,11 +816,11 @@
"rust-overlay": "rust-overlay_2" "rust-overlay": "rust-overlay_2"
}, },
"locked": { "locked": {
"lastModified": 1732055037, "lastModified": 1732533143,
"narHash": "sha256-gTl7l/jJReaxhKn1HA6JJp1mfq/eu8XJbeK88NVeGnw=", "narHash": "sha256-m/dBgSxItXrWzTlNannj2loipflOgACfemE/imMICNo=",
"owner": "JakeStanger", "owner": "JakeStanger",
"repo": "ironbar", "repo": "ironbar",
"rev": "230dd8b13b024eb039613c579f940802ea5857e5", "rev": "a181d4e2571b369e619917d4dc592f64bd16ec1b",
"type": "github" "type": "github"
}, },
"original": { "original": {
@@ -921,11 +921,11 @@
"umu": "umu" "umu": "umu"
}, },
"locked": { "locked": {
"lastModified": 1731980711, "lastModified": 1732543374,
"narHash": "sha256-6oOIuAMih3tN1Fjo9cQp1Q5LNe1t3eueA2i0IV1QAVI=", "narHash": "sha256-suhk41NhdsnN3aa7gpsr8KnYJtbaLeZBJMB2vqWbkzA=",
"owner": "fufexan", "owner": "fufexan",
"repo": "nix-gaming", "repo": "nix-gaming",
"rev": "d89390fd1c6e070e03b9e19d48d884612132a14f", "rev": "18b8f0796f3e9dd8b9d9f262a56f2914a0586a22",
"type": "github" "type": "github"
}, },
"original": { "original": {
@@ -1023,11 +1023,11 @@
}, },
"nixpkgs_3": { "nixpkgs_3": {
"locked": { "locked": {
"lastModified": 1731676054, "lastModified": 1732014248,
"narHash": "sha256-OZiZ3m8SCMfh3B6bfGC/Bm4x3qc1m2SVEAlkV6iY7Yg=", "narHash": "sha256-y/MEyuJ5oBWrWAic/14LaIr/u5E0wRVzyYsouYY3W6w=",
"owner": "NixOS", "owner": "NixOS",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "5e4fbfb6b3de1aa2872b76d49fafc942626e2add", "rev": "23e89b7da85c3640bbc2173fe04f4bd114342367",
"type": "github" "type": "github"
}, },
"original": { "original": {
@@ -1116,11 +1116,11 @@
}, },
"nixpkgs_9": { "nixpkgs_9": {
"locked": { "locked": {
"lastModified": 1731676054, "lastModified": 1732014248,
"narHash": "sha256-OZiZ3m8SCMfh3B6bfGC/Bm4x3qc1m2SVEAlkV6iY7Yg=", "narHash": "sha256-y/MEyuJ5oBWrWAic/14LaIr/u5E0wRVzyYsouYY3W6w=",
"owner": "NixOS", "owner": "NixOS",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "5e4fbfb6b3de1aa2872b76d49fafc942626e2add", "rev": "23e89b7da85c3640bbc2173fe04f4bd114342367",
"type": "github" "type": "github"
}, },
"original": { "original": {
@@ -1210,11 +1210,11 @@
"rust-analyzer-src": { "rust-analyzer-src": {
"flake": false, "flake": false,
"locked": { "locked": {
"lastModified": 1732050317, "lastModified": 1732388649,
"narHash": "sha256-G5LUEOC4kvB/Xbkglv0Noi04HnCfryur7dVjzlHkgpI=", "narHash": "sha256-N6zhzSLdGWUZnyRgCRyOy4Nyz8TkekXgXD2ZhCKAjzE=",
"owner": "rust-lang", "owner": "rust-lang",
"repo": "rust-analyzer", "repo": "rust-analyzer",
"rev": "c0bbbb3e5d7d1d1d60308c8270bfd5b250032bb4", "rev": "a2bb0149144e0e6330e60abe4683b4e1a7ab3582",
"type": "github" "type": "github"
}, },
"original": { "original": {
@@ -1408,11 +1408,11 @@
}, },
"locked": { "locked": {
"dir": "packaging/nix", "dir": "packaging/nix",
"lastModified": 1731893168, "lastModified": 1732483970,
"narHash": "sha256-nijDZdYKT9UWF+kMgM3lq1OkbFKvDs6JXKRXI8cpprE=", "narHash": "sha256-WO+oXVHr0se8P2Ay8T6av+B5j0+73VX+emON0aGSq+Y=",
"ref": "refs/heads/main", "ref": "refs/heads/main",
"rev": "9f580b251ca66950bb436c09afd2b9585eed74ba", "rev": "5f7599fa7afc8990e48dd5ff9631f109117d3d26",
"revCount": 840, "revCount": 854,
"submodules": true, "submodules": true,
"type": "git", "type": "git",
"url": "https://github.com/Open-Wine-Components/umu-launcher/" "url": "https://github.com/Open-Wine-Components/umu-launcher/"

View File

@@ -37,6 +37,10 @@ in {
"center, class:^(nwg-look)$" "center, class:^(nwg-look)$"
"float, class:^(nwg-look)$" "float, class:^(nwg-look)$"
# === OCULANTE SETTINGS ===
"center, class:^(oculante)$"
"float, class:^(oculante)$"
# === PAVUCONTROL SETTINGS === # === PAVUCONTROL SETTINGS ===
"move 100%-w-20 40, class:^(pavucontrol)$" "move 100%-w-20 40, class:^(pavucontrol)$"
"size 741 585, class:^(pavucontrol)$" "size 741 585, class:^(pavucontrol)$"
@@ -54,7 +58,6 @@ in {
"float, class:^(polkit-gnome-authentication-agent-1)$" "float, class:^(polkit-gnome-authentication-agent-1)$"
"float, class:^(org.gnome.Calculator)$" "float, class:^(org.gnome.Calculator)$"
"float, class:^(Lxappearance)$" "float, class:^(Lxappearance)$"
"float, class:^(imv)$"
"float, class:^(com.github.hluk.copyq)$" "float, class:^(com.github.hluk.copyq)$"
"float, class:^(blueman-manager)$" "float, class:^(blueman-manager)$"
"float, class:^(floatranger)$" "float, class:^(floatranger)$"

View File

@@ -17,278 +17,278 @@ in {
config = mkIf cfg.enable { config = mkIf cfg.enable {
programs.ironbar = { programs.ironbar = {
enable = true; enable = true;
config = let # config = let
workspaces = { # workspaces = {
type = "workspaces"; # type = "workspaces";
all_monitors = false; # all_monitors = false;
favorites = map (n: builtins.toString n) [1 2 3 4 5 6 7 8 9 10]; # favorites = map (n: builtins.toString n) [1 2 3 4 5 6 7 8 9 10];
hidden = ["special"]; # hidden = ["special"];
name_map = let # name_map = let
workspaces = lib.genAttrs (map (n: builtins.toString n) [1 2 3 4 5 6 7 8 9 10]); # workspaces = lib.genAttrs (map (n: builtins.toString n) [1 2 3 4 5 6 7 8 9 10]);
mkColorfull = text: color: "${text}"; # "<span foreground=\"${color}\">${text}</span>"; # mkColorfull = text: color: "${text}"; # "<span foreground=\"${color}\">${text}</span>";
dotify = _: mkColorfull ""; # dotify = _: mkColorfull "●";
c = builtins.mapAttrs dotify (import ./colors.nix).base; # c = builtins.mapAttrs dotify (import ./colors.nix).base;
in # in
workspaces ( # workspaces (
i: # i:
if i == "1" # if i == "1"
then c.red # then c.red
else if i == "2" # else if i == "2"
then c.maroon # then c.maroon
else if i == "3" # else if i == "3"
then c.peach # then c.peach
else if i == "4" # else if i == "4"
then c.yellow # then c.yellow
else if i == "5" # else if i == "5"
then c.green # then c.green
else if i == "6" # else if i == "6"
then c.teal # then c.teal
else if i == "7" # else if i == "7"
then c.sky # then c.sky
else if i == "8" # else if i == "8"
then c.sapphire # then c.sapphire
else if i == "9" # else if i == "9"
then c.blue # then c.blue
else if i == "10" # else if i == "10"
then c.lavender # then c.lavender
else c.mauve # else c.mauve
); # );
}; # };
music = let # music = let
state_path = "${config.xdg.stateHome}/music-ctrls-state"; # state_path = "${config.xdg.stateHome}/music-ctrls-state";
show-script = pkgs.writeShellApplication { # show-script = pkgs.writeShellApplication {
name = "mctrls-shower"; # name = "mctrls-shower";
runtimeInputs = with pkgs; [coreutils]; # runtimeInputs = with pkgs; [coreutils];
text = '' # text = ''
${pkgs.coreutils}/bin/touch ${state_path} # ${pkgs.coreutils}/bin/touch ${state_path}
out=$(< ${state_path}) # out=$(< ${state_path})
if [[ $out != "show" ]]; then # if [[ $out != "show" ]]; then
echo -ne "show" > ${state_path} # echo -ne "show" > ${state_path}
fi # fi
''; # '';
}; # };
hide-script = pkgs.writeShellApplication { # hide-script = pkgs.writeShellApplication {
name = "mctrls-hider"; # name = "mctrls-hider";
runtimeInputs = with pkgs; [coreutils]; # runtimeInputs = with pkgs; [coreutils];
text = '' # text = ''
${pkgs.coreutils}/bin/touch ${state_path} # ${pkgs.coreutils}/bin/touch ${state_path}
out=$(< ${state_path}) # out=$(< ${state_path})
if [[ $out == "show" ]]; then # if [[ $out == "show" ]]; then
echo -ne "" >${state_path} # echo -ne "" >${state_path}
fi # fi
''; # '';
}; # };
in { # in {
type = "music"; # type = "music";
player_type = "mpris"; # player_type = "mpris";
format = "{title}"; # format = "{title}";
truncate = "end"; # truncate = "end";
#icons.play = "icon:media-playback-start"; # #icons.play = "icon:media-playback-start";
#icons.pause = "icon:media-playback-pause"; # #icons.pause = "icon:media-playback-pause";
music_dir = config.xdg.userDirs.music; # music_dir = config.xdg.userDirs.music;
show_status_icon = false; # show_status_icon = false;
on_mouse_enter.cmd = "${show-script}/bin/mctrls-shower"; # on_mouse_enter.cmd = "${show-script}/bin/mctrls-shower";
on_mouse_exit.cmd = "${hide-script}/bin/mctrls-hider"; # on_mouse_exit.cmd = "${hide-script}/bin/mctrls-hider";
#icon_size = 64; # #icon_size = 64;
#cover_image_size = 256; # #cover_image_size = 256;
}; # };
music_img = rec { # music_img = rec {
type = "custom"; # type = "custom";
name = "music-img"; # name = "music-img";
class = name; # class = name;
on_mouse_enter = music.on_mouse_enter; # on_mouse_enter = music.on_mouse_enter;
on_mouse_exit = music.on_mouse_exit; # on_mouse_exit = music.on_mouse_exit;
bar = [ # bar = [
{
type = "image";
class = name + "-img";
#src = ''{{poll:5000:${pkgs.playerctl}/bin/playerctl metadata mpris:artUrl}}'';
src = ''{{watch:${pkgs.playerctl}/bin/playerctl -F metadata mpris:artUrl}}'';
}
];
};
music_inline_controls = let
check-script = pkgs.writeShellApplication {
name = "mctrls-checker";
runtimeInputs = with pkgs; [coreutils];
text = let
state_path = "${config.xdg.stateHome}/music-ctrls-state";
in ''
${pkgs.coreutils}/bin/touch ${state_path}
if [[ $(< ${state_path}) == "show" ]]; then
exit 0
else
exit 1
fi
'';
};
play-icon-script = pkgs.writeShellApplication {
name = "pp-icon";
runtimeInputs = [pkgs.playerctl];
text = ''
if [[ $(${pkgs.playerctl}/bin/playerctl status) == "Playing" ]]; then
echo ""
else
echo ""
fi
'';
};
in rec {
type = "custom";
name = "music-ctrls";
class = name;
show_if = {
mode = "poll";
interval = 1000;
cmd = "${check-script}/bin/mctrls-checker";
};
on_mouse_enter = music.on_mouse_enter;
on_mouse_exit = music.on_mouse_exit;
transition_type = "slide_start";
bar = let
pctl = cmd:
"!"
+ (pkgs.writeShellApplication {
name = "iron-${cmd}";
runtimeInputs = [pkgs.playerctl];
text = "${pkgs.playerctl}/bin/playerctl ${cmd}";
})
+ "/bin/iron-${cmd}";
in [
{
type = "button";
class = name + "-prev";
label = "󰒮";
on_click = pctl "previous";
}
{
type = "button";
class = name + "-pp";
label = "{{poll:100:${play-icon-script}/bin/pp-icon}}";
on_click = pctl "play-pause";
}
{
type = "button";
class = name + "-next";
label = "󰒭";
on_click = pctl "next";
}
];
};
sys_info = {
type = "sys_info";
format = [" {cpu_percent}%" " {memory_percent}%"];
};
battery = {
type = "upower";
format = "{percentage}%";
};
tray = {type = "tray";};
clock = {
type = "clock";
format = "%l:%M %P";
};
cava = {
type = "script";
mode = "watch";
cmd =
(pkgs.writeShellApplication {
name = "cava";
runtimeInputs = [pkgs.cava pkgs.gnused];
text = ''
printf "[general]\nframerate=160\nbars = 7\n[output]\nmethod = raw\nraw_target = /dev/stdout\ndata_format = ascii\nascii_max_range = 7\n" | cava -p /dev/stdin | sed -u 's/;//g;s/0//g;s/1//g;s/2//g;s/3//g;s/4//g;s/5//g;s/6//g;s/7//g; '
'';
})
+ "/bin/cava";
};
dash = rec {
type = "custom";
name = "nix-launcher";
class = name;
bar = [
{
type = "button";
label = "󰇙 ";
on_click = "popup:toggle";
}
];
popup = [
{
type = "box";
orientation = "v";
widgets = [
# { # {
# type = "label"; # type = "image";
# label = "{{${pkgs.macchina}/bin/macchina}}"; # class = name + "-img";
#} # #src = ''{{poll:5000:${pkgs.playerctl}/bin/playerctl metadata mpris:artUrl}}'';
{ # src = ''{{watch:${pkgs.playerctl}/bin/playerctl -F metadata mpris:artUrl}}'';
type = "box";
widgets = [
{
type = "button";
label = "󱗼 Applications";
on_click = "!tuirun-toggle";
}
{
type = "button";
label = "󰕾 Sound";
on_click = "!${pkgs.pavucontrol}/bin/pavucontrol";
}
{
type = "button";
label = "󰐥 Power";
on_click = "!${pkgs.nwg-bar}/bin/nwg-bar";
}
];
}
];
}
];
};
left = [
#focused
dash
workspaces
];
right = [
tray
sys_info
cava
battery
clock
];
center = [
music_img
music
music_inline_controls
];
in {
anchor_to_edges = true;
position = "top";
start = left;
end = right;
center = center;
#center = [
# {
# type = "label";
# label = "random num: {{500:playerctl metadata mpris:artUrl}}";
# } # }
# ]; # ];
height = 32; # };
icon_theme = config.gtk.iconTheme.name; # music_inline_controls = let
}; # check-script = pkgs.writeShellApplication {
style = let # name = "mctrls-checker";
built = pkgs.callPackage ./scss-pkg.nix { # runtimeInputs = with pkgs; [coreutils];
src = ./styles; # text = let
entry = "main"; # state_path = "${config.xdg.stateHome}/music-ctrls-state";
}; # in ''
in '' # ${pkgs.coreutils}/bin/touch ${state_path}
@import url("${built}/out.css"); # if [[ $(< ${state_path}) == "show" ]]; then
''; # exit 0
# else
# exit 1
# fi
# '';
# };
# play-icon-script = pkgs.writeShellApplication {
# name = "pp-icon";
# runtimeInputs = [pkgs.playerctl];
# text = ''
# if [[ $(${pkgs.playerctl}/bin/playerctl status) == "Playing" ]]; then
# echo ""
# else
# echo ""
# fi
# '';
# };
# in rec {
# type = "custom";
# name = "music-ctrls";
# class = name;
# show_if = {
# mode = "poll";
# interval = 1000;
# cmd = "${check-script}/bin/mctrls-checker";
# };
# on_mouse_enter = music.on_mouse_enter;
# on_mouse_exit = music.on_mouse_exit;
# transition_type = "slide_start";
# bar = let
# pctl = cmd:
# "!"
# + (pkgs.writeShellApplication {
# name = "iron-${cmd}";
# runtimeInputs = [pkgs.playerctl];
# text = "${pkgs.playerctl}/bin/playerctl ${cmd}";
# })
# + "/bin/iron-${cmd}";
# in [
# {
# type = "button";
# class = name + "-prev";
# label = "󰒮";
# on_click = pctl "previous";
# }
# {
# type = "button";
# class = name + "-pp";
# label = "{{poll:100:${play-icon-script}/bin/pp-icon}}";
# on_click = pctl "play-pause";
# }
# {
# type = "button";
# class = name + "-next";
# label = "󰒭";
# on_click = pctl "next";
# }
# ];
# };
# sys_info = {
# type = "sys_info";
# format = [" {cpu_percent}%" " {memory_percent}%"];
# };
# battery = {
# type = "upower";
# format = "{percentage}%";
# };
# tray = {type = "tray";};
# clock = {
# type = "clock";
# format = "%l:%M %P";
# };
# cava = {
# type = "script";
# mode = "watch";
# cmd =
# (pkgs.writeShellApplication {
# name = "cava";
# runtimeInputs = [pkgs.cava pkgs.gnused];
# text = ''
# printf "[general]\nframerate=160\nbars = 7\n[output]\nmethod = raw\nraw_target = /dev/stdout\ndata_format = ascii\nascii_max_range = 7\n" | cava -p /dev/stdin | sed -u 's/;//g;s/0/▁/g;s/1/▂/g;s/2/▃/g;s/3/▄/g;s/4/▅/g;s/5/▆/g;s/6/▇/g;s/7/█/g; '
# '';
# })
# + "/bin/cava";
# };
# dash = rec {
# type = "custom";
# name = "nix-launcher";
# class = name;
# bar = [
# {
# type = "button";
# label = "󰇙 ";
# on_click = "popup:toggle";
# }
# ];
# popup = [
# {
# type = "box";
# orientation = "v";
# widgets = [
# #{
# # type = "label";
# # label = "{{${pkgs.macchina}/bin/macchina}}";
# #}
# {
# type = "box";
# widgets = [
# {
# type = "button";
# label = "󱗼 Applications";
# on_click = "!tuirun-toggle";
# }
# {
# type = "button";
# label = "󰕾 Sound";
# on_click = "!${pkgs.pavucontrol}/bin/pavucontrol";
# }
# {
# type = "button";
# label = "󰐥 Power";
# on_click = "!${pkgs.nwg-bar}/bin/nwg-bar";
# }
# ];
# }
# ];
# }
# ];
# };
# left = [
# #focused
# dash
# workspaces
# ];
# right = [
# tray
# sys_info
# cava
# battery
# clock
# ];
# center = [
# music_img
# music
# music_inline_controls
# ];
# in {
# anchor_to_edges = true;
# position = "top";
# start = left;
# end = right;
# center = center;
# #center = [
# # {
# # type = "label";
# # label = "random num: {{500:playerctl metadata mpris:artUrl}}";
# # }
# #];
# height = 32;
# icon_theme = config.gtk.iconTheme.name;
# };
# style = let
# built = pkgs.callPackage ./scss-pkg.nix {
# src = ./styles;
# entry = "main";
# };
# in ''
# @import url("${built}/out.css");
# '';
}; };
}; };
} }

View File

@@ -50,6 +50,7 @@ in {
libnotify libnotify
pamixer # TUI sound control pamixer # TUI sound control
ripgrep ripgrep
oculante
file file
fd fd
gnused gnused

View File

@@ -43,18 +43,18 @@ in {
"application/x-extension-xht" = browser; "application/x-extension-xht" = browser;
"application/xhtml+xml" = browser; "application/xhtml+xml" = browser;
"application/json" = browser; "application/json" = browser;
"application/pdf" = "org.pwmt.zathura.desktop"; "application/pdf" = "org.pwmt.zathura-pdf-mupdf.desktop";
"inode/directory" = "thunar.desktop"; "inode/directory" = "thunar.desktop";
"image/apng" = "feh.desktop"; "image/apng" = "oculante.desktop";
"image/avif" = "feh.desktop"; "image/avif" = "oculante.desktop";
"image/bmp" = "feh.desktop"; "image/bmp" = "oculante.desktop";
"image/gif" = "feh.desktop"; "image/gif" = "oculante.desktop";
"image/jpeg" = "feh.desktop"; "image/jpeg" = "oculante.desktop";
"image/png" = "feh.desktop"; "image/png" = "oculante.desktop";
"image/svg+xml" = "feh.desktop"; "image/svg+xml" = "oculante.desktop";
"image/tiff" = "feh.desktop"; "image/tiff" = "oculante.desktop";
"image/webp" = "feh.desktop"; "image/webp" = "oculante.desktop";
"video/H264" = ["mpv.desktop" "vlc.desktop"]; "video/H264" = ["mpv.desktop" "vlc.desktop"];
"video/x-msvideo" = ["mpv.desktop" "vlc.desktop"]; "video/x-msvideo" = ["mpv.desktop" "vlc.desktop"];

View File

@@ -21,6 +21,7 @@
gnumake # GNU Make gnumake # GNU Make
pkg-config # Manages library paths during compilation pkg-config # Manages library paths during compilation
perl # Scripting language, sometimes needed during builds perl # Scripting language, sometimes needed during builds
gtk-layer-shell
# Version control # Version control
git # Version control system git # Version control system