kde
This commit is contained in:
@@ -23,8 +23,8 @@
|
|||||||
"format": "{pretty-name}"
|
"format": "{pretty-name}"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"type": "kernel",
|
"type": "kernel"
|
||||||
"format": "Linux 6.17.0-2-cachyos-ralsei-rt-bore-lto"
|
// "format": "Linux 6.17.0-2-cachyos-ralsei-rt-bore-lto"
|
||||||
},
|
},
|
||||||
// "packages",
|
// "packages",
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"label" : "lock",
|
"label" : "lock",
|
||||||
"action" : "loginctl lock-session",
|
"action" : "hyprctl dispatch exec hyprlock",
|
||||||
"text" : "Lock",
|
"text" : "Lock",
|
||||||
"keybind" : "l"
|
"keybind" : "l"
|
||||||
}
|
}
|
||||||
@@ -12,7 +12,7 @@
|
|||||||
}
|
}
|
||||||
{
|
{
|
||||||
"label" : "logout",
|
"label" : "logout",
|
||||||
"action" : "loginctl terminate-user $USER",
|
"action" : "pkill -9 -u ralsei",
|
||||||
"text" : "Logout",
|
"text" : "Logout",
|
||||||
"keybind" : "e"
|
"keybind" : "e"
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -36,36 +36,36 @@ button:hover {
|
|||||||
|
|
||||||
#lock {
|
#lock {
|
||||||
background-image: image(
|
background-image: image(
|
||||||
url("~/config/config/wlogout/assets/lock.png")
|
url("/home/ralsei/config/config/wlogout/assets/lock.png")
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
#logout {
|
#logout {
|
||||||
background-image: image(
|
background-image: image(
|
||||||
url("~/config/config/wlogout/assets/logout.png")
|
url("/home/ralsei/config/config/wlogout/assets/logout.png")
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
#suspend {
|
#suspend {
|
||||||
background-image: image(
|
background-image: image(
|
||||||
url("~/config/config/wlogout/assets/suspend.png")
|
url("/home/ralsei/config/config/wlogout/assets/suspend.png")
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
#hibernate {
|
#hibernate {
|
||||||
background-image: image(
|
background-image: image(
|
||||||
url("~/config/config/wlogout/assets/hibernate.png")
|
url("/home/ralsei/config/config/wlogout/assets/hibernate.png")
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
#shutdown {
|
#shutdown {
|
||||||
background-image: image(
|
background-image: image(
|
||||||
url("~/config/config/wlogout/assets/shutdown.png")
|
url("/home/ralsei/config/config/wlogout/assets/shutdown.png")
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
#reboot {
|
#reboot {
|
||||||
background-image: image(
|
background-image: image(
|
||||||
url("~/config/config/wlogout/assets/reboot.png")
|
url("/home/ralsei/config/config/wlogout/assets/reboot.png")
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -3,14 +3,30 @@ import { albumStuffF, fetchAlbumStuff } from "../lib/CiderV2Playing"
|
|||||||
import { execFile } from "child_process";
|
import { execFile } from "child_process";
|
||||||
import { rmSync } from "fs";
|
import { rmSync } from "fs";
|
||||||
|
|
||||||
|
const isKDE = process.env.XDG_CURRENT_DESKTOP === "KDE" ? true : false;
|
||||||
|
|
||||||
let x: albumStuffF | any = false;
|
let x: albumStuffF | any = false;
|
||||||
try {
|
try {
|
||||||
x = await fetchAlbumStuff() as albumStuffF
|
x = await fetchAlbumStuff() as albumStuffF
|
||||||
} catch { }
|
} catch { }
|
||||||
|
|
||||||
|
|
||||||
|
let releaseMode = process.argv[3] === "rel";
|
||||||
|
// console.log(process.argv[3],isKDE,releaseMode);
|
||||||
|
|
||||||
function notifyWithImage(song: string, artUrl: string, artist: string, album: string) {
|
function notifyWithImage(song: string, artUrl: string, artist: string, album: string) {
|
||||||
|
if (isKDE === true) {
|
||||||
|
execFile("notify-send", [
|
||||||
|
"-t", (releaseMode ? "10" : "2000"),
|
||||||
|
"-a", "Now Playing",
|
||||||
|
"-i", artUrl,
|
||||||
|
song,
|
||||||
|
`${artist}`//<br/>${album !== "" ? `<small>${album}</small>` : ""}`
|
||||||
|
]);
|
||||||
|
return
|
||||||
|
}
|
||||||
execFile("dunstify", [
|
execFile("dunstify", [
|
||||||
"-t", (process.argv[3] === "rel" ? "1" : "2000"),
|
"-t", (releaseMode ? "1" : "2000"),
|
||||||
"-r", "67676767",
|
"-r", "67676767",
|
||||||
"-a", "ocbwoy3-whatsplaying",
|
"-a", "ocbwoy3-whatsplaying",
|
||||||
"-I", artUrl,
|
"-I", artUrl,
|
||||||
@@ -19,11 +35,18 @@ function notifyWithImage(song: string, artUrl: string, artist: string, album: st
|
|||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
|
|
||||||
console.log(process.argv[3])
|
|
||||||
|
|
||||||
function notifyBasic(song: string, artist: string, album: string) {
|
function notifyBasic(song: string, artist: string, album: string) {
|
||||||
|
if (isKDE === true) {
|
||||||
|
execFile("notify-send", [
|
||||||
|
"-t", (releaseMode ? "1" : "2000"),
|
||||||
|
"-a", "Now Playing",
|
||||||
|
song,
|
||||||
|
`${artist}`//<br/>${album !== "" ? `<small>${album}</small>` : ""}`
|
||||||
|
]);
|
||||||
|
return
|
||||||
|
}
|
||||||
execFile("dunstify", [
|
execFile("dunstify", [
|
||||||
"-t", (process.argv[3] === "rel" ? "1" : "2000"),
|
"-t", (releaseMode ? "1" : "2000"),
|
||||||
"-r", "67676767",
|
"-r", "67676767",
|
||||||
"-a", "ocbwoy3-whatsplaying",
|
"-a", "ocbwoy3-whatsplaying",
|
||||||
song,
|
song,
|
||||||
|
|||||||
Reference in New Issue
Block a user