1
0
mirror of https://github.com/XNM1/linux-nixos-hyprland-config-dotfiles.git synced 2025-09-15 09:45:58 +03:00

changed boot loglevel from 4 to 3 & updated check_webcam.fish script

This commit is contained in:
xnm
2024-05-12 18:14:03 +03:00
parent bd38497a9b
commit 42e4cfb3a6
2 changed files with 9 additions and 2 deletions

View File

@@ -1,5 +1,11 @@
function check_webcam
if test (lsof /dev/video0 | count) -gt 3
echo "{\"text\":\"󰖠\", \"tooltip\":\"webcam is used\", \"alt\":\"Webcam\"}"
set process_pids (fuser /dev/video0 | awk '{print $2}' | sort -u)
if test -n "$process_pids"
set processes ""
for process_pid in $process_pids
set process_name (ps -q $process_pid -o comm=)
set processes "$processes\n<span color='#eed49f'>$process_name($process_pid)</span>"
end
echo "{\"text\":\"󰖠\", \"tooltip\":\"webcam is used by: $processes\", \"alt\":\"Webcam\"}"
end
end

View File

@@ -7,6 +7,7 @@
boot.loader.timeout = 2;
boot.initrd.enable = true;
boot.initrd.systemd.enable = true;
boot.consoleLogLevel = 3;
boot.plymouth = {
enable = true;
font = "${pkgs.jetbrains-mono}/share/fonts/truetype/JetBrainsMono-Regular.ttf";