zenix: fmt, obs wlrobs

This commit is contained in:
tristan 2024-10-06 23:08:44 +01:00
parent 9c6e2ac6bf
commit c85858eab7
6 changed files with 55 additions and 37 deletions

16
flake.lock generated
View file

@ -304,14 +304,18 @@
"nixpkgs": "nixpkgs" "nixpkgs": "nixpkgs"
}, },
"locked": { "locked": {
"lastModified": 1728249206, "lastModified": 1728250817,
"narHash": "sha256-p/ntQwqm0zA/HnitCL8UrzMuC8mjUDr7LEu/f3XiWsU=", "narHash": "sha256-OVHpUlNxHpQUe2Waav/MR+Z7fm6ft/w8SxWlvXv+AdU=",
"path": "/home/tristan/Documents/code/home-manager/cosmic", "owner": "tristanbeedell",
"type": "path" "repo": "home-manager",
"rev": "ce770a3e442b2105852a6f5f79f3645b4c64505c",
"type": "github"
}, },
"original": { "original": {
"path": "/home/tristan/Documents/code/home-manager/cosmic", "owner": "tristanbeedell",
"type": "path" "ref": "cosmic",
"repo": "home-manager",
"type": "github"
} }
}, },
"home-manager_2": { "home-manager_2": {

View file

@ -6,7 +6,7 @@
url = "github:nix-community/home-manager/master"; url = "github:nix-community/home-manager/master";
inputs.nixpkgs.follows = "nixpkgs"; inputs.nixpkgs.follows = "nixpkgs";
}; };
home-manager-cosmic.url = "path:///home/tristan/Documents/code/home-manager/cosmic"; home-manager-cosmic.url = "github:tristanbeedell/home-manager/cosmic";
stylix.url = "github:danth/stylix"; stylix.url = "github:danth/stylix";
sops-nix.url = "github:Mic92/sops-nix"; sops-nix.url = "github:Mic92/sops-nix";
nixos-cosmic = { nixos-cosmic = {

View file

@ -1,4 +1,8 @@
{pkgs, config, ...}: let {
pkgs,
config,
...
}: let
inherit (config.lib.cosmic) Actions; inherit (config.lib.cosmic) Actions;
in { in {
programs.cosmic = { programs.cosmic = {
@ -6,24 +10,24 @@ in {
input.asDefaults = true; input.asDefaults = true;
input.binds = { input.binds = {
# Navigation # Navigation
Super. "h" = (Actions.Focus "Left"); Super. "h" = Actions.Focus "Left";
Super. "l" = (Actions.Focus "Right"); Super. "l" = Actions.Focus "Right";
Super. "j" = (Actions.Focus "Down"); Super. "j" = Actions.Focus "Down";
Super. "k" = (Actions.Focus "Up"); Super. "k" = Actions.Focus "Up";
Super.Shift. "h" = (Actions.Move "Left"); Super.Shift. "h" = Actions.Move "Left";
Super.Shift. "l" = (Actions.Move "Right"); Super.Shift. "l" = Actions.Move "Right";
Super.Shift. "j" = (Actions.Move "Down"); Super.Shift. "j" = Actions.Move "Down";
Super.Shift. "k" = (Actions.Move "Up"); Super.Shift. "k" = Actions.Move "Up";
Super. "1" = (Actions.Workspace 1); Super. "1" = Actions.Workspace 1;
Super. "2" = (Actions.Workspace 2); Super. "2" = Actions.Workspace 2;
Super. "3" = (Actions.Workspace 3); Super. "3" = Actions.Workspace 3;
Super. "4" = (Actions.Workspace 4); Super. "4" = Actions.Workspace 4;
Super. "5" = (Actions.Workspace 5); Super. "5" = Actions.Workspace 5;
Super.Shift. "1" = (Actions.MoveToWorkspace 1); Super.Shift. "1" = Actions.MoveToWorkspace 1;
Super.Shift. "2" = (Actions.MoveToWorkspace 2); Super.Shift. "2" = Actions.MoveToWorkspace 2;
Super.Shift. "3" = (Actions.MoveToWorkspace 3); Super.Shift. "3" = Actions.MoveToWorkspace 3;
Super.Shift. "4" = (Actions.MoveToWorkspace 4); Super.Shift. "4" = Actions.MoveToWorkspace 4;
Super.Shift. "5" = (Actions.MoveToWorkspace 5); Super.Shift. "5" = Actions.MoveToWorkspace 5;
Super. "Space" = Actions.ToggleWindowFloating; Super. "Space" = Actions.ToggleWindowFloating;
Super. "f" = Actions.Maximize; Super. "f" = Actions.Maximize;
Super. "m" = Actions.Minimize; Super. "m" = Actions.Minimize;
@ -31,10 +35,10 @@ in {
Super.Shift. "v" = Actions.ToggleStacking; Super.Shift. "v" = Actions.ToggleStacking;
Super.Shift. "y" = Actions.ToggleSticky; Super.Shift. "y" = Actions.ToggleSticky;
# System # System
Super. "d" = (Actions.Spawn config.programs.menu.drunCommand); Super. "d" = Actions.Spawn config.programs.menu.drunCommand;
Super. "Return" = (Actions.Spawn pkgs.alacritty); Super. "Return" = Actions.Spawn pkgs.alacritty;
Super. "o" = (Actions.System "HomeFolder"); Super. "o" = Actions.System "HomeFolder";
Super.Shift. "s" = (Actions.System "Screenshot"); Super.Shift. "s" = Actions.System "Screenshot";
}; };
background = { background = {
displays = { displays = {
@ -46,8 +50,10 @@ in {
panels = { panels = {
"Bar" = { "Bar" = {
applets = { applets = {
start = [ "com.system76.CosmicAppletWorkspaces" ]; start = [
center = [ "com.system76.CosmicAppList" ]; "com.system76.CosmicAppletWorkspaces"
];
center = [];
end = [ end = [
"com.system76.CosmicAppletTime" "com.system76.CosmicAppletTime"
"com.system76.CosmicAppletTiling" "com.system76.CosmicAppletTiling"

View file

@ -13,7 +13,6 @@
helvum helvum
# tools # tools
obs-studio
inkscape inkscape
libsForQt5.okular libsForQt5.okular
gimp gimp
@ -31,6 +30,11 @@
bitwarden bitwarden
]; ];
programs.obs-studio = {
enable = true;
plugins = [pkgs.obs-studio-plugins.wlrobs];
};
xdg.mimeApps.defaultApplications = { xdg.mimeApps.defaultApplications = {
"application/pdf" = "sioyek.desktop"; "application/pdf" = "sioyek.desktop";
}; };

View file

@ -1,4 +1,8 @@
{inputs, config, ...}: { {
inputs,
config,
...
}: {
imports = [ imports = [
inputs.nixos-cosmic.nixosModules.default inputs.nixos-cosmic.nixosModules.default
]; ];