Skip to content

Commit ec12ab5

Browse files
committed
feat: initial swayimg
1 parent b5072c5 commit ec12ab5

3 files changed

Lines changed: 56 additions & 0 deletions

File tree

modules/swayimg/hm.nix

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
{
2+
lib,
3+
config,
4+
mkTarget,
5+
...
6+
}:
7+
mkTarget {
8+
name = "swayimg";
9+
humanName = "swayimg";
10+
11+
configElements =
12+
{ colors, opacity }:
13+
14+
with colors.withHashtag;
15+
let
16+
swayimgOpacity = lib.toHexString (
17+
((builtins.floor (opacity.applications * 100 + 0.5)) * 255) / 100
18+
);
19+
in
20+
{
21+
programs.swayimg.settings = {
22+
viewer = {
23+
window = base00 + swayimgOpacity;
24+
};
25+
slideshow = {
26+
transparency = "#000000ff";
27+
};
28+
gallery = {
29+
window = base00 + swayimgOpacity;
30+
background = "#00000000";
31+
select = base0D;
32+
border = base0D;
33+
shadow = "#00000000";
34+
};
35+
font = with config.stylix.fonts; {
36+
name = monospace.name;
37+
size = sizes.applications;
38+
color = base05;
39+
shadow = "#000000d0";
40+
background = "#00000000";
41+
};
42+
};
43+
};
44+
}

modules/swayimg/meta.nix

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{ lib, ... }:
2+
{
3+
name = "swayimg";
4+
homepage = "https://github.com/artemsen/swayimg";
5+
maintainers = [ lib.maintainers.sand4rt ];
6+
}

stylix/maintainers.nix

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,12 @@
6565
github = "osipog";
6666
githubId = 87434959;
6767
};
68+
sand4rt = {
69+
email = "17591696+sand4rt@users.noreply.github.com";
70+
name = "Sander";
71+
github = "sand4rt";
72+
githubId = 17591696;
73+
};
6874
skiletro = {
6975
email = "git@skilet.ro";
7076
name = "jamie";

0 commit comments

Comments
 (0)