forked from Frost-Phoenix/nixos-config
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathswayosd.nix
76 lines (68 loc) · 1.9 KB
/
swayosd.nix
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
{ lib, pkgs, ...}:
{
home.packages = with pkgs; [ swayosd ];
wayland.windowManager.hyprland = {
settings = {
exec-once = [
"swayosd-server"
];
bind = [
",XF86AudioMute, exec, swayosd-client --output-volume mute-toggle"
];
# binds active in lockscreen
bindl = [
",XF86MonBrightnessUp, exec, swayosd-client --brightness raise 5%+"
",XF86MonBrightnessDown, exec, swayosd-client --brightness lower 5%-"
"$mainMod, XF86MonBrightnessUp, exec, brightnessctl set 100%"
"$mainMod, XF86MonBrightnessDown, exec, brightnessctl set 0%"
];
bindle = [
",XF86AudioRaiseVolume, exec, swayosd-client --output-volume +2 --max-volume=100"
",XF86AudioLowerVolume, exec, swayosd-client --output-volume -2"
"$mainMod, f11, exec, swayosd-client --output-volume +2 --max-volume=100"
"$mainMod, f12, exec, swayosd-client --output-volume -2"
];
bindr = [
"CAPS,Caps_Lock,exec,swayosd-client --caps-lock"
",Scroll_Lock,exec,swayosd-client --scroll-lock"
",Num_Lock,exec,swayosd-client --num-lock"
];
};
};
xdg.configFile."swayosd/style.css".text = ''
window {
padding: 0px 10px;
border-radius: 30px;
border: 10px;
background: alpha(#111111, 0.99);
}
#container {
margin: 15px;
}
image, label {
color: #FBF1C7;
}
progressbar:disabled,
image:disabled {
opacity: 0.95;
}
progressbar {
min-height: 6px;
border-radius: 999px;
background: transparent;
border: none;
}
trough {
min-height: inherit;
border-radius: inherit;
border: none;
background: alpha(#CCCCCC, 0.1);
}
progress {
min-height: inherit;
border-radius: inherit;
border: none;
background: #FBF1C7;
}
'';
}