From 8a33eb523ffb8e5fcd6b6149ecb1b2c0193032ff Mon Sep 17 00:00:00 2001 From: Lillian-Violet Date: Sun, 8 Dec 2024 22:18:58 +0100 Subject: [PATCH] fix the fonts --- home-manager/kde-connect-commands.json | 46 ++++++++++++++++++++++++++ home-manager/shared/default.nix | 1 + nixos/shared/default.nix | 10 ++++-- 3 files changed, 55 insertions(+), 2 deletions(-) create mode 100644 home-manager/kde-connect-commands.json diff --git a/home-manager/kde-connect-commands.json b/home-manager/kde-connect-commands.json new file mode 100644 index 0000000..e69e236 --- /dev/null +++ b/home-manager/kde-connect-commands.json @@ -0,0 +1,46 @@ +[ + { + "command": "systemctl poweroff", + "name": "shutdown" + }, + { + "command": "systemctl reboot", + "name": "reboot" + }, + { + "command": "systemctl suspend", + "name": "suspend" + }, + { + "command": "systemctl hibernate", + "name": "hibernate" + }, + { + "command": "loginctl lock-session", + "name": "lock" + }, + { + "command": "loginctl unlock-session", + "name": "unlock" + }, + { + "command": "qdbus org.kde.kglobalaccel /component/kmix invokeShortcut \"mute\"", + "name": "mute" + }, + { + "command": "qdbus org.kde.kglobalaccel /component/kmix invokeShortcut \"mic_mute\"", + "name": "mute mic" + }, + { + "command": "file=/tmp/$(hostname)_$(date \"+%Y%m%d_%H%M%S\").png; spectacle -bo \"${file}\" && while ! [ -f \"${file}\" ]; do sleep 0.5; done && kdeconnect-cli -d $(kdeconnect-cli -a --id-only) --share \"${file}\"", + "name": "screenshot to phone" + }, + { + "command": "file=\"$HOME/Images/WebcamImage_$(date \"+%Y%m%d_%H%M%S\").jpg\"; ffmpeg -f video4linux2 -s 1280x720 -i /dev/video0 -ss 0:0:2 -frames 1 \"${file}\" && kdeconnect-cli -d $(kdeconnect-cli -a --id-only) --share \"${file}\"", + "name": "webcam to phone" + }, + { + "command": "", + "name": "" + } +] diff --git a/home-manager/shared/default.nix b/home-manager/shared/default.nix index 239a06a..5ccdf6f 100644 --- a/home-manager/shared/default.nix +++ b/home-manager/shared/default.nix @@ -36,6 +36,7 @@ _7zz = pkgs._7zz.override {useUasm = true;}; }; }; + stylix.enable = true; # stylix = { # enable = true; # autoEnable = true; diff --git a/nixos/shared/default.nix b/nixos/shared/default.nix index 2e16175..7d4e7a6 100644 --- a/nixos/shared/default.nix +++ b/nixos/shared/default.nix @@ -107,8 +107,8 @@ }; monospace = { - package = pkgs.nerd-fonts.fira-mono; - name = "Fira Code nerd Font Mono"; + package = pkgs.dejavu_fonts; + name = "DejaVu Sans Mono"; }; sansSerif = { @@ -123,6 +123,12 @@ }; }; + fonts.packages = [ + pkgs.dejavu_fonts + pkgs.noto-fonts + pkgs.nerd-fonts.fira-mono + ]; + # Enable completion of system packages by zsh environment.pathsToLink = ["/share/zsh"];