tangled
alpha
login
or
join now
kris.darkworld.download
/
nix
1
fork
atom
My NixOS configurations + dotfiles
1
fork
atom
overview
issues
pulls
pipelines
kde
kris.darkworld.download
3 months ago
891ad282
1a5368d4
verified
This commit was signed with the committer's
known signature
.
kris.darkworld.download
SSH Key Fingerprint:
SHA256:4iiUkypaBzJPnEeVlazWCFBrJncWXreVhtJPB4DlswE=
+37
-14
4 changed files
expand all
collapse all
unified
split
config
fastfetch
config.jsonc
wlogout
layout
style.css
scripts
bin
actWithMusic.ts
+2
-2
config/fastfetch/config.jsonc
···
23
23
"format": "{pretty-name}"
24
24
},
25
25
{
26
26
-
"type": "kernel",
27
27
-
"format": "Linux 6.17.0-2-cachyos-ralsei-rt-bore-lto"
26
26
+
"type": "kernel"
27
27
+
// "format": "Linux 6.17.0-2-cachyos-ralsei-rt-bore-lto"
28
28
},
29
29
// "packages",
30
30
+2
-2
config/wlogout/layout
···
1
1
{
2
2
"label" : "lock",
3
3
-
"action" : "loginctl lock-session",
3
3
+
"action" : "hyprctl dispatch exec hyprlock",
4
4
"text" : "Lock",
5
5
"keybind" : "l"
6
6
}
···
12
12
}
13
13
{
14
14
"label" : "logout",
15
15
-
"action" : "loginctl terminate-user $USER",
15
15
+
"action" : "pkill -9 -u ralsei",
16
16
"text" : "Logout",
17
17
"keybind" : "e"
18
18
}
+6
-6
config/wlogout/style.css
···
36
36
37
37
#lock {
38
38
background-image: image(
39
39
-
url("~/config/config/wlogout/assets/lock.png")
39
39
+
url("/home/ralsei/config/config/wlogout/assets/lock.png")
40
40
);
41
41
}
42
42
43
43
#logout {
44
44
background-image: image(
45
45
-
url("~/config/config/wlogout/assets/logout.png")
45
45
+
url("/home/ralsei/config/config/wlogout/assets/logout.png")
46
46
);
47
47
}
48
48
49
49
#suspend {
50
50
background-image: image(
51
51
-
url("~/config/config/wlogout/assets/suspend.png")
51
51
+
url("/home/ralsei/config/config/wlogout/assets/suspend.png")
52
52
);
53
53
}
54
54
55
55
#hibernate {
56
56
background-image: image(
57
57
-
url("~/config/config/wlogout/assets/hibernate.png")
57
57
+
url("/home/ralsei/config/config/wlogout/assets/hibernate.png")
58
58
);
59
59
}
60
60
61
61
#shutdown {
62
62
background-image: image(
63
63
-
url("~/config/config/wlogout/assets/shutdown.png")
63
63
+
url("/home/ralsei/config/config/wlogout/assets/shutdown.png")
64
64
);
65
65
}
66
66
67
67
#reboot {
68
68
background-image: image(
69
69
-
url("~/config/config/wlogout/assets/reboot.png")
69
69
+
url("/home/ralsei/config/config/wlogout/assets/reboot.png")
70
70
);
71
71
}
+27
-4
scripts/bin/actWithMusic.ts
···
3
3
import { execFile } from "child_process";
4
4
import { rmSync } from "fs";
5
5
6
6
+
const isKDE = process.env.XDG_CURRENT_DESKTOP === "KDE" ? true : false;
7
7
+
6
8
let x: albumStuffF | any = false;
7
9
try {
8
10
x = await fetchAlbumStuff() as albumStuffF
9
11
} catch { }
10
12
13
13
+
14
14
+
let releaseMode = process.argv[3] === "rel";
15
15
+
// console.log(process.argv[3],isKDE,releaseMode);
16
16
+
11
17
function notifyWithImage(song: string, artUrl: string, artist: string, album: string) {
18
18
+
if (isKDE === true) {
19
19
+
execFile("notify-send", [
20
20
+
"-t", (releaseMode ? "10" : "2000"),
21
21
+
"-a", "Now Playing",
22
22
+
"-i", artUrl,
23
23
+
song,
24
24
+
`${artist}`//<br/>${album !== "" ? `<small>${album}</small>` : ""}`
25
25
+
]);
26
26
+
return
27
27
+
}
12
28
execFile("dunstify", [
13
13
-
"-t", (process.argv[3] === "rel" ? "1" : "2000"),
29
29
+
"-t", (releaseMode ? "1" : "2000"),
14
30
"-r", "67676767",
15
31
"-a", "ocbwoy3-whatsplaying",
16
32
"-I", artUrl,
···
19
35
]);
20
36
}
21
37
22
22
-
console.log(process.argv[3])
23
23
-
24
38
function notifyBasic(song: string, artist: string, album: string) {
39
39
+
if (isKDE === true) {
40
40
+
execFile("notify-send", [
41
41
+
"-t", (releaseMode ? "1" : "2000"),
42
42
+
"-a", "Now Playing",
43
43
+
song,
44
44
+
`${artist}`//<br/>${album !== "" ? `<small>${album}</small>` : ""}`
45
45
+
]);
46
46
+
return
47
47
+
}
25
48
execFile("dunstify", [
26
26
-
"-t", (process.argv[3] === "rel" ? "1" : "2000"),
49
49
+
"-t", (releaseMode ? "1" : "2000"),
27
50
"-r", "67676767",
28
51
"-a", "ocbwoy3-whatsplaying",
29
52
song,