{ config, pkgs, ... }: { programs.plasma = { enable = true; panels = [ { location = "left"; alignment = "center"; floating = true; hiding = "autohide"; height = 32; lengthMode = "fit"; opacity = "translucent"; offset = 50; widgets = [ "org.kde.plasma.kickoff" { name = "org.kde.plasma.icontasks"; config = { General = { launchers = [ preferred://browser preferred://filemanager applications:Alacritty.desktop applications:code.desktop ]; }; }; } "org.kde.plasma.pager" "org.kde.plasma.systemtray" "org.kde.plasma.digitalclock" ]; } ]; workspace.lookAndFeel = "org.kde.breezedark.desktop"; desktop = { widgets = [ { name = "org.kde.plasma.digitalclock"; config = { Appearance = { showDate = false; }; }; position = { horizontal = 51; vertical = 100; }; size = { height = 250; width = 250; }; } # I can't use a non-default widget # { # name = "com.github.prayag2.modernclock"; # config = { # Appearance = { # date_font_color="222,217,190"; # date_font_size=32; # day_font_color="222,217,190"; # day_font_size=94; # time_font_color="222,217,190"; # time_font_size=32; # use_24_hour_format=true; # }; # }; # position = { # horizontal = 51; # vertical = 100; # }; # size = { # height = 250; # width = 250; # }; # } { name = "org.kde.plasma.comic"; config = { UserBackgroundHints = "ShadowBackground"; arrowsOnHover = true; checkNewComicStripsIntervall = 30; tabIdentifier="xkcd"; }; position = { horizontal = 51; vertical = 500; }; size = { height = 250; width = 250; }; } ]; }; # fonts.fixedWidth = { # family = "Fira Mono"; # pointSize = 11; # }; powerdevil = let settings = { autoSuspend.action = "sleep"; autoSuspend.idleTimeout = 600; dimDisplay.enable = true; dimDisplay.idleTimeout = 300; powerButtonAction = "shutDown"; whenLaptopLidClosed = "sleep"; }; in { AC = settings; battery = settings; }; hotkeys.commands = { "alacritty-full" = { name = "Launch Alacritty Fullscreen"; keys = ["Meta+Backspace"]; command = "alacritty --config-file /home/felix/.config/alacritty/alacritty_full.toml"; comment = "start alacritty in full screen borderless mode"; }; "launch-konsole" = { name = "Konsole"; keys = ["Meta+K"]; command = "konsole"; }; }; }; programs.okular.enable = true; programs.plasma.input.keyboard.layouts = [ { layout = "de"; } ]; programs.plasma.workspace.wallpaper = ./wallpaper.jpg; }