File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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+ }
Original file line number Diff line number Diff line change 1+ { lib , ... } :
2+ {
3+ name = "swayimg" ;
4+ homepage = "https://github.com/artemsen/swayimg" ;
5+ maintainers = [ lib . maintainers . sand4rt ] ;
6+ }
Original file line number Diff line number Diff line change 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" ;
You can’t perform that action at this time.
0 commit comments