setting up plasma-manager
This commit is contained in:
parent
27f6d411b7
commit
d9d58bbca9
3 changed files with 75 additions and 49 deletions
|
@ -2,6 +2,35 @@
|
|||
imports = [ <plasma-manager/modules> ];
|
||||
programs.plasma = {
|
||||
enable = true;
|
||||
workspace = {
|
||||
theme = "Breeze";
|
||||
iconTheme = "Breeze Dark";
|
||||
colorScheme = "CatppuccinMochaBlue";
|
||||
cursor = {
|
||||
size = 24;
|
||||
theme = "Breeze";
|
||||
};
|
||||
windowDecorations = {
|
||||
library = "org.kde.breeze";
|
||||
theme = "Breeze";
|
||||
};
|
||||
};
|
||||
hotkeys.commands = {
|
||||
"spectacle-screenshot" = {
|
||||
name = "Spectacle Screenshot";
|
||||
command = "/etc/nixos/scripts/py/spectacle-screenshot.py";
|
||||
comment =
|
||||
"Take a screenshot of a region on the screen and automatically upload it to Zipline";
|
||||
keys = [ "Print" "Meta+S" ];
|
||||
};
|
||||
"spectacle-recording" = {
|
||||
name = "Spectacle Recording";
|
||||
command = "/etc/nixos/scripts/py/spectacle-screenshot.py --record";
|
||||
comment =
|
||||
"Record a region on the screen and automatically upload it to Zipline";
|
||||
keys = [ "Shift+Print" "Meta+Shift+S" ];
|
||||
};
|
||||
};
|
||||
panels = [{
|
||||
location = "bottom";
|
||||
screen = "all";
|
||||
|
@ -33,47 +62,32 @@
|
|||
}
|
||||
];
|
||||
}];
|
||||
#TODO: Convert everything below this to use higher level modules
|
||||
shortcuts = {
|
||||
"services/net.local.spectacle-screenshot.py-2.desktop"."_launch" =
|
||||
"Shift+Print";
|
||||
"services/net.local.spectacle-screenshot.py.desktop"."_launch" = "Print";
|
||||
"services/org.kde.spectacle.desktop"."ActiveWindowScreenShot" = [ ];
|
||||
"services/org.kde.spectacle.desktop"."FullScreenScreenShot" = [ ];
|
||||
"services/org.kde.spectacle.desktop"."RecordRegion" = [ ];
|
||||
"services/org.kde.spectacle.desktop"."RecordScreen" = [ ];
|
||||
"services/org.kde.spectacle.desktop"."RecordWindow" = [ ];
|
||||
"services/org.kde.spectacle.desktop"."RectangularRegionScreenShot" = [ ];
|
||||
"services/org.kde.spectacle.desktop"."WindowUnderCursorScreenShot" = [ ];
|
||||
"services/org.kde.spectacle.desktop"."_launch" = [ ];
|
||||
window-rules = [{
|
||||
description = "Application settings for Code";
|
||||
match = {
|
||||
window-class = {
|
||||
value = "code code-url-handler";
|
||||
type = "exact";
|
||||
};
|
||||
};
|
||||
apply = {
|
||||
desktopfile =
|
||||
"/etc/profiles/per-user/cswimr/share/applications/code.desktop";
|
||||
};
|
||||
}];
|
||||
spectacle.shortcuts = {
|
||||
captureActiveWindow = [ ];
|
||||
captureCurrentMonitor = [ ];
|
||||
captureEntireDesktop = [ ];
|
||||
captureRetangularRegion = [ ];
|
||||
captureWindowUnderCursor = [ ];
|
||||
launch = [ ];
|
||||
};
|
||||
configFile = {
|
||||
"katerc"."KTextEditor Renderer"."Color Theme" = "Catppuccin Mocha";
|
||||
"kded5rc"."Module-browserintegrationreminder"."autoload" = false;
|
||||
"kded5rc"."Module-device_automounter"."autoload" = false;
|
||||
"kwalletrc"."Wallet"."First Use" = false;
|
||||
"kwinrc"."Desktops"."Id_1" = "f523b65c-46b8-4c91-94f4-9e247db75777";
|
||||
"kwinrc"."Desktops"."Number" = 1;
|
||||
"kwinrc"."Desktops"."Rows" = 1;
|
||||
# These three plugins have no higher level modules
|
||||
"kwinrc"."Plugins"."sheetEnabled" = true;
|
||||
"kwinrc"."Plugins"."wobblywindowsEnabled" = true;
|
||||
"kwinrc"."Plugins"."zoomEnabled" = false;
|
||||
"kwinrc"."org.kde.kdecoration2"."theme" = "Breeze";
|
||||
"kwinrulesrc"."700b0164-f5bb-47c9-93fc-2a4587821757"."Description" =
|
||||
"Application settings for Code";
|
||||
"kwinrulesrc"."700b0164-f5bb-47c9-93fc-2a4587821757"."clientmachine" =
|
||||
"localhost";
|
||||
"kwinrulesrc"."700b0164-f5bb-47c9-93fc-2a4587821757"."desktopfile" =
|
||||
"/etc/profiles/per-user/cswimr/share/applications/code.desktop";
|
||||
"kwinrulesrc"."700b0164-f5bb-47c9-93fc-2a4587821757"."desktopfilerule" =
|
||||
3;
|
||||
"kwinrulesrc"."700b0164-f5bb-47c9-93fc-2a4587821757"."wmclass" =
|
||||
"code code-url-handler";
|
||||
"kwinrulesrc"."700b0164-f5bb-47c9-93fc-2a4587821757"."wmclasscomplete" =
|
||||
true;
|
||||
"kwinrulesrc"."700b0164-f5bb-47c9-93fc-2a4587821757"."wmclassmatch" = 1;
|
||||
"kwinrulesrc"."General"."count" = 1;
|
||||
"kwinrulesrc"."General"."rules" = "700b0164-f5bb-47c9-93fc-2a4587821757";
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{ pkgs, config, ... }: {
|
||||
home.username = "cswimr";
|
||||
home.homeDirectory = "/home/cswimr";
|
||||
{ pkgs, config, user, ... }: {
|
||||
home.username = user;
|
||||
home.homeDirectory = "/home/${user}";
|
||||
|
||||
home.file = {
|
||||
".face.icon".source =
|
||||
|
@ -19,8 +19,6 @@
|
|||
config.lib.file.mkOutOfStoreSymlink "/etc/nixos/config/themes/glow.json";
|
||||
};
|
||||
|
||||
home.sessionPath = [ "/etc/nixos/scripts" ];
|
||||
|
||||
# link the configuration file in current directory to the specified location in home directory
|
||||
# home.file.".config/i3/wallpaper.jpg".source = ./wallpaper.jpg;
|
||||
|
||||
|
@ -48,7 +46,7 @@
|
|||
# basic configuration of git, please change to your own
|
||||
programs.git = {
|
||||
enable = true;
|
||||
userName = "cswimr";
|
||||
userName = user;
|
||||
userEmail = "seaswimmerthefsh@gmail.com";
|
||||
extraConfig = {
|
||||
commit = { gpgsign = true; };
|
Loading…
Add table
Add a link
Reference in a new issue