Update switch to EWM
This commit is contained in:
parent
36b7973f9b
commit
8fc96821ed
|
|
@ -8,12 +8,13 @@
|
|||
imports =
|
||||
[ # Include the results of the hardware scan.
|
||||
./hardware-configuration.nix
|
||||
./../../modules/nixos/cspark-single-gpu-passthru/module.nix
|
||||
./../../modules/nixos/cspark-desktop-plasma/module.nix
|
||||
./../../modules/nixos/cspark-desktop-gnome/module.nix
|
||||
./../../modules/nixos/cspark-desktop-sway/module.nix
|
||||
#./../../modules/nixos/cspark-single-gpu-passthru/module.nix
|
||||
#./../../modules/nixos/cspark-desktop-plasma/module.nix
|
||||
#./../../modules/nixos/cspark-desktop-gnome/module.nix
|
||||
#./../../modules/nixos/cspark-desktop-sway/module.nix
|
||||
./../../modules/nixos/cspark-desktop-niri/module.nix
|
||||
./../../modules/nixos/cspark-desktop-exwm/module.nix
|
||||
#./../../modules/nixos/cspark-desktop-exwm/module.nix
|
||||
./../../modules/nixos/cspark-desktop-ewm/module.nix
|
||||
inputs.home-manager.nixosModules.default
|
||||
];
|
||||
|
||||
|
|
@ -42,8 +43,9 @@
|
|||
# cspark-desktop-plasma.enable = true;
|
||||
# cspark-desktop-gnome.enable = true;
|
||||
# cspark-desktop-sway.enable = true;
|
||||
cspark-desktop-niri.enable = true;
|
||||
#cspark-desktop-niri.enable = true;
|
||||
# cspark-desktop-exwm.enable = true;
|
||||
cspark-desktop-ewm.enable = true;
|
||||
|
||||
# This user handles building packages remotely for my laptop
|
||||
users.users.nixremotebuilder = {
|
||||
|
|
@ -112,12 +114,12 @@
|
|||
virtualisation.docker.enable = true;
|
||||
|
||||
# Sunshine remote desktop streaming
|
||||
services.sunshine = {
|
||||
enable = true;
|
||||
autoStart = true;
|
||||
capSysAdmin = true;
|
||||
openFirewall = true;
|
||||
};
|
||||
#services.sunshine = {
|
||||
# enable = true;
|
||||
# autoStart = true;
|
||||
# capSysAdmin = true;
|
||||
# openFirewall = true;
|
||||
#};
|
||||
|
||||
# List packages installed in system profile. To search, run:
|
||||
# $ nix search wget
|
||||
|
|
|
|||
|
|
@ -5,11 +5,12 @@
|
|||
[
|
||||
# Global Config, always to be included
|
||||
./../../global-home.nix
|
||||
./../../modules/nixos/cspark-desktop-plasma/home.nix
|
||||
./../../modules/nixos/cspark-desktop-gnome/home.nix
|
||||
./../../modules/nixos/cspark-desktop-sway/home.nix
|
||||
#./../../modules/nixos/cspark-desktop-plasma/home.nix
|
||||
#./../../modules/nixos/cspark-desktop-gnome/home.nix
|
||||
#./../../modules/nixos/cspark-desktop-sway/home.nix
|
||||
./../../modules/nixos/cspark-desktop-niri/home.nix
|
||||
./../../modules/nixos/cspark-desktop-exwm/home.nix
|
||||
#./../../modules/nixos/cspark-desktop-exwm/home.nix
|
||||
./../../modules/nixos/cspark-desktop-ewm/home.nix
|
||||
];
|
||||
|
||||
# KDE Connect
|
||||
|
|
@ -20,8 +21,9 @@
|
|||
# cspark-desktop-plasma-config-1.enable = true;
|
||||
# cspark-desktop-gnome-config-1.enable = true;
|
||||
# cspark-desktop-sway-config-1.enable = true;
|
||||
cspark-desktop-niri-config-1.enable = true;
|
||||
# cspark-desktop-niri-config-1.enable = true;
|
||||
# cspark-desktop-exwm-config-1.enable = true;
|
||||
cspark-desktop-ewm-config-1.enable = true;
|
||||
|
||||
# Home Manager is pretty good at managing dotfiles. The primary way to manage
|
||||
# plain files is through 'home.file'.
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
{ config, pkgs, ... }:
|
||||
|
||||
{
|
||||
imports =
|
||||
imports =
|
||||
[
|
||||
# Global Config, always to be included
|
||||
./../../global-home.nix
|
||||
|
|
@ -13,8 +13,8 @@
|
|||
];
|
||||
|
||||
# KDE Connect
|
||||
# services.kdeconnect.enable = true;
|
||||
services.kdeconnect.indicator = true;
|
||||
# services.kdeconnect.enable = true;
|
||||
services.kdeconnect.indicator = true;
|
||||
|
||||
# Custom Desktop Configurations
|
||||
# cspark-desktop-plasma-config-1.enable = true;
|
||||
|
|
@ -56,8 +56,7 @@
|
|||
};
|
||||
|
||||
home.sessionVariables = {
|
||||
# EDITOR = "emacsclient -c";
|
||||
EDITOR = "nvim";
|
||||
EDITOR = "emacsclient -r";
|
||||
};
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
{ config, pkgs, ... }:
|
||||
|
||||
{
|
||||
imports =
|
||||
imports =
|
||||
[
|
||||
# Global Config, always to be included
|
||||
./../../global-home.nix
|
||||
|
|
@ -13,8 +13,8 @@
|
|||
];
|
||||
|
||||
# KDE Connect
|
||||
# services.kdeconnect.enable = true;
|
||||
services.kdeconnect.indicator = true;
|
||||
# services.kdeconnect.enable = true;
|
||||
services.kdeconnect.indicator = true;
|
||||
|
||||
# Custom Desktop Configurations
|
||||
# cspark-desktop-plasma-config-1.enable = true;
|
||||
|
|
@ -56,8 +56,7 @@
|
|||
};
|
||||
|
||||
home.sessionVariables = {
|
||||
# EDITOR = "emacsclient -c";
|
||||
EDITOR = "nvim";
|
||||
EDITOR = "emacsclient -r";
|
||||
};
|
||||
|
||||
}
|
||||
|
|
|
|||
191
flake.lock
191
flake.lock
|
|
@ -1,15 +1,56 @@
|
|||
{
|
||||
"nodes": {
|
||||
"emacs-overlay": {
|
||||
"inputs": {
|
||||
"nixpkgs": [
|
||||
"nixpkgs"
|
||||
],
|
||||
"nixpkgs-stable": "nixpkgs-stable"
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1776074175,
|
||||
"narHash": "sha256-8e7+uLslLDZRD8p5QyJV8QSivpB2qMy2XuAcVYbW1f4=",
|
||||
"owner": "nix-community",
|
||||
"repo": "emacs-overlay",
|
||||
"rev": "000ca2cd866f7c37a8c0cc96dd2aff457ee4c865",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
"owner": "nix-community",
|
||||
"repo": "emacs-overlay",
|
||||
"type": "github"
|
||||
}
|
||||
},
|
||||
"ewm": {
|
||||
"inputs": {
|
||||
"nixpkgs": [
|
||||
"nixpkgs"
|
||||
]
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1776077956,
|
||||
"narHash": "sha256-3bRC/zni8oFtz8sypUYjONLaE68BJwsOsUUB11sH7kw=",
|
||||
"ref": "refs/heads/master",
|
||||
"rev": "5564f93578a830ba9316fdfc3ed1d288d41775d3",
|
||||
"revCount": 414,
|
||||
"type": "git",
|
||||
"url": "https://codeberg.org/ezemtsov/ewm"
|
||||
},
|
||||
"original": {
|
||||
"type": "git",
|
||||
"url": "https://codeberg.org/ezemtsov/ewm"
|
||||
}
|
||||
},
|
||||
"flake-parts": {
|
||||
"inputs": {
|
||||
"nixpkgs-lib": "nixpkgs-lib"
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1733312601,
|
||||
"narHash": "sha256-4pDvzqnegAfRkPwO3wmwBhVi/Sye1mzps0zHWYnP88c=",
|
||||
"lastModified": 1763759067,
|
||||
"narHash": "sha256-LlLt2Jo/gMNYAwOgdRQBrsRoOz7BPRkzvNaI/fzXi2Q=",
|
||||
"owner": "hercules-ci",
|
||||
"repo": "flake-parts",
|
||||
"rev": "205b12d8b7cd4802fbcb8e8ef6a0f1408781a4f9",
|
||||
"rev": "2cccadc7357c0ba201788ae99c4dfa90728ef5e0",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
|
|
@ -18,18 +59,21 @@
|
|||
"type": "github"
|
||||
}
|
||||
},
|
||||
"flake-root": {
|
||||
"flake-parts_2": {
|
||||
"inputs": {
|
||||
"nixpkgs-lib": "nixpkgs-lib_2"
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1723604017,
|
||||
"narHash": "sha256-rBtQ8gg+Dn4Sx/s+pvjdq3CB2wQNzx9XGFq/JVGCB6k=",
|
||||
"owner": "srid",
|
||||
"repo": "flake-root",
|
||||
"rev": "b759a56851e10cb13f6b8e5698af7b59c44be26e",
|
||||
"lastModified": 1772408722,
|
||||
"narHash": "sha256-rHuJtdcOjK7rAHpHphUb1iCvgkU3GpfvicLMwwnfMT0=",
|
||||
"owner": "hercules-ci",
|
||||
"repo": "flake-parts",
|
||||
"rev": "f20dc5d9b8027381c474144ecabc9034d6a839a3",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
"owner": "srid",
|
||||
"repo": "flake-root",
|
||||
"owner": "hercules-ci",
|
||||
"repo": "flake-parts",
|
||||
"type": "github"
|
||||
}
|
||||
},
|
||||
|
|
@ -40,11 +84,11 @@
|
|||
]
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1772218752,
|
||||
"narHash": "sha256-G8nArvOTZXU8DRvrzAdz3Elcj6kA/vMtvY9mrGLATtA=",
|
||||
"lastModified": 1776046499,
|
||||
"narHash": "sha256-Wzc4nn07/0RL21ypPHRzNDQZcjhIC8LaYo7QJQjM5T4=",
|
||||
"owner": "nix-community",
|
||||
"repo": "home-manager",
|
||||
"rev": "f3a30376bb9eb2f6f61816be7d6ed954b6d2a3b9",
|
||||
"rev": "287f84846c1eb3b72c986f5f6bebcff0bd67440d",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
|
|
@ -53,6 +97,27 @@
|
|||
"type": "github"
|
||||
}
|
||||
},
|
||||
"lem": {
|
||||
"inputs": {
|
||||
"flake-parts": "flake-parts",
|
||||
"nixpkgs": [
|
||||
"nixpkgs"
|
||||
]
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1775904181,
|
||||
"narHash": "sha256-hHHXghw16VuWP7jK7l691mc9vxPQmjFgdhw105jg8uc=",
|
||||
"owner": "lem-project",
|
||||
"repo": "lem",
|
||||
"rev": "c2f48d5d5ad3f8d1be0fd699079b3a21b9f0d916",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
"owner": "lem-project",
|
||||
"repo": "lem",
|
||||
"type": "github"
|
||||
}
|
||||
},
|
||||
"niri": {
|
||||
"inputs": {
|
||||
"niri-stable": "niri-stable",
|
||||
|
|
@ -60,16 +125,16 @@
|
|||
"nixpkgs": [
|
||||
"nixpkgs"
|
||||
],
|
||||
"nixpkgs-stable": "nixpkgs-stable",
|
||||
"nixpkgs-stable": "nixpkgs-stable_2",
|
||||
"xwayland-satellite-stable": "xwayland-satellite-stable",
|
||||
"xwayland-satellite-unstable": "xwayland-satellite-unstable"
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1772211154,
|
||||
"narHash": "sha256-BdXKcWd1LE+APzyaJ/xszDXcA5KKPenjNyC5VOd3x4E=",
|
||||
"lastModified": 1776109195,
|
||||
"narHash": "sha256-yug5v5OI5ixCYyAiqCbNrxfiyfvxvlsMr/tj3uyH51c=",
|
||||
"owner": "sodiboo",
|
||||
"repo": "niri-flake",
|
||||
"rev": "599b3f8d4215470dd50066119c81007b2670b6e1",
|
||||
"rev": "8fcfcef0fc05ee826adf66225b27716131ed74af",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
|
|
@ -98,11 +163,11 @@
|
|||
"niri-unstable": {
|
||||
"flake": false,
|
||||
"locked": {
|
||||
"lastModified": 1772207631,
|
||||
"narHash": "sha256-Jkkg+KqshFO3CbTszVVpkKN2AOObYz+wMsM3ONo1z5g=",
|
||||
"lastModified": 1775561155,
|
||||
"narHash": "sha256-TK2IrqQivRcwqJa0suZMbcsN17CtA8Uu0v7CDnLATb0=",
|
||||
"owner": "YaLTeR",
|
||||
"repo": "niri",
|
||||
"rev": "e708f546153f74acf33eb183b3b2992587a701e5",
|
||||
"rev": "599db847f857b8a7ff78ce02f15acab5d5d9fee1",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
|
|
@ -113,19 +178,18 @@
|
|||
},
|
||||
"nixd": {
|
||||
"inputs": {
|
||||
"flake-parts": "flake-parts",
|
||||
"flake-root": "flake-root",
|
||||
"flake-parts": "flake-parts_2",
|
||||
"nixpkgs": [
|
||||
"nixpkgs"
|
||||
],
|
||||
"treefmt-nix": "treefmt-nix"
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1770610599,
|
||||
"narHash": "sha256-juNOa0OlUjPqKpcbLlSbz4wRgNtfYOYI19YEnwMXqlk=",
|
||||
"lastModified": 1775640970,
|
||||
"narHash": "sha256-a0UO/ILKtnVpEosu+o8lNUHmrwSG4IE8pHELXXf0UnY=",
|
||||
"owner": "nix-community",
|
||||
"repo": "nixd",
|
||||
"rev": "a6dfbbe41eaa9561fbbb0ece336fc7771810b183",
|
||||
"rev": "0cf65e8cb23a64fc66998a4374c13b1811154a4e",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
|
|
@ -136,11 +200,11 @@
|
|||
},
|
||||
"nixpkgs": {
|
||||
"locked": {
|
||||
"lastModified": 1771848320,
|
||||
"narHash": "sha256-0MAd+0mun3K/Ns8JATeHT1sX28faLII5hVLq0L3BdZU=",
|
||||
"lastModified": 1775710090,
|
||||
"narHash": "sha256-ar3rofg+awPB8QXDaFJhJ2jJhu+KqN/PRCXeyuXR76E=",
|
||||
"owner": "nixos",
|
||||
"repo": "nixpkgs",
|
||||
"rev": "2fc6539b481e1d2569f25f8799236694180c0993",
|
||||
"rev": "4c1018dae018162ec878d42fec712642d214fdfa",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
|
|
@ -152,23 +216,41 @@
|
|||
},
|
||||
"nixpkgs-lib": {
|
||||
"locked": {
|
||||
"lastModified": 1733096140,
|
||||
"narHash": "sha256-1qRH7uAUsyQI7R1Uwl4T+XvdNv778H0Nb5njNrqvylY=",
|
||||
"type": "tarball",
|
||||
"url": "https://github.com/NixOS/nixpkgs/archive/5487e69da40cbd611ab2cadee0b4637225f7cfae.tar.gz"
|
||||
"lastModified": 1761765539,
|
||||
"narHash": "sha256-b0yj6kfvO8ApcSE+QmA6mUfu8IYG6/uU28OFn4PaC8M=",
|
||||
"owner": "nix-community",
|
||||
"repo": "nixpkgs.lib",
|
||||
"rev": "719359f4562934ae99f5443f20aa06c2ffff91fc",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
"type": "tarball",
|
||||
"url": "https://github.com/NixOS/nixpkgs/archive/5487e69da40cbd611ab2cadee0b4637225f7cfae.tar.gz"
|
||||
"owner": "nix-community",
|
||||
"repo": "nixpkgs.lib",
|
||||
"type": "github"
|
||||
}
|
||||
},
|
||||
"nixpkgs-lib_2": {
|
||||
"locked": {
|
||||
"lastModified": 1772328832,
|
||||
"narHash": "sha256-e+/T/pmEkLP6BHhYjx6GmwP5ivonQQn0bJdH9YrRB+Q=",
|
||||
"owner": "nix-community",
|
||||
"repo": "nixpkgs.lib",
|
||||
"rev": "c185c7a5e5dd8f9add5b2f8ebeff00888b070742",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
"owner": "nix-community",
|
||||
"repo": "nixpkgs.lib",
|
||||
"type": "github"
|
||||
}
|
||||
},
|
||||
"nixpkgs-stable": {
|
||||
"locked": {
|
||||
"lastModified": 1772047000,
|
||||
"narHash": "sha256-7DaQVv4R97cii/Qdfy4tmDZMB2xxtyIvNGSwXBBhSmo=",
|
||||
"lastModified": 1775811116,
|
||||
"narHash": "sha256-t+HZK42pB6N+i5RGbuy7Xluez/VvWbembBdvzsc23Ss=",
|
||||
"owner": "NixOS",
|
||||
"repo": "nixpkgs",
|
||||
"rev": "1267bb4920d0fc06ea916734c11b0bf004bbe17e",
|
||||
"rev": "54170c54449ea4d6725efd30d719c5e505f1c10e",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
|
|
@ -179,6 +261,22 @@
|
|||
}
|
||||
},
|
||||
"nixpkgs-stable_2": {
|
||||
"locked": {
|
||||
"lastModified": 1776067740,
|
||||
"narHash": "sha256-B35lpsqnSZwn1Lmz06BpwF7atPgFmUgw1l8KAV3zpVQ=",
|
||||
"owner": "NixOS",
|
||||
"repo": "nixpkgs",
|
||||
"rev": "7e495b747b51f95ae15e74377c5ce1fe69c1765f",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
"owner": "NixOS",
|
||||
"ref": "nixos-25.11",
|
||||
"repo": "nixpkgs",
|
||||
"type": "github"
|
||||
}
|
||||
},
|
||||
"nixpkgs-stable_3": {
|
||||
"locked": {
|
||||
"lastModified": 1735651292,
|
||||
"narHash": "sha256-YLbzcBtYo1/FEzFsB3AnM16qFc6fWPMIoOuSoDwvg9g=",
|
||||
|
|
@ -196,11 +294,14 @@
|
|||
},
|
||||
"root": {
|
||||
"inputs": {
|
||||
"emacs-overlay": "emacs-overlay",
|
||||
"ewm": "ewm",
|
||||
"home-manager": "home-manager",
|
||||
"lem": "lem",
|
||||
"niri": "niri",
|
||||
"nixd": "nixd",
|
||||
"nixpkgs": "nixpkgs",
|
||||
"nixpkgs-stable": "nixpkgs-stable_2"
|
||||
"nixpkgs-stable": "nixpkgs-stable_3"
|
||||
}
|
||||
},
|
||||
"treefmt-nix": {
|
||||
|
|
@ -211,11 +312,11 @@
|
|||
]
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1734704479,
|
||||
"narHash": "sha256-MMi74+WckoyEWBRcg/oaGRvXC9BVVxDZNRMpL+72wBI=",
|
||||
"lastModified": 1772660329,
|
||||
"narHash": "sha256-IjU1FxYqm+VDe5qIOxoW+pISBlGvVApRjiw/Y/ttJzY=",
|
||||
"owner": "numtide",
|
||||
"repo": "treefmt-nix",
|
||||
"rev": "65712f5af67234dad91a5a4baee986a8b62dbf8f",
|
||||
"rev": "3710e0e1218041bbad640352a0440114b1e10428",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
|
|
@ -244,11 +345,11 @@
|
|||
"xwayland-satellite-unstable": {
|
||||
"flake": false,
|
||||
"locked": {
|
||||
"lastModified": 1771787042,
|
||||
"narHash": "sha256-7bM6Y4KldhKnfopSALF8XALxcX7ehkomXH9sPl4MXp0=",
|
||||
"lastModified": 1773622265,
|
||||
"narHash": "sha256-wToKwH7IgWdGLMSIWksEDs4eumR6UbbsuPQ42r0oTXQ=",
|
||||
"owner": "Supreeeme",
|
||||
"repo": "xwayland-satellite",
|
||||
"rev": "33c344fee50504089a447a8fef5878cf4f6215fc",
|
||||
"rev": "a879e5e0896a326adc79c474bf457b8b99011027",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
|
|
|
|||
14
flake.nix
14
flake.nix
|
|
@ -20,6 +20,20 @@
|
|||
inputs.nixpkgs.follows = "nixpkgs";
|
||||
};
|
||||
|
||||
lem = {
|
||||
url = "github:lem-project/lem";
|
||||
inputs.nixpkgs.follows = "nixpkgs";
|
||||
};
|
||||
|
||||
ewm = {
|
||||
url = "git+https://codeberg.org/ezemtsov/ewm";
|
||||
inputs.nixpkgs.follows = "nixpkgs";
|
||||
};
|
||||
|
||||
emacs-overlay = {
|
||||
url = "github:nix-community/emacs-overlay";
|
||||
inputs.nixpkgs.follows = "nixpkgs";
|
||||
};
|
||||
};
|
||||
|
||||
outputs = { self, nixpkgs, ... }@inputs: {
|
||||
|
|
|
|||
178
global-home.nix
178
global-home.nix
|
|
@ -1,4 +1,4 @@
|
|||
{ config, pkgs, inputs, ... }:
|
||||
{ config, pkgs, lib, inputs, ... }:
|
||||
|
||||
let
|
||||
homedir = "/home/cspark";
|
||||
|
|
@ -74,11 +74,96 @@ else
|
|||
builtin-zi "''${HOME}" && printf "\033]7;file://''${PWD}\033\\"
|
||||
fi
|
||||
'')
|
||||
|
||||
|
||||
# Setup mail
|
||||
(pkgs.writeShellScriptBin "mu-mail-init" ''
|
||||
mu init --maildir=~/Mail --my-address=work@cspark.dev --my-address=services@cspark.dev --my-address=personal@cspark.dev --my-address=alerts@cspark.dev--my-address=services@tuxtank.dev --my-address=alerts@tuxtank.dev
|
||||
'')
|
||||
|
||||
# Re-encode a video to a target size in MB using ffmpeg.
|
||||
(pkgs.writeShellScriptBin "vidresize" ''
|
||||
# Re-encode a video to a target size in MB.
|
||||
# Example:
|
||||
# ./this_script.sh video.mp4 15
|
||||
|
||||
T_SIZE="$2" # target size in MB
|
||||
T_FILE="''${1%.*}-$2MB.mp4" # filename out
|
||||
|
||||
# Original duration in seconds
|
||||
O_DUR=$(\
|
||||
ffprobe \
|
||||
-v error \
|
||||
-show_entries format=duration \
|
||||
-of csv=p=0 "$1")
|
||||
|
||||
# Original audio rate
|
||||
O_ARATE=$(\
|
||||
ffprobe \
|
||||
-v error \
|
||||
-select_streams a:0 \
|
||||
-show_entries stream=bit_rate \
|
||||
-of csv=p=0 "$1")
|
||||
|
||||
# Original audio rate in KiB/s
|
||||
O_ARATE=$(\
|
||||
awk \
|
||||
-v arate="$O_ARATE" \
|
||||
'BEGIN { printf "%.0f", (arate / 1024) }')
|
||||
|
||||
# Target size is required to be less than the size of the original audio stream
|
||||
T_MINSIZE=$(\
|
||||
awk \
|
||||
-v arate="$O_ARATE" \
|
||||
-v duration="$O_DUR" \
|
||||
'BEGIN { printf "%.2f", ( (arate * duration) / 8192 ) }')
|
||||
|
||||
# Equals 1 if target size is ok, 0 otherwise
|
||||
IS_MINSIZE=$(\
|
||||
awk \
|
||||
-v size="$T_SIZE" \
|
||||
-v minsize="$T_MINSIZE" \
|
||||
'BEGIN { print (minsize < size) }')
|
||||
|
||||
# Give useful information if size is too small
|
||||
if [[ $IS_MINSIZE -eq 0 ]]; then
|
||||
printf "%s\n" "Target size ''${T_SIZE}MB is too small!" >&2
|
||||
printf "%s %s\n" "Try values larger than" "''${T_MINSIZE}MB" >&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# Set target audio bitrate
|
||||
T_ARATE=$O_ARATE
|
||||
|
||||
|
||||
# Calculate target video rate - MB -> KiB/s
|
||||
T_VRATE=$(\
|
||||
awk \
|
||||
-v size="$T_SIZE" \
|
||||
-v duration="$O_DUR" \
|
||||
-v audio_rate="$O_ARATE" \
|
||||
'BEGIN { print ( ( size * 8192.0 ) / ( 1.048576 * duration ) - audio_rate) }')
|
||||
|
||||
# Perform the conversion
|
||||
ffmpeg \
|
||||
-y \
|
||||
-i "$1" \
|
||||
-c:v libx264 \
|
||||
-b:v "$T_VRATE"k \
|
||||
-pass 1 \
|
||||
-an \
|
||||
-f mp4 \
|
||||
/dev/null \
|
||||
&& \
|
||||
ffmpeg \
|
||||
-i "$1" \
|
||||
-c:v libx264 \
|
||||
-b:v "$T_VRATE"k \
|
||||
-pass 2 \
|
||||
-c:a aac \
|
||||
-b:a "$T_ARATE"k \
|
||||
"$T_FILE"
|
||||
'')
|
||||
|
||||
];
|
||||
|
||||
# Home Manager is pretty good at managing dotfiles. The primary way to manage
|
||||
|
|
@ -107,7 +192,7 @@ mu init --maildir=~/Mail --my-address=work@cspark.dev --my-address=services@cspa
|
|||
|
||||
# Inputrc file for VI mode
|
||||
".inputrc".source = ./global-resources/home-manager/.inputrc;
|
||||
|
||||
|
||||
# Global Wallpapers
|
||||
"Pictures/Wallpapers".source = ./global-resources/home-manager/Pictures/Wallpapers;
|
||||
|
||||
|
|
@ -119,7 +204,7 @@ mu init --maildir=~/Mail --my-address=work@cspark.dev --my-address=services@cspa
|
|||
".mbsyncrc".source = ./global-resources/home-manager/.mbsyncrc;
|
||||
};
|
||||
|
||||
xdg = {
|
||||
xdg = {
|
||||
enable = true;
|
||||
configFile = {
|
||||
# Fastfetch Configuration
|
||||
|
|
@ -143,20 +228,67 @@ mu init --maildir=~/Mail --my-address=work@cspark.dev --my-address=services@cspa
|
|||
};
|
||||
|
||||
# Have to enable the mpd and mpd-discord-rpc user services manually for now
|
||||
services.mpd = {
|
||||
enable = true;
|
||||
musicDirectory = "${homedir}/Spool2_Secret/Music/Flac";
|
||||
network.startWhenNeeded = true;
|
||||
extraConfig = ''
|
||||
audio_output {
|
||||
type "pipewire"
|
||||
name "PipeWire Output"
|
||||
}
|
||||
'';
|
||||
};
|
||||
#services.mpd = {
|
||||
# enable = true;
|
||||
# musicDirectory = "${homedir}/Spool2_Secret/Music/Flac";
|
||||
# network.startWhenNeeded = true;
|
||||
# extraConfig = ''
|
||||
# audio_output {
|
||||
# type "pipewire"
|
||||
# name "PipeWire Output"
|
||||
# }
|
||||
# '';
|
||||
#};
|
||||
services.mpd-discord-rpc.enable = true;
|
||||
#programs.ncmpcpp.enable = true;
|
||||
|
||||
# Alternatively, Mopidy over MPD
|
||||
services.mopidy = let
|
||||
mopidyPackagesOverride = pkgs.mopidyPackages.overrideScope (prev: final: {
|
||||
extraPkgs = pkgs: [
|
||||
pkgs.yt-dlp
|
||||
];
|
||||
});
|
||||
in {
|
||||
enable = true;
|
||||
extensionPackages = with mopidyPackagesOverride; [
|
||||
mopidy-local
|
||||
mopidy-mpd
|
||||
mopidy-youtube
|
||||
];
|
||||
settings = {
|
||||
logging = {
|
||||
verbosity = 1;
|
||||
};
|
||||
|
||||
audio = {
|
||||
output = "pulsesink server=127.0.0.1";
|
||||
};
|
||||
|
||||
file = {
|
||||
enabled = false;
|
||||
};
|
||||
|
||||
local = {
|
||||
enabled = true;
|
||||
media_dir = "${homedir}/Spool2_Secret/Music/Flac";
|
||||
library = "sqlite";
|
||||
};
|
||||
|
||||
mpd = {
|
||||
enabled = true;
|
||||
hostname = "::";
|
||||
command_blacklist = "";
|
||||
};
|
||||
|
||||
youtube = {
|
||||
enabled = true;
|
||||
youtube_dl_package = "yt_dlp";
|
||||
};
|
||||
};
|
||||
};
|
||||
systemd.user.services.mopidy-scan.Install.WantedBy = lib.mkForce [];
|
||||
|
||||
# Home Manager is pretty good at managing dotfiles. The primary way to manage
|
||||
# plain files is through 'home.file'.
|
||||
home.file = {
|
||||
|
|
@ -200,7 +332,7 @@ mu init --maildir=~/Mail --my-address=work@cspark.dev --my-address=services@cspa
|
|||
Description = "Initialises default emacs configuration if not available";
|
||||
};
|
||||
Service = {
|
||||
ExecStart = "${script}";
|
||||
ExecStart = "${script}";
|
||||
};
|
||||
Install = {
|
||||
WantedBy = [ "default.target" ];
|
||||
|
|
@ -224,7 +356,7 @@ mu init --maildir=~/Mail --my-address=work@cspark.dev --my-address=services@cspa
|
|||
Description = "Initialises default neovim configuration if not available";
|
||||
};
|
||||
Service = {
|
||||
ExecStart = "${script}";
|
||||
ExecStart = "${script}";
|
||||
};
|
||||
Install = {
|
||||
WantedBy = [ "default.target" ];
|
||||
|
|
@ -249,7 +381,7 @@ mu init --maildir=~/Mail --my-address=work@cspark.dev --my-address=services@cspa
|
|||
Description = "Start MPDCRON on boot";
|
||||
};
|
||||
Service = {
|
||||
ExecStart = "${script}";
|
||||
ExecStart = "${script}";
|
||||
Environment = "PATH=${inputs.nixpkgs-stable.legacyPackages.x86_64-linux.mpdcron}/bin:${pkgs.systemd}/bin";
|
||||
};
|
||||
Install = {
|
||||
|
|
@ -277,10 +409,10 @@ mu init --maildir=~/Mail --my-address=work@cspark.dev --my-address=services@cspa
|
|||
home.sessionPath = [
|
||||
"$HOME/.dotnet/tools"
|
||||
];
|
||||
|
||||
|
||||
home.sessionVariables = {
|
||||
# EDITOR = "emacsclient -c";
|
||||
EDITOR = "nvim";
|
||||
EDITOR = "emacsclient -r";
|
||||
# EDITOR = "nvim";
|
||||
|
||||
# Dotnet path not found fix
|
||||
DOTNET_ROOT = "${pkgs.dotnet-sdk}";
|
||||
|
|
@ -318,9 +450,9 @@ mu init --maildir=~/Mail --my-address=work@cspark.dev --my-address=services@cspa
|
|||
# Override the default cd and z (zoxide) terminal commands to ensure to add our custom hooks onto it for neovim integration
|
||||
#cd = "source cd-nvim";
|
||||
z = "source z-nvim";
|
||||
cd = "source z-nvim"; # Now will use z (zoxide) as the default cd command instead
|
||||
#cd = "source z-nvim"; # Now will use z (zoxide) as the default cd command instead
|
||||
zi = "source zi-nvim";
|
||||
cdi = "source zi-nvim";
|
||||
#cdi = "source zi-nvim";
|
||||
|
||||
# A smarter, better "cp"
|
||||
cp2 = "rsync -ah --info=progress2";
|
||||
|
|
|
|||
241
global.nix
241
global.nix
|
|
@ -5,7 +5,7 @@
|
|||
{ config, pkgs, lib, inputs, ... }:
|
||||
|
||||
{
|
||||
nix.settings = {
|
||||
nix.settings = {
|
||||
max-jobs = 1; # Limits total concurrent derivations
|
||||
experimental-features = [ "nix-command" "flakes" ];
|
||||
download-buffer-size = 524288000; # 500 MiB
|
||||
|
|
@ -20,11 +20,10 @@
|
|||
|
||||
services.flatpak.enable = true;
|
||||
|
||||
environment.systemPackages = let
|
||||
environment.systemPackages = let
|
||||
# You can specify here if you want to add any packages from the stable branch onto your system
|
||||
stablePackages = with inputs.nixpkgs-stable.legacyPackages.x86_64-linux; [
|
||||
gtk-pipe-viewer
|
||||
mpdcron
|
||||
mpdcron
|
||||
];
|
||||
# You can specify here what python packages you waint available to python
|
||||
# Custom Python package with all the (Python) imports I need
|
||||
|
|
@ -84,9 +83,12 @@
|
|||
vscode-langservers-extracted
|
||||
docker-compose-language-service
|
||||
nodejs
|
||||
# nodePackages.prettier
|
||||
nodePackages.typescript-language-server
|
||||
nodePackages.bash-language-server
|
||||
|
||||
# nodePackages has been removed because it was unmainable
|
||||
#nodePackages.prettier
|
||||
#nodePackages.typescript-language-server
|
||||
#nodePackages.bash-language-server
|
||||
deno # Primarily for emacs ivjs/empv
|
||||
#python312Packages.jedi-language-server
|
||||
nixd
|
||||
|
||||
|
|
@ -105,8 +107,8 @@
|
|||
saber
|
||||
|
||||
#(neovim.overrideAttrs (oldAttrs: {
|
||||
# buildInputs = [
|
||||
# #pkgs.xorg.libX11
|
||||
# buildInputs = [
|
||||
# #pkgs.xorg.libX11
|
||||
# pkgs.gcc
|
||||
# ];
|
||||
#})) # Do not forget to add an editor to edit configuration.nix! The Nano editor is also installed by default.
|
||||
|
|
@ -118,7 +120,7 @@
|
|||
sc-im
|
||||
|
||||
#emacs-gtk
|
||||
#((inputs.emacs-overlay.packages.x86_64-linux.emacs-unstable-pgtk.overrideAttrs (oldAttrs: {
|
||||
#((inputs.emacs-overlay.packages.x86_64-linux.emacs-unstable-pgtk.overrideAttrs (oldAttrs: {
|
||||
# buildInputs = oldAttrs.buildInputs ++ [ pkgs.webkitgtk ];
|
||||
#})).override {
|
||||
# withXwidgets = true;
|
||||
|
|
@ -176,7 +178,7 @@
|
|||
# librewolf-bin
|
||||
librewolf
|
||||
ungoogled-chromium
|
||||
# nyxt
|
||||
nyxt
|
||||
# qutebrowser
|
||||
#(chawan.overrideAttrs (oldAttrs: {
|
||||
# src = fetchFromSourcehut {
|
||||
|
|
@ -205,16 +207,16 @@
|
|||
zapzap
|
||||
nchat
|
||||
element-desktop
|
||||
# cinny-desktop
|
||||
freetube
|
||||
# pipeline
|
||||
cinny-desktop
|
||||
#freetube
|
||||
#pipeline
|
||||
chafa
|
||||
#ytfzf
|
||||
|
||||
warp
|
||||
|
||||
#(pidgin.override {
|
||||
# plugins = [
|
||||
|
||||
#(pidgin.override {
|
||||
# plugins = [
|
||||
|
||||
# # purple-discord updated to 2024-11-23 from 2021-10-17
|
||||
# (purple-discord.overrideAttrs (oldAttrs: {
|
||||
|
|
@ -225,7 +227,7 @@
|
|||
# sha256 = "BJuw2F+7twEK8ukEwxsMhDcyVkSS6tK8iJ8uM5kygB8=";
|
||||
# };
|
||||
# buildInputs = oldAttrs.buildInputs ++ [ nss qrencode ];
|
||||
# }))
|
||||
# }))
|
||||
|
||||
# # Switch to updated fork by BenWiederhake
|
||||
# (tdlib-purple.overrideAttrs (oldAttrs: {
|
||||
|
|
@ -245,7 +247,7 @@
|
|||
|
||||
# broken = false;
|
||||
# };
|
||||
# }))
|
||||
# }))
|
||||
|
||||
# ];
|
||||
#})
|
||||
|
|
@ -257,6 +259,7 @@
|
|||
protonup-qt
|
||||
qpwgraph
|
||||
|
||||
lingot
|
||||
#ardour
|
||||
#(writeShellScriptBin "ardour-pipewire" ''exec ${pipewire.jack}/bin/pw-jack ${ardour}/bin/ardour8'')
|
||||
#easyeffects
|
||||
|
|
@ -284,6 +287,7 @@
|
|||
distrobox
|
||||
qdirstat
|
||||
kid3
|
||||
opus-tools # Primarily for opus support in Emacs EMMS
|
||||
# brasero
|
||||
# kdePackages.k3b
|
||||
# xfce.xfburn
|
||||
|
|
@ -297,18 +301,19 @@
|
|||
gimp
|
||||
gimpPlugins.gmic
|
||||
|
||||
darktable # - Issue with osm-gps-map
|
||||
darktable
|
||||
rawtherapee
|
||||
hugin
|
||||
pngquant
|
||||
|
||||
obs-studio
|
||||
prismlauncher
|
||||
|
||||
|
||||
nextcloud-client
|
||||
pass-wayland
|
||||
isync
|
||||
mu
|
||||
# thunderbird
|
||||
thunderbird
|
||||
# protonmail-desktop
|
||||
|
||||
texliveFull
|
||||
|
|
@ -321,11 +326,11 @@
|
|||
wl-kbptr # Controlling the mouse using the keyboard + optical recognition
|
||||
|
||||
ncdu
|
||||
|
||||
|
||||
# Just for utils
|
||||
# pulseaudio
|
||||
alsa-utils
|
||||
|
||||
|
||||
# For curl scripts
|
||||
jq
|
||||
libnotify
|
||||
|
|
@ -338,6 +343,9 @@
|
|||
|
||||
vial
|
||||
|
||||
# Local LLM AI experiments
|
||||
lmstudio
|
||||
|
||||
] ++ stablePackages;
|
||||
|
||||
|
||||
|
|
@ -388,24 +396,38 @@
|
|||
|
||||
|
||||
# Steam Game Platform
|
||||
#programs.steam = {
|
||||
# enable = true;
|
||||
# # remotePlay.openFirewall = true; # Open ports in the firewall for Steam Remote Play
|
||||
# # dedicatedServer.openFirewall = true; # Open ports in the firewall for Source Dedicated Server
|
||||
# #gamescopeSession.enable = true;
|
||||
programs.steam = {
|
||||
enable = true;
|
||||
# remotePlay.openFirewall = true; # Open ports in the firewall for Steam Remote Play
|
||||
# dedicatedServer.openFirewall = true; # Open ports in the firewall for Source Dedicated Server
|
||||
#gamescopeSession.enable = true;
|
||||
|
||||
# package = with pkgs; steam.override { extraPkgs = pkgs: [
|
||||
# jq
|
||||
# cabextract
|
||||
# wget
|
||||
# git
|
||||
# pkgsi686Linux.libpulseaudio
|
||||
# pkgsi686Linux.freetype
|
||||
# pkgsi686Linux.xorg.libXcursor
|
||||
# pkgsi686Linux.xorg.libXcomposite
|
||||
# pkgsi686Linux.xorg.libXi
|
||||
# ];};
|
||||
#};
|
||||
|
||||
package = with pkgs; steam.override {
|
||||
extraArgs = "-system-composer";
|
||||
|
||||
extraPkgs = pkgs: [
|
||||
jq
|
||||
cabextract
|
||||
wget
|
||||
git
|
||||
pkgsi686Linux.libpulseaudio
|
||||
pkgsi686Linux.freetype
|
||||
pkgsi686Linux.xorg.libXcursor
|
||||
pkgsi686Linux.xorg.libXcomposite
|
||||
pkgsi686Linux.xorg.libXi
|
||||
krb5.out
|
||||
xorg.libXau.out
|
||||
xorg.libXcomposite.out
|
||||
xorg.libXdamage.out
|
||||
xorg.libXdmcp.out
|
||||
xorg.libXfixes.out
|
||||
xorg.libXrandr.out
|
||||
xorg.libXrender.out
|
||||
xorg.libXtst.out
|
||||
];
|
||||
};
|
||||
};
|
||||
programs.gamescope = {
|
||||
enable = true;
|
||||
args = [ "--expose-wayland" ];
|
||||
|
|
@ -496,7 +518,7 @@
|
|||
# Accept android license
|
||||
nixpkgs.config.android_sdk.accept_license = true;
|
||||
|
||||
# Due to NixOS not using FHS paths, many DAWs will not know where to look for VSTs and other plugins. You can solve this by setting
|
||||
# Due to NixOS not using FHS paths, many DAWs will not know where to look for VSTs and other plugins. You can solve this by setting
|
||||
environment.variables = let
|
||||
makePluginPath = format:
|
||||
(lib.strings.makeSearchPath format [
|
||||
|
|
@ -534,6 +556,7 @@
|
|||
programs.nix-ld.libraries = with pkgs; [
|
||||
# Add any missing dynamic libraries for unpackaged programs
|
||||
# here, NOT in environment.systemPackages
|
||||
## Steam
|
||||
icu
|
||||
vulkan-extension-layer
|
||||
vulkan-headers
|
||||
|
|
@ -547,7 +570,45 @@
|
|||
vkd3d-proton
|
||||
vk-bootstrap
|
||||
|
||||
# C/C++ Libraries
|
||||
## Cloakbrowser Chromium
|
||||
# Core system and graphics
|
||||
glib
|
||||
nss
|
||||
nspr
|
||||
atk
|
||||
at-spi2-atk
|
||||
libdrm
|
||||
mesa.drivers # Crucial for hardware acceleration
|
||||
libgbm
|
||||
libGL
|
||||
# X11 / Windowing
|
||||
xorg.libX11
|
||||
xorg.libXcomposite
|
||||
xorg.libXdamage
|
||||
xorg.libXext
|
||||
xorg.libXfixes
|
||||
xorg.libXrandr
|
||||
xorg.libxcb
|
||||
# Wayland (if you use it)
|
||||
wayland
|
||||
# Fonts and rendering
|
||||
pango
|
||||
cairo
|
||||
fontconfig
|
||||
freetype
|
||||
# Media and UI
|
||||
dbus
|
||||
expat
|
||||
cups
|
||||
libxkbcommon
|
||||
alsa-lib
|
||||
# Common compression/security
|
||||
zlib
|
||||
libuuid
|
||||
|
||||
## C/C++ Libraries
|
||||
stdenv.cc.cc
|
||||
stdenv.cc.cc.lib
|
||||
notcurses
|
||||
];
|
||||
|
||||
|
|
@ -602,8 +663,8 @@
|
|||
services.emacs = {
|
||||
enable = true;
|
||||
#package = pkgs.emacs-gtk;
|
||||
package = (pkgs.emacsPackagesFor pkgs.emacs-gtk).withPackages (epkgs: [
|
||||
epkgs.mu4e
|
||||
package = (pkgs.emacsPackagesFor pkgs.emacs-pgtk).withPackages (epkgs: [
|
||||
epkgs.mu4e
|
||||
]);
|
||||
};
|
||||
#systemd.services.emacs = {
|
||||
|
|
@ -644,17 +705,17 @@
|
|||
# Open ports in the firewall.
|
||||
# 3240 - USBIP Port
|
||||
# 1714 to 1764 - KDEConnect
|
||||
# 47984 47989 47990 48010 and 47998 to 48000 / 8000 to 8010 - Sunshine Remote Desktop
|
||||
# 47984 47989 47990 48010 and 47998 to 48000 / 8000 to 8010 - Sunshine Remote Desktop
|
||||
networking.firewall = {
|
||||
allowedTCPPorts = [ 3240 25565 47984 47989 47990 48010 ];
|
||||
allowedTCPPortRanges = [
|
||||
{ from = 1714; to = 1764; }
|
||||
{ from = 27015; to = 27050; }
|
||||
allowedTCPPortRanges = [
|
||||
{ from = 1714; to = 1764; }
|
||||
{ from = 27015; to = 27050; }
|
||||
];
|
||||
allowedUDPPorts = [ 25565 ];
|
||||
allowedUDPPortRanges = [
|
||||
{ from = 1714; to = 1764; }
|
||||
{ from = 27015; to = 27050; }
|
||||
allowedUDPPortRanges = [
|
||||
{ from = 1714; to = 1764; }
|
||||
{ from = 27015; to = 27050; }
|
||||
{ from = 47998; to = 48000; }
|
||||
{ from = 8000; to = 8010; }
|
||||
];
|
||||
|
|
@ -671,118 +732,118 @@
|
|||
|
||||
programs.bash.shellAliases = {
|
||||
"nixos-clean" = "sudo nix-collect-garbage && sudo nix-collect-garbage -d && nix-collect-garbage && nix-collect-garbage -d && sudo nix-store --optimise && nix-store --optimise";
|
||||
"nixos-upgrade" = "cd /etc/nixos && sudo nix flake update && sudo nixos-rebuild-system-flake && cd -";
|
||||
"nixos-upgrade" = "cd /etc/nixos && sudo nix flake update && sudo nixos-rebuild-system-flake-boot && cd -";
|
||||
};
|
||||
|
||||
services.udev.extraRules = ''
|
||||
## Rules file for NetMD devices and HiMD devices in NetMD mode
|
||||
## source: https://usb-ids.gowdy.us/read/UD/054c
|
||||
## last changed: 2011-06-29
|
||||
|
||||
|
||||
## HiMD
|
||||
|
||||
|
||||
# Sony MZ-NH1
|
||||
ATTRS{idVendor}=="054c", ATTRS{idProduct}=="017e", MODE="0664", GROUP="plugdev"
|
||||
|
||||
|
||||
# Sony MZ-NH3D
|
||||
ATTRS{idVendor}=="054c", ATTRS{idProduct}=="0180", MODE="0664", GROUP="plugdev"
|
||||
|
||||
|
||||
# Sony MZ-NH900
|
||||
ATTRS{idVendor}=="054c", ATTRS{idProduct}=="0182", MODE="0664", GROUP="plugdev"
|
||||
|
||||
|
||||
# Sony MZ-NH700/800
|
||||
ATTRS{idVendor}=="054c", ATTRS{idProduct}=="0184", MODE="0664", GROUP="plugdev"
|
||||
|
||||
|
||||
# Sony MZ-NH600/600D
|
||||
ATTRS{idVendor}=="054c", ATTRS{idProduct}=="0186", MODE="0664", GROUP="plugdev"
|
||||
|
||||
|
||||
# Sony MZ-DH10P
|
||||
ATTRS{idVendor}=="054c", ATTRS{idProduct}=="01e9", MODE="0664", GROUP="plugdev"
|
||||
|
||||
|
||||
# Sony MZ-RH10
|
||||
ATTRS{idVendor}=="054c", ATTRS{idProduct}=="0219", MODE="0664", GROUP="plugdev"
|
||||
|
||||
|
||||
# Sony MZ-RH910
|
||||
ATTRS{idVendor}=="054c", ATTRS{idProduct}=="021b", MODE="0664", GROUP="plugdev"
|
||||
|
||||
|
||||
# Sony CMT-AH10
|
||||
ATTRS{idVendor}=="054c", ATTRS{idProduct}=="022c", MODE="0664", GROUP="plugdev"
|
||||
|
||||
|
||||
# Sony DS-HMD1
|
||||
ATTRS{idVendor}=="054c", ATTRS{idProduct}=="023c", MODE="0664", GROUP="plugdev"
|
||||
|
||||
|
||||
# Sony MZ-RH1
|
||||
ATTRS{idVendor}=="054c", ATTRS{idProduct}=="0286", MODE="0664", GROUP="plugdev"
|
||||
|
||||
|
||||
|
||||
|
||||
## NetMD
|
||||
|
||||
|
||||
# Aiwa AM-NX1
|
||||
ATTRS{idVendor}=="054c", ATTRS{idProduct}=="0113", MODE="0664", GROUP="plugdev"
|
||||
|
||||
|
||||
# Aiwa AM-NX9
|
||||
ATTRS{idVendor}=="054c", ATTRS{idProduct}=="014c", MODE="0664", GROUP="plugdev"
|
||||
|
||||
|
||||
# Sharp IM-MT880H/MT899H
|
||||
ATTRS{idVendor}=="04dd", ATTRS{idProduct}=="7202", MODE="0664", GROUP="plugdev"
|
||||
|
||||
|
||||
# Sharp IM-DR400/DR410
|
||||
ATTRS{idVendor}=="04dd", ATTRS{idProduct}=="9013", MODE="0664", GROUP="plugdev"
|
||||
|
||||
|
||||
# Sharp IM-DR420/DR80/DR580 - Kenwood DMC-S9NET
|
||||
ATTRS{idVendor}=="04dd", ATTRS{idProduct}=="9014", MODE="0664", GROUP="plugdev"
|
||||
|
||||
|
||||
# Sony NetMD (unknown model)
|
||||
ATTRS{idVendor}=="054c", ATTRS{idProduct}=="0036", MODE="0664", GROUP="plugdev"
|
||||
|
||||
|
||||
# Sony NetMD MZ-N1
|
||||
ATTRS{idVendor}=="054c", ATTRS{idProduct}=="0075", MODE="0664", GROUP="plugdev"
|
||||
|
||||
|
||||
# Sony NetMD (unknown model)
|
||||
ATTRS{idVendor}=="054c", ATTRS{idProduct}=="007c", MODE="0664", GROUP="plugdev"
|
||||
|
||||
|
||||
# Sony NetMD LAM-1
|
||||
ATTRS{idVendor}=="054c", ATTRS{idProduct}=="0080", MODE="0664", GROUP="plugdev"
|
||||
|
||||
|
||||
# Sony NetMD MDS-JE780/JB980
|
||||
ATTRS{idVendor}=="054c", ATTRS{idProduct}=="0081", MODE="0664", GROUP="plugdev"
|
||||
|
||||
|
||||
# Sony MZ-N505
|
||||
ATTRS{idVendor}=="054c", ATTRS{idProduct}=="0084", MODE="0664", GROUP="plugdev"
|
||||
|
||||
|
||||
# Sony NetMD MZ-S1
|
||||
ATTRS{idVendor}=="054c", ATTRS{idProduct}=="0085", MODE="0664", GROUP="plugdev"
|
||||
|
||||
|
||||
# Sony NetMD MZ-N707
|
||||
ATTRS{idVendor}=="054c", ATTRS{idProduct}=="0086", MODE="0664", GROUP="plugdev"
|
||||
|
||||
|
||||
# Sony MZ-N10
|
||||
ATTRS{idVendor}=="054c", ATTRS{idProduct}=="00c6", MODE="0664", GROUP="plugdev"
|
||||
|
||||
|
||||
# Sony NetMD MZ-N910
|
||||
ATTRS{idVendor}=="054c", ATTRS{idProduct}=="00c7", MODE="0664", GROUP="plugdev"
|
||||
|
||||
|
||||
# Sony NetMD MZ-N710/NF810/NE810
|
||||
ATTRS{idVendor}=="054c", ATTRS{idProduct}=="00c8", MODE="0664", GROUP="plugdev"
|
||||
|
||||
|
||||
# Sony NetMD MZ-N510/NF610
|
||||
ATTRS{idVendor}=="054c", ATTRS{idProduct}=="00c9", MODE="0664", GROUP="plugdev"
|
||||
|
||||
|
||||
# Sony MZ-N410/NF520D
|
||||
ATTRS{idVendor}=="054c", ATTRS{idProduct}=="00ca", MODE="0664", GROUP="plugdev"
|
||||
|
||||
|
||||
# Sony NetMD MZ-NE810/NE910/DN430
|
||||
ATTRS{idVendor}=="054c", ATTRS{idProduct}=="00eb", MODE="0664", GROUP="plugdev"
|
||||
|
||||
|
||||
# Sony NetMD LAM-10
|
||||
ATTRS{idVendor}=="054c", ATTRS{idProduct}=="0101", MODE="0664", GROUP="plugdev"
|
||||
|
||||
|
||||
# Sony MZ-N920
|
||||
ATTRS{idVendor}=="054c", ATTRS{idProduct}=="0188", MODE="0664", GROUP="plugdev"
|
||||
|
||||
|
||||
# Sony NetMD LAM-3
|
||||
ATTRS{idVendor}=="054c", ATTRS{idProduct}=="018a", MODE="0664", GROUP="plugdev"
|
||||
|
||||
|
||||
# Sony NetMD CMT-AH10
|
||||
ATTRS{idVendor}=="054c", ATTRS{idProduct}=="021d", MODE="0664", GROUP="plugdev"
|
||||
|
||||
|
|
|
|||
|
|
@ -0,0 +1,56 @@
|
|||
{ lib, config, pkgs, modulesPath, inputs, ... }:
|
||||
|
||||
let
|
||||
cfg = config.cspark-desktop-ewm-config-1;
|
||||
in
|
||||
{
|
||||
options.cspark-desktop-ewm-config-1 = {
|
||||
enable
|
||||
= lib.mkEnableOption "Enable Custom EWM Desktop Setup 1";
|
||||
};
|
||||
|
||||
config = lib.mkIf cfg.enable {
|
||||
services.gpg-agent = {
|
||||
pinentryPackage = pkgs.pinentry-qt;
|
||||
};
|
||||
|
||||
# Config Files (typically $HOME/.config)
|
||||
xdg.configFile = {
|
||||
"vesktop/themes".source = ./resources/home-manager/.config/vesktop/themes;
|
||||
};
|
||||
|
||||
services.udiskie.enable = true;
|
||||
services.udiskie.tray = "never";
|
||||
|
||||
# Automatically executed on ewm startup
|
||||
home.packages = with pkgs; [
|
||||
gcr
|
||||
|
||||
(writeShellScriptBin "ewm-autostart"
|
||||
''
|
||||
kdeconnect-indicator &
|
||||
'')
|
||||
];
|
||||
|
||||
home.sessionVariables = {
|
||||
QT_QPA_PLATFORMTHEME = "qt6ct";
|
||||
SDL_VIDEODRIVER = "wayland,x11,windows";
|
||||
_JAVA_AWT_WM_NONREPARENTING = "1";
|
||||
SSH_ASKPASS_REQUIRE = "force";
|
||||
SSH_ASKPASS = "/run/current-system/sw/bin/lxqt-openssh-askpass";
|
||||
};
|
||||
#programs.bash = {
|
||||
# initExtra = ''
|
||||
# export DISPLAY=":0"
|
||||
# '';
|
||||
#};
|
||||
|
||||
# Start sway after login if on TTY1 (Default Linux TTY upon boot/login)
|
||||
#programs.bash.profileExtra = ''
|
||||
# if [[ $(tty) == "/dev/tty1" ]]; then
|
||||
# niri-session
|
||||
# exit
|
||||
# fi
|
||||
# '';
|
||||
};
|
||||
}
|
||||
|
|
@ -0,0 +1,231 @@
|
|||
{lib, config, pkgs, modulesPath, inputs, ... }:
|
||||
|
||||
let
|
||||
cfg = config.cspark-desktop-ewm;
|
||||
in
|
||||
{
|
||||
imports =
|
||||
[
|
||||
inputs.ewm.nixosModules.default
|
||||
];
|
||||
|
||||
options.cspark-desktop-ewm = {
|
||||
enable
|
||||
= lib.mkEnableOption "Enable Custom EWM Desktop Setup";
|
||||
};
|
||||
|
||||
config = lib.mkIf cfg.enable {
|
||||
services.libinput.enable = true;
|
||||
|
||||
# For xwayland
|
||||
services.xserver = {
|
||||
enable = true;
|
||||
displayManager.lightdm.enable = false;
|
||||
|
||||
# Remove/disable xterm, we are using eshell.
|
||||
desktopManager.xterm.enable = false;
|
||||
excludePackages = with pkgs; [ xterm ];
|
||||
};
|
||||
programs.xwayland.enable = true;
|
||||
|
||||
# EWM setup
|
||||
programs.ewm = {
|
||||
enable = true;
|
||||
emacsPackage = let
|
||||
patchSource = pkgs.fetchFromGitHub {
|
||||
owner = "minad";
|
||||
repo = "emacs-canvas-patch";
|
||||
rev = "57a28b5cca57de8cce00d1595eb4b66f1d335401"; # Can be a tag, branch, or specific commit hash
|
||||
hash = "sha256-fMdiYPf/7IgvrNovajy565bn5dgh7OCP6KOdZaHTDUQ=";
|
||||
};
|
||||
targetPackage = inputs.emacs-overlay.packages.x86_64-linux.emacs-git-pgtk;
|
||||
in
|
||||
(pkgs.emacsPackagesFor ((targetPackage.overrideAttrs (oldAttrs: {
|
||||
patches =
|
||||
(oldAttrs.patches or []) ++ [
|
||||
# Path to your local patch file or a fetchurl call
|
||||
"${patchSource}/canvas.diff"
|
||||
];
|
||||
})).override {
|
||||
withNativeCompilation = true;
|
||||
withTreeSitter = true;
|
||||
})).withPackages (epkgs: [
|
||||
epkgs.mu4e
|
||||
inputs.ewm.packages.x86_64-linux.default
|
||||
]);
|
||||
};
|
||||
# We will disable this as not needed with EWM
|
||||
services.emacs = {
|
||||
enable = lib.mkForce false;
|
||||
};
|
||||
# The minimal login manager I'm using for EWM
|
||||
services.greetd = {
|
||||
enable = true;
|
||||
settings = {
|
||||
default_session = {
|
||||
command = "${pkgs.greetd.tuigreet}/bin/tuigreet --time";
|
||||
user = "greeter";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
programs.gnupg = {
|
||||
agent.enable = true;
|
||||
agent.pinentryPackage = pkgs.pinentry-qt;
|
||||
};
|
||||
|
||||
environment.systemPackages = with pkgs; [
|
||||
emacs-pgtk
|
||||
|
||||
xorg.libxcb
|
||||
gcr # For GNOME gpg pinentry
|
||||
pinentry-qt
|
||||
|
||||
gtk3 # Includes gtk-launch which is used by counsel-linux-app inside emacs
|
||||
|
||||
wdisplays # Manage wayland displays
|
||||
wlr-randr # Manage wayland displays - xrandr clone
|
||||
wlsunset # Day/night gamma adjustment/filter for wayland
|
||||
brightnessctl # GNU/Linux application to control backlights
|
||||
grim
|
||||
slurp
|
||||
wl-clipboard
|
||||
haskellPackages.gtk-sni-tray # System Tray
|
||||
haskellPackages.status-notifier-item # System Tray
|
||||
|
||||
udiskie # Automounting drives
|
||||
xwayland-satellite # Xwayland support outside your Wayland compositor
|
||||
|
||||
#lxqt.pcmanfm-qt # File Manager
|
||||
nautilus # File Manager
|
||||
lxqt.lxqt-archiver # Archiver
|
||||
qt6Packages.qt6ct # Manage QT6 Themes
|
||||
libsForQt5.qt5ct # Manage QT5 Themes
|
||||
lxappearance # Manage GTK Themes
|
||||
kdePackages.polkit-kde-agent-1 # Polkit Prompt for password prompts etc
|
||||
lxqt.lxqt-openssh-askpass # GUI to query passwords on behalf of SSH agents
|
||||
pavucontrol # Audio control
|
||||
];
|
||||
|
||||
# XDG Portal Integration (For file chooser/screensharing etc)
|
||||
xdg.portal = {
|
||||
enable = true;
|
||||
wlr.enable = true;
|
||||
extraPortals = [
|
||||
pkgs.xdg-desktop-portal-gnome
|
||||
pkgs.xdg-desktop-portal-gtk
|
||||
];
|
||||
config = {
|
||||
ewm = {
|
||||
default = [ "gnome" "gtk" ];
|
||||
# Use GNOME specifically for screencasting
|
||||
"org.freedesktop.impl.portal.Screencast" = [ "gnome" ];
|
||||
"org.freedesktop.impl.portal.Screenshot" = [ "gnome" ];
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
# Whether to enable Qt configuration, including theming.
|
||||
qt.enable = true;
|
||||
# Enable polkit
|
||||
security.polkit.enable = true;
|
||||
# For udiskie
|
||||
services.udisks2.enable = true;
|
||||
|
||||
# KDE Connect
|
||||
programs.kdeconnect.enable = true;
|
||||
|
||||
# Whether to enable GNOME Keyring daemon, a service designed to take care of the user’s security credentials, such as user names and passwords.
|
||||
services.gnome.gnome-keyring.enable = true;
|
||||
|
||||
# GTK themes are not applied in Wayland applications / Window Decorations missing / Cursor looks different
|
||||
programs.dconf.enable = true;
|
||||
|
||||
# Enable CUPS to print documents.
|
||||
services.printing.enable = true;
|
||||
|
||||
# Enable sound with pipewire.
|
||||
# sound.enable = true; Deprecated option
|
||||
hardware.pulseaudio.enable = false;
|
||||
security.rtkit.enable = true;
|
||||
services.pipewire = {
|
||||
enable = true;
|
||||
systemWide = true;
|
||||
|
||||
alsa.enable = true;
|
||||
alsa.support32Bit = true;
|
||||
pulse.enable = true;
|
||||
# # If you want to use JACK applications, uncomment this
|
||||
jack.enable = true;
|
||||
|
||||
# use the example session manager (no others are packaged yet so this is enabled by default,
|
||||
# no need to redefine it in your config for now)
|
||||
#media-session.enable = true;
|
||||
|
||||
# Virtual mic to route processed microphone or other devices simultaneously into
|
||||
extraConfig =
|
||||
{
|
||||
pipewire."91-processed-mic" = {
|
||||
"context.objects" = [
|
||||
{
|
||||
factory = "adapter";
|
||||
args = {
|
||||
"factory.name" = "support.null-audio-sink";
|
||||
"node.name" = "Processed-Mic";
|
||||
"node.description" = "Virtual Processed Microphone";
|
||||
"media.class" = "Audio/Source/Virtual";
|
||||
"audio.position" = "FL,FR";
|
||||
};
|
||||
}
|
||||
];
|
||||
};
|
||||
# For Mopidy
|
||||
pipewire-pulse."10-mopidy.conf" = {
|
||||
"pulse.properties" = {
|
||||
"server.address" = [
|
||||
"unix:native"
|
||||
"tcp:4713"
|
||||
];
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
security.sudo = {
|
||||
extraRules = [
|
||||
{
|
||||
commands = [
|
||||
{
|
||||
command = "/run/current-system/sw/bin/brightnessctl";
|
||||
options = [ "NOPASSWD" ];
|
||||
}
|
||||
];
|
||||
groups = [ "wheel" ];
|
||||
}
|
||||
];
|
||||
};
|
||||
|
||||
programs.ssh = {
|
||||
enableAskPassword = true;
|
||||
askPassword = "/run/current-system/sw/bin/lxqt-openssh-askpass";
|
||||
};
|
||||
|
||||
environment.sessionVariables = {
|
||||
EDITOR="emacsclient -r";
|
||||
QT_QPA_PLATFORMTHEME = "qt6ct";
|
||||
SDL_VIDEODRIVER = "wayland,x11,windows";
|
||||
_JAVA_AWT_WM_NONREPARENTING = "1";
|
||||
SSH_ASKPASS_REQUIRE = "force";
|
||||
SSH_ASKPASS = "/run/current-system/sw/bin/lxqt-openssh-askpass";
|
||||
};
|
||||
environment.variables = {
|
||||
EDITOR="emacsclient -r";
|
||||
QT_QPA_PLATFORMTHEME = "qt6ct";
|
||||
SDL_VIDEODRIVER = "wayland,x11,windows";
|
||||
_JAVA_AWT_WM_NONREPARENTING = "1";
|
||||
SSH_ASKPASS_REQUIRE = "force";
|
||||
SSH_ASKPASS = lib.mkForce "/run/current-system/sw/bin/lxqt-openssh-askpass";
|
||||
};
|
||||
|
||||
};
|
||||
}
|
||||
|
|
@ -0,0 +1,24 @@
|
|||
# -*- conf -*-
|
||||
font=HackNerdFontMono-Regular:size=13
|
||||
shell=bash -c 'nvim +terminal && bash'
|
||||
|
||||
# Gruvbox - Light
|
||||
[colors]
|
||||
background=fbf1c7
|
||||
foreground=3c3836
|
||||
regular0=fbf1c7
|
||||
regular1=cc241d
|
||||
regular2=98971a
|
||||
regular3=d79921
|
||||
regular4=458588
|
||||
regular5=b16286
|
||||
regular6=689d6a
|
||||
regular7=7c6f64
|
||||
bright0=928374
|
||||
bright1=9d0006
|
||||
bright2=79740e
|
||||
bright3=b57614
|
||||
bright4=076678
|
||||
bright5=8f3f71
|
||||
bright6=427b58
|
||||
bright7=3c3836
|
||||
|
|
@ -0,0 +1,24 @@
|
|||
sort=-time
|
||||
layer=overlay
|
||||
background-color=#f9f5d7
|
||||
text-color=#3c3836
|
||||
width=300
|
||||
height=110
|
||||
border-size=4
|
||||
border-color=#d79921
|
||||
border-radius=0
|
||||
icons=0
|
||||
max-icon-size=64
|
||||
default-timeout=5000
|
||||
ignore-timeout=1
|
||||
font=Hack Nerd Font Mono 12
|
||||
|
||||
[urgency=low]
|
||||
border-color=#d79921
|
||||
|
||||
[urgency=normal]
|
||||
border-color=#d79921
|
||||
|
||||
[urgency=high]
|
||||
border-color=#d79921
|
||||
default-timeout=0
|
||||
|
|
@ -0,0 +1,49 @@
|
|||
[dmenu]
|
||||
compact = True
|
||||
dmenu_command = wmenu -N f9f5d7 -n 3c3836 -S 8f3f71 -s fbf1c7 -f "Hack Nerd Font Mono 14"
|
||||
# # Note that dmenu_command can contain arguments as well like:
|
||||
# # `dmenu_command = rofi -dmenu -i -theme nmdm`
|
||||
# # `dmenu_command = rofi -dmenu -width 30 -i`
|
||||
# # `dmenu_command = dmenu -i -l 25 -b -nb #909090 -nf #303030`
|
||||
# # `dmenu_command = fuzzel --dmenu`
|
||||
# # `dmenu_command = wofi --dmenu`
|
||||
# active_chars = ==
|
||||
# highlight = <True or False> # (Default: False) use highlighting instead of active_chars (only applicable to Rofi / Wofi)
|
||||
# highlight_fg = <Color> # (Default: None) foreground color of active connection (only applicable to Wofi)
|
||||
# highlight_bg = <Color> # (Default: None) background color of active connection (only applicable to Wofi)
|
||||
# highlight_bold = <True or False> # (Default: True) make active connection bold (only applicable to Wofi)
|
||||
# compact = <True or False> # (Default: False). Remove extra spacing from display
|
||||
# pinentry = <Pinentry command> # (Default: None) e.g. `pinentry-gtk`
|
||||
# wifi_chars = <string of 4 unicode characters representing 1-4 bars strength>
|
||||
# wifi_chars = ▂▄▆█
|
||||
# wifi_icons = <characters representing signal strength as an icon>
|
||||
# wifi_icons =
|
||||
# format = <Python style format string for the access point entries>
|
||||
# format = {name} {sec} {bars}
|
||||
# # Available variables are:
|
||||
# # * {name} - Access point name
|
||||
# # * {sec} - Security type
|
||||
# # * {signal} - Signal strength on a scale of 0-100
|
||||
# # * {bars} - Bar-based display of signal strength (see wifi_chars)
|
||||
# # * {icon} - Icon-based display of signal strength (see wifi_icons)
|
||||
# # * {max_len_name} and {max_len_sec} are the maximum lengths of {name} / {sec}
|
||||
# # respectively and may be useful for formatting.
|
||||
# list_saved = <True or False> # (Default: False) list saved connections
|
||||
|
||||
[dmenu_passphrase]
|
||||
# # Uses the -password flag for Rofi, -x for bemenu. For dmenu, sets -nb and
|
||||
# # -nf to the same color or uses -P if the dmenu password patch is applied
|
||||
# # https://tools.suckless.org/dmenu/patches/password/
|
||||
# obscure = True
|
||||
# obscure_color = #222222
|
||||
|
||||
[pinentry]
|
||||
# description = <Pinentry description> (Default: Get network password)
|
||||
# prompt = <Pinentry prompt> (Default: Password:)
|
||||
|
||||
[editor]
|
||||
# terminal = <name of terminal program>
|
||||
# gui_if_available = <True or False> (Default: True)
|
||||
|
||||
[nmdm]
|
||||
# rescan_delay = <seconds> # (seconds to wait after a wifi rescan before redisplaying the results)
|
||||
|
|
@ -0,0 +1,494 @@
|
|||
// This config is in the KDL format: https://kdl.dev
|
||||
// "/-" comments out the following node.
|
||||
// Check the wiki for a full description of the configuration:
|
||||
// https://github.com/YaLTeR/niri/wiki/Configuration:-Overview
|
||||
|
||||
// Input device configuration.
|
||||
// Find the full list of options on the wiki:
|
||||
// https://github.com/YaLTeR/niri/wiki/Configuration:-Input
|
||||
input {
|
||||
keyboard {
|
||||
xkb {
|
||||
// You can set rules, model, layout, variant and options.
|
||||
// For more information, see xkeyboard-config(7).
|
||||
|
||||
// For example:
|
||||
layout "gb"
|
||||
// options "grp:win_space_toggle,compose:ralt,ctrl:nocaps"
|
||||
}
|
||||
}
|
||||
|
||||
// Next sections include libinput settings.
|
||||
// Omitting settings disables them, or leaves them at their default values.
|
||||
touchpad {
|
||||
tap
|
||||
// dwt
|
||||
// dwtp
|
||||
natural-scroll
|
||||
// accel-speed 0.2
|
||||
// accel-profile "flat"
|
||||
}
|
||||
|
||||
mouse {
|
||||
// natural-scroll
|
||||
// accel-speed 0.2
|
||||
accel-profile "flat"
|
||||
}
|
||||
|
||||
// Uncomment this to make the mouse warp to the center of newly focused windows.
|
||||
warp-mouse-to-focus
|
||||
|
||||
// Focus windows and outputs automatically when moving the mouse into them.
|
||||
// focus-follows-mouse
|
||||
}
|
||||
|
||||
// You can configure outputs by their name, which you can find
|
||||
// by running `niri msg outputs` while inside a niri instance.
|
||||
// The built-in laptop monitor is usually called "eDP-1".
|
||||
// Find more information on the wiki:
|
||||
// https://github.com/YaLTeR/niri/wiki/Configuration:-Outputs
|
||||
// Remember to uncomment the node by removing "/-"!
|
||||
|
||||
|
||||
// Desktop monitor configuration
|
||||
output "DP-2" {
|
||||
// Uncomment this line to disable this output.
|
||||
// off
|
||||
|
||||
// Resolution and, optionally, refresh rate of the output.
|
||||
// The format is "<width>x<height>" or "<width>x<height>@<refresh rate>".
|
||||
// If the refresh rate is omitted, niri will pick the highest refresh rate
|
||||
// for the resolution.
|
||||
// If the mode is omitted altogether or is invalid, niri will pick one automatically.
|
||||
// Run `niri msg outputs` while inside a niri instance to list all outputs and their modes.
|
||||
mode "1920x1080@60.000"
|
||||
|
||||
// Scale is a floating-point number, but at the moment only integer values work.
|
||||
scale 1.0
|
||||
|
||||
// Transform allows to rotate the output counter-clockwise, valid values are:
|
||||
// normal, 90, 180, 270, flipped, flipped-90, flipped-180 and flipped-270.
|
||||
transform "normal"
|
||||
|
||||
// Position of the output in the global coordinate space.
|
||||
// This affects directional monitor actions like "focus-monitor-left", and cursor movement.
|
||||
// The cursor can only move between directly adjacent outputs.
|
||||
// Output scale and rotation has to be taken into account for positioning:
|
||||
// outputs are sized in logical, or scaled, pixels.
|
||||
// For example, a 3840×2160 output with scale 2.0 will have a logical size of 1920×1080,
|
||||
// so to put another output directly adjacent to it on the right, set its x to 1920.
|
||||
// If the position is unset or results in an overlap, the output is instead placed
|
||||
// automatically.
|
||||
position x=0 y=0
|
||||
}
|
||||
output "HDMI-A-1" {
|
||||
// Uncomment this line to disable this output.
|
||||
// off
|
||||
|
||||
// Resolution and, optionally, refresh rate of the output.
|
||||
// The format is "<width>x<height>" or "<width>x<height>@<refresh rate>".
|
||||
// If the refresh rate is omitted, niri will pick the highest refresh rate
|
||||
// for the resolution.
|
||||
// If the mode is omitted altogether or is invalid, niri will pick one automatically.
|
||||
// Run `niri msg outputs` while inside a niri instance to list all outputs and their modes.
|
||||
mode "1920x1080@60.000"
|
||||
|
||||
// Scale is a floating-point number, but at the moment only integer values work.
|
||||
scale 1.0
|
||||
|
||||
// Transform allows to rotate the output counter-clockwise, valid values are:
|
||||
// normal, 90, 180, 270, flipped, flipped-90, flipped-180 and flipped-270.
|
||||
transform "normal"
|
||||
|
||||
// Position of the output in the global coordinate space.
|
||||
// This affects directional monitor actions like "focus-monitor-left", and cursor movement.
|
||||
// The cursor can only move between directly adjacent outputs.
|
||||
// Output scale and rotation has to be taken into account for positioning:
|
||||
// outputs are sized in logical, or scaled, pixels.
|
||||
// For example, a 3840×2160 output with scale 2.0 will have a logical size of 1920×1080,
|
||||
// so to put another output directly adjacent to it on the right, set its x to 1920.
|
||||
// If the position is unset or results in an overlap, the output is instead placed
|
||||
// automatically.
|
||||
position x=1920 y=0
|
||||
}
|
||||
|
||||
// Settings that influence how windows are positioned and sized.
|
||||
// Find more information on the wiki:
|
||||
// https://github.com/YaLTeR/niri/wiki/Configuration:-Layout
|
||||
layout {
|
||||
// Set gaps around windows in logical pixels.
|
||||
gaps 10
|
||||
|
||||
// When to center a column when changing focus, options are:
|
||||
// - "never", default behavior, focusing an off-screen column will keep at the left
|
||||
// or right edge of the screen.
|
||||
// - "always", the focused column will always be centered.
|
||||
// - "on-overflow", focusing a column will center it if it doesn't fit
|
||||
// together with the previously focused column.
|
||||
center-focused-column "never"
|
||||
|
||||
// You can customize the widths that "switch-preset-column-width" (Mod+R) toggles between.
|
||||
preset-column-widths {
|
||||
// Proportion sets the width as a fraction of the output width, taking gaps into account.
|
||||
// For example, you can perfectly fit four windows sized "proportion 0.25" on an output.
|
||||
// The default preset widths are 1/3, 1/2 and 2/3 of the output.
|
||||
proportion 0.33333
|
||||
proportion 0.5
|
||||
proportion 0.66667
|
||||
|
||||
// Fixed sets the width in logical pixels exactly.
|
||||
// fixed 1920
|
||||
}
|
||||
|
||||
// You can change the default width of the new windows.
|
||||
default-column-width { proportion 0.5; }
|
||||
// If you leave the brackets empty, the windows themselves will decide their initial width.
|
||||
// default-column-width {}
|
||||
|
||||
// By default focus ring and border are rendered as a solid background rectangle
|
||||
// behind windows. That is, they will show up through semitransparent windows.
|
||||
// This is because windows using client-side decorations can have an arbitrary shape.
|
||||
//
|
||||
// If you don't like that, you should uncomment `prefer-no-csd` below.
|
||||
// Niri will draw focus ring and border *around* windows that agree to omit their
|
||||
// client-side decorations.
|
||||
//
|
||||
// Alternatively, you can override it with a window rule called
|
||||
// `draw-border-with-background`.
|
||||
|
||||
// You can change how the focus ring looks.
|
||||
focus-ring {
|
||||
// Uncomment this line to disable the focus ring.
|
||||
off
|
||||
|
||||
// How many logical pixels the ring extends out from the windows.
|
||||
width 4
|
||||
|
||||
// Colors can be set in a variety of ways:
|
||||
// - CSS named colors: "red"
|
||||
// - RGB hex: "#rgb", "#rgba", "#rrggbb", "#rrggbbaa"
|
||||
// - CSS-like notation: "rgb(255, 127, 0)", rgba(), hsl() and a few others.
|
||||
|
||||
// Color of the ring on the active monitor.
|
||||
active-color "#d79921"
|
||||
|
||||
// Color of the ring on inactive monitors.
|
||||
inactive-color "#282828"
|
||||
|
||||
// You can also use gradients. They take precedence over solid colors.
|
||||
// Gradients are rendered the same as CSS linear-gradient(angle, from, to).
|
||||
// The angle is the same as in linear-gradient, and is optional,
|
||||
// defaulting to 180 (top-to-bottom gradient).
|
||||
// You can use any CSS linear-gradient tool on the web to set these up.
|
||||
//
|
||||
// active-gradient from="#80c8ff" to="#bbddff" angle=45
|
||||
|
||||
// You can also color the gradient relative to the entire view
|
||||
// of the workspace, rather than relative to just the window itself.
|
||||
// To do that, set relative-to="workspace-view".
|
||||
//
|
||||
// inactive-gradient from="#505050" to="#808080" angle=45 relative-to="workspace-view"
|
||||
}
|
||||
|
||||
// You can also add a border. It's similar to the focus ring, but always visible.
|
||||
border {
|
||||
// The settings are the same as for the focus ring.
|
||||
// If you enable the border, you probably want to disable the focus ring.
|
||||
// off
|
||||
|
||||
width 4
|
||||
active-color "#d79921"
|
||||
inactive-color "#282828"
|
||||
|
||||
// active-gradient from="#ffbb66" to="#ffc880" angle=45 relative-to="workspace-view"
|
||||
// inactive-gradient from="#505050" to="#808080" angle=45 relative-to="workspace-view"
|
||||
}
|
||||
|
||||
// Struts shrink the area occupied by windows, similarly to layer-shell panels.
|
||||
// You can think of them as a kind of outer gaps. They are set in logical pixels.
|
||||
// Left and right struts will cause the next window to the side to always be visible.
|
||||
// Top and bottom struts will simply add outer gaps in addition to the area occupied by
|
||||
// layer-shell panels and regular gaps.
|
||||
struts {
|
||||
// left 64
|
||||
// right 64
|
||||
// top 64
|
||||
// bottom 64
|
||||
}
|
||||
}
|
||||
|
||||
// Add lines like this to spawn processes at startup.
|
||||
// Note that running niri as a session supports xdg-desktop-autostart,
|
||||
// which may be more convenient to use.
|
||||
// spawn-at-startup "foot" "-e" "man foot"
|
||||
spawn-at-startup "niri-autostart"
|
||||
|
||||
// Uncomment this line to ask the clients to omit their client-side decorations if possible.
|
||||
// If the client will specifically ask for CSD, the request will be honored.
|
||||
// Additionally, clients will be informed that they are tiled, removing some rounded corners.
|
||||
prefer-no-csd
|
||||
|
||||
// You can change the path where screenshots are saved.
|
||||
// A ~ at the front will be expanded to the home directory.
|
||||
// The path is formatted with strftime(3) to give you the screenshot date and time.
|
||||
screenshot-path "~/Pictures/Screenshots/Screenshot from %Y-%m-%d %H-%M-%S.png"
|
||||
|
||||
// You can also set this to null to disable saving screenshots to disk.
|
||||
// screenshot-path null
|
||||
|
||||
// Animation settings.
|
||||
// The wiki explains how to configure individual animations:
|
||||
// https://github.com/YaLTeR/niri/wiki/Configuration:-Animations
|
||||
animations {
|
||||
// Uncomment to turn off all animations.
|
||||
// off
|
||||
|
||||
// Slow down all animations by this factor. Values below 1 speed them up instead.
|
||||
// slowdown 3.0
|
||||
}
|
||||
|
||||
// Window rules let you adjust behavior for individual windows.
|
||||
// Find more information on the wiki:
|
||||
// https://github.com/YaLTeR/niri/wiki/Configuration:-Window-Rules
|
||||
|
||||
// Work around WezTerm's initial configure bug
|
||||
// by setting an empty default-column-width.
|
||||
window-rule {
|
||||
// This regular expression is intentionally made as specific as possible,
|
||||
// since this is the default config, and we want no false positives.
|
||||
// You can get away with just app-id="wezterm" if you want.
|
||||
match app-id=r#"^org\.wezfurlong\.wezterm$"#
|
||||
default-column-width {}
|
||||
}
|
||||
|
||||
// Example: block out two password managers from screen capture.
|
||||
// (This example rule is commented out with a "/-" in front.)
|
||||
/-window-rule {
|
||||
match app-id=r#"^org\.keepassxc\.KeePassXC$"#
|
||||
match app-id=r#"^org\.gnome\.World\.Secrets$"#
|
||||
|
||||
block-out-from "screen-capture"
|
||||
|
||||
// Use this instead if you want them visible on third-party screenshot tools.
|
||||
// block-out-from "screencast"
|
||||
}
|
||||
|
||||
binds {
|
||||
// Keys consist of modifiers separated by + signs, followed by an XKB key name
|
||||
// in the end. To find an XKB name for a particular key, you may use a program
|
||||
// like wev.
|
||||
//
|
||||
// "Mod" is a special modifier equal to Super when running on a TTY, and to Alt
|
||||
// when running as a winit window.
|
||||
//
|
||||
// Most actions that you can bind here can also be invoked programmatically with
|
||||
// `niri msg action do-something`.
|
||||
|
||||
// Mod-Shift-/, which is usually the same as Mod-?,
|
||||
// shows a list of important hotkeys.
|
||||
Alt+Shift+Slash { show-hotkey-overlay; }
|
||||
|
||||
// Suggested binds for running programs: terminal, app launcher, screen locker.
|
||||
Alt+Return { spawn "foot"; }
|
||||
Alt+D { spawn "fuzzel-xwayland"; }
|
||||
Super+L { spawn "swaylock"; }
|
||||
Ctrl+Alt+P { spawn "fuzzel-pass"; }
|
||||
|
||||
// You can also use a shell:
|
||||
// Alt+T { spawn "bash" "-c" "notify-send hello && exec alacritty"; }
|
||||
|
||||
// Example volume keys mappings for PipeWire & WirePlumber.
|
||||
// The allow-when-locked=true property makes them work even when the session is locked.
|
||||
XF86AudioRaiseVolume allow-when-locked=true { spawn "wpctl" "set-volume" "@DEFAULT_AUDIO_SINK@" "0.1+"; }
|
||||
XF86AudioLowerVolume allow-when-locked=true { spawn "wpctl" "set-volume" "@DEFAULT_AUDIO_SINK@" "0.1-"; }
|
||||
XF86AudioMute allow-when-locked=true { spawn "wpctl" "set-mute" "@DEFAULT_AUDIO_SINK@" "toggle"; }
|
||||
XF86AudioMicMute allow-when-locked=true { spawn "wpctl" "set-mute" "@DEFAULT_AUDIO_SOURCE@" "toggle"; }
|
||||
|
||||
Alt+W { close-window; }
|
||||
|
||||
Alt+Left { focus-column-left; }
|
||||
Alt+Down { focus-window-down; }
|
||||
Alt+Up { focus-window-up; }
|
||||
Alt+Right { focus-column-right; }
|
||||
Alt+H { focus-column-left; }
|
||||
Alt+Ctrl+J { focus-window-down; }
|
||||
Alt+Ctrl+K { focus-window-up; }
|
||||
Alt+L { focus-column-right; }
|
||||
|
||||
Alt+Shift+Left { move-column-left; }
|
||||
Alt+Shift+Down { move-window-down; }
|
||||
Alt+Shift+Up { move-window-up; }
|
||||
Alt+Shift+Right { move-column-right; }
|
||||
Alt+Shift+H { move-column-left; }
|
||||
Alt+Shift+Ctrl+J { move-window-down; }
|
||||
Alt+Shift+Ctrl+K { move-window-up; }
|
||||
Alt+Shift+L { move-column-right; }
|
||||
|
||||
// Alternative commands that move across workspaces when reaching
|
||||
// the first or last window in a column.
|
||||
// Alt+J { focus-window-or-workspace-down; }
|
||||
// Alt+K { focus-window-or-workspace-up; }
|
||||
// Alt+Ctrl+J { move-window-down-or-to-workspace-down; }
|
||||
// Alt+Ctrl+K { move-window-up-or-to-workspace-up; }
|
||||
|
||||
// Alt+Home { focus-column-first; }
|
||||
// Alt+End { focus-column-last; }
|
||||
// Alt+Ctrl+Home { move-column-to-first; }
|
||||
// Alt+Ctrl+End { move-column-to-last; }
|
||||
|
||||
// Alt+Shift+Left { focus-monitor-left; }
|
||||
// Alt+Shift+Down { focus-monitor-down; }
|
||||
// Alt+Shift+Up { focus-monitor-up; }
|
||||
// Alt+Shift+Right { focus-monitor-right; }
|
||||
Alt+O { focus-monitor-left; }
|
||||
// Alt+Shift+J { focus-monitor-down; }
|
||||
// Alt+Shift+K { focus-monitor-up; }
|
||||
Alt+P { focus-monitor-right; }
|
||||
|
||||
// Alt+Shift+Ctrl+Left { move-column-to-monitor-left; }
|
||||
// Alt+Shift+Ctrl+Down { move-column-to-monitor-down; }
|
||||
// Alt+Shift+Ctrl+Up { move-column-to-monitor-up; }
|
||||
// Alt+Shift+Ctrl+Right { move-column-to-monitor-right; }
|
||||
Alt+Shift+O { move-column-to-monitor-left; }
|
||||
// Alt+Shift+Ctrl+J { move-column-to-monitor-down; }
|
||||
// Alt+Shift+Ctrl+K { move-column-to-monitor-up; }
|
||||
Alt+Shift+P { move-column-to-monitor-right; }
|
||||
|
||||
// Alternatively, there are commands to move just a single window:
|
||||
// Alt+Shift+Ctrl+Left { move-window-to-monitor-left; }
|
||||
// ...
|
||||
|
||||
// And you can also move a whole workspace to another monitor:
|
||||
// Alt+Shift+Ctrl+Left { move-workspace-to-monitor-left; }
|
||||
// ...
|
||||
|
||||
Alt+J { focus-workspace-down; }
|
||||
Alt+K { focus-workspace-up; }
|
||||
// Alt+U { focus-workspace-down; }
|
||||
// Alt+I { focus-workspace-up; }
|
||||
Alt+Shift+J { move-column-to-workspace-down; }
|
||||
Alt+Shift+K { move-column-to-workspace-up; }
|
||||
// Alt+Ctrl+U { move-column-to-workspace-down; }
|
||||
// Alt+Ctrl+I { move-column-to-workspace-up; }
|
||||
|
||||
// Alternatively, there are commands to move just a single window:
|
||||
// Alt+Ctrl+Page_Down { move-window-to-workspace-down; }
|
||||
// ...
|
||||
|
||||
// Alt+Shift+Page_Down { move-workspace-down; }
|
||||
// Alt+Shift+Page_Up { move-workspace-up; }
|
||||
// Alt+Shift+U { move-workspace-down; }
|
||||
// Alt+Shift+I { move-workspace-up; }
|
||||
|
||||
// You can bind mouse wheel scroll ticks using the following syntax.
|
||||
// These binds will change direction based on the natural-scroll setting.
|
||||
//
|
||||
// To avoid scrolling through workspaces really fast, you can use
|
||||
// the cooldown-ms property. The bind will be rate-limited to this value.
|
||||
// You can set a cooldown on any bind, but it's most useful for the wheel.
|
||||
Alt+WheelScrollDown cooldown-ms=150 { focus-workspace-down; }
|
||||
Alt+WheelScrollUp cooldown-ms=150 { focus-workspace-up; }
|
||||
Alt+Shift+WheelScrollDown cooldown-ms=150 { move-column-to-workspace-down; }
|
||||
Alt+Shift+WheelScrollUp cooldown-ms=150 { move-column-to-workspace-up; }
|
||||
|
||||
Alt+WheelScrollRight { focus-column-right; }
|
||||
Alt+WheelScrollLeft { focus-column-left; }
|
||||
Alt+Shift+WheelScrollRight { move-column-right; }
|
||||
Alt+Shift+WheelScrollLeft { move-column-left; }
|
||||
|
||||
// Usually scrolling up and down with Shift in applications results in
|
||||
// horizontal scrolling; these binds replicate that.
|
||||
// Alt+Shift+WheelScrollDown { focus-column-right; }
|
||||
// Alt+Shift+WheelScrollUp { focus-column-left; }
|
||||
// Alt+Ctrl+Shift+WheelScrollDown { move-column-right; }
|
||||
// Alt+Ctrl+Shift+WheelScrollUp { move-column-left; }
|
||||
|
||||
// Similarly, you can bind touchpad scroll "ticks".
|
||||
// Touchpad scrolling is continuous, so for these binds it is split into
|
||||
// discrete intervals.
|
||||
// These binds are also affected by touchpad's natural-scroll, so these
|
||||
// example binds are "inverted", since we have natural-scroll enabled for
|
||||
// touchpads by default.
|
||||
// Alt+TouchpadScrollDown { spawn "wpctl" "set-volume" "@DEFAULT_AUDIO_SINK@" "0.02+"; }
|
||||
// Alt+TouchpadScrollUp { spawn "wpctl" "set-volume" "@DEFAULT_AUDIO_SINK@" "0.02-"; }
|
||||
|
||||
// You can refer to workspaces by index. However, keep in mind that
|
||||
// niri is a dynamic workspace system, so these commands are kind of
|
||||
// "best effort". Trying to refer to a workspace index bigger than
|
||||
// the current workspace count will instead refer to the bottommost
|
||||
// (empty) workspace.
|
||||
//
|
||||
// For example, with 2 workspaces + 1 empty, indices 3, 4, 5 and so on
|
||||
// will all refer to the 3rd workspace.
|
||||
Alt+1 { focus-workspace 1; }
|
||||
Alt+2 { focus-workspace 2; }
|
||||
Alt+3 { focus-workspace 3; }
|
||||
Alt+4 { focus-workspace 4; }
|
||||
Alt+5 { focus-workspace 5; }
|
||||
Alt+6 { focus-workspace 6; }
|
||||
Alt+7 { focus-workspace 7; }
|
||||
Alt+8 { focus-workspace 8; }
|
||||
Alt+9 { focus-workspace 9; }
|
||||
Alt+Shift+1 { move-column-to-workspace 1; }
|
||||
Alt+Shift+2 { move-column-to-workspace 2; }
|
||||
Alt+Shift+3 { move-column-to-workspace 3; }
|
||||
Alt+Shift+4 { move-column-to-workspace 4; }
|
||||
Alt+Shift+5 { move-column-to-workspace 5; }
|
||||
Alt+Shift+6 { move-column-to-workspace 6; }
|
||||
Alt+Shift+7 { move-column-to-workspace 7; }
|
||||
Alt+Shift+8 { move-column-to-workspace 8; }
|
||||
Alt+Shift+9 { move-column-to-workspace 9; }
|
||||
|
||||
// Alternatively, there are commands to move just a single window:
|
||||
// Alt+Ctrl+1 { move-window-to-workspace 1; }
|
||||
|
||||
// Switches focus between the current and the previous workspace.
|
||||
// Alt+Tab { focus-workspace-previous; }
|
||||
|
||||
// Alt+Comma { consume-window-into-column; }
|
||||
// Alt+Period { expel-window-from-column; }
|
||||
|
||||
// There are also commands that consume or expel a single window to the side.
|
||||
// Alt+BracketLeft { consume-or-expel-window-left; }
|
||||
// Alt+BracketRight { consume-or-expel-window-right; }
|
||||
|
||||
// Alt+R { switch-preset-column-width; }
|
||||
// Alt+Shift+R { reset-window-height; }
|
||||
Alt+F { maximize-column; }
|
||||
Alt+Shift+F { fullscreen-window; }
|
||||
Alt+C { center-column; }
|
||||
|
||||
// Finer width adjustments.
|
||||
// This command can also:
|
||||
// * set width in pixels: "1000"
|
||||
// * adjust width in pixels: "-5" or "+5"
|
||||
// * set width as a percentage of screen width: "25%"
|
||||
// * adjust width as a percentage of screen width: "-10%" or "+10%"
|
||||
// Pixel sizes use logical, or scaled, pixels. I.e. on an output with scale 2.0,
|
||||
// set-column-width "100" will make the column occupy 200 physical screen pixels.
|
||||
Alt+Minus { set-column-width "-10%"; }
|
||||
Alt+Equal { set-column-width "+10%"; }
|
||||
|
||||
// Finer height adjustments when in column with other windows.
|
||||
Alt+Shift+Minus { set-window-height "-10%"; }
|
||||
Alt+Shift+Equal { set-window-height "+10%"; }
|
||||
|
||||
// Actions to switch layouts.
|
||||
// Note: if you uncomment these, make sure you do NOT have
|
||||
// a matching layout switch hotkey configured in xkb options above.
|
||||
// Having both at once on the same hotkey will break the switching,
|
||||
// since it will switch twice upon pressing the hotkey (once by xkb, once by niri).
|
||||
// Alt+Space { switch-layout "next"; }
|
||||
// Alt+Shift+Space { switch-layout "prev"; }
|
||||
|
||||
Print { screenshot; }
|
||||
Alt+Print { screenshot-screen; }
|
||||
Alt+Shift+Print { screenshot-window; }
|
||||
|
||||
// The quit action will show a confirmation dialog to avoid accidental exits.
|
||||
Alt+Shift+E { quit; }
|
||||
|
||||
// Powers off the monitors. To turn them back on, do any input like
|
||||
// moving the mouse or pressing any other key.
|
||||
// Alt+Shift+P { power-off-monitors; }
|
||||
}
|
||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
|
|
@ -0,0 +1,68 @@
|
|||
{
|
||||
"layer": "top",
|
||||
"position": "top",
|
||||
"modules-left": ["cpu", "memory", "disk"],
|
||||
"modules-center": ["clock"],
|
||||
"modules-right": ["network", "pulseaudio", "tray", "battery"],
|
||||
"clock": {
|
||||
"format": " {:%H:%M}",
|
||||
"format-alt": " {:%a %b %d}",
|
||||
"tooltip": false
|
||||
},
|
||||
"battery": {
|
||||
"states": {
|
||||
"good": 95,
|
||||
"warning": 30,
|
||||
"critical": 15
|
||||
},
|
||||
"bat":"BAT0",
|
||||
"format": "{icon} {capacity}%",
|
||||
"format-charging": " {capacity}%",
|
||||
"format-plugged": " {capacity}%",
|
||||
"format-discharging": " {capacity}%",
|
||||
"format-alt": "{icon} {time}",
|
||||
"format-icons": ["", "", "", "", ""]
|
||||
},
|
||||
"network": {
|
||||
"format": "{ifname}",
|
||||
"format-wifi": " {essid}",
|
||||
"format-ethernet": " {ifname}",
|
||||
"format-disconnected": " No Internet",
|
||||
"tooltip-format-wifi": "{signalStrength}%",
|
||||
"max-length": 20
|
||||
},
|
||||
"pulseaudio": {
|
||||
"format": "{icon} {volume}%",
|
||||
"format-bluetooth": "{icon} {volume}%",
|
||||
"format-muted": "",
|
||||
"format-icons": {
|
||||
"headphone": "",
|
||||
"hands-free": "",
|
||||
"headset": "",
|
||||
"phone": "",
|
||||
"portable": "",
|
||||
"car": "",
|
||||
"default": ["", ""]
|
||||
},
|
||||
"scroll-step": 1,
|
||||
"on-click": "pavucontrol"
|
||||
},
|
||||
"tray": {
|
||||
"spacing": 10
|
||||
},
|
||||
"memory": {
|
||||
"interval": 10,
|
||||
"format": " {}%",
|
||||
"max-length": 10
|
||||
},
|
||||
"cpu": {
|
||||
"interval": 10,
|
||||
"format": " {}%",
|
||||
"max-length": 10
|
||||
},
|
||||
"disk": {
|
||||
"interval": 30,
|
||||
"format": " {specific_free:0.2f} GB",
|
||||
"unit": "GB"
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,2 @@
|
|||
language=$(swaymsg -r -t get_inputs | awk '/1:1:AT_Translated_Set_2_keyboard/;/xkb_active_layout_name/' | grep -A1 '\b1:1:AT_Translated_Set_2_keyboard\b' | grep "xkb_active_layout_name" | awk -F '"' '{print $4}')
|
||||
echo $language
|
||||
|
|
@ -0,0 +1,14 @@
|
|||
media=$(playerctl metadata -f "({{playerName}}) {{artist}} - {{title}}")
|
||||
player_status=$(playerctl status)
|
||||
|
||||
if [[ $player_status = "Playing" ]]
|
||||
then
|
||||
song_status=''
|
||||
elif [[ $player_status = "Paused" ]]
|
||||
then
|
||||
song_status=''
|
||||
else
|
||||
song_status='Music stopped'
|
||||
fi
|
||||
|
||||
echo -e "$song_status $media"
|
||||
|
|
@ -0,0 +1,15 @@
|
|||
network=$(ip route get 1.1.1.1 | grep -Po '(?<=dev\s)\w+' | cut -f1 -d ' ')
|
||||
interface_easyname=$(dmesg | grep $network | grep renamed | awk 'NF>1{print $NF}')
|
||||
ping=$(ping -c 1 www.google.com | tail -1| awk '{print $4}' | cut -d '/' -f 2 | cut -d '.' -f 1)
|
||||
|
||||
if ! [ $network ]
|
||||
then
|
||||
network_active="⛔"
|
||||
elif [[ $interface_easyname == *"wlan"* ]]
|
||||
then
|
||||
network_active=""
|
||||
else
|
||||
network_active=""
|
||||
fi
|
||||
|
||||
echo "{\"text\": \""$network_active $interface_easyname \\n \($ping ms\)"\"}"
|
||||
|
|
@ -0,0 +1,2 @@
|
|||
ping=$(ping -c 1 www.google.com | tail -1| awk '{print $4}' | cut -d '/' -f 2 | cut -d '.' -f 1)
|
||||
echo "($ping ms)"
|
||||
|
|
@ -0,0 +1,84 @@
|
|||
@define-color background-color rgb (40, 40, 40);
|
||||
@define-color foreground-color rgb (235, 219, 178);
|
||||
|
||||
* {
|
||||
font-size: 13px;
|
||||
font-family: "Hack Nerd Font";
|
||||
}
|
||||
|
||||
window#waybar {
|
||||
background: rgba(0,0,0,0);
|
||||
}
|
||||
|
||||
#battery {
|
||||
margin: 3px 3px 3px 3px;
|
||||
background: @background-color;
|
||||
color: @foreground-color;
|
||||
padding: 5px;
|
||||
border-radius: 10px;
|
||||
}
|
||||
|
||||
#clock {
|
||||
margin: 3px 0px 3px 3px;
|
||||
padding: 5px;
|
||||
background: #fbf1c7;
|
||||
background: @background-color;
|
||||
color: @foreground-color;
|
||||
border-radius: 10px;
|
||||
}
|
||||
|
||||
#custom-keyboard {
|
||||
background: @background-color;
|
||||
color: @foreground-color;
|
||||
padding: 5px 5px 5px 7px;
|
||||
margin: 3px 0px 3px 3px;
|
||||
border-radius: 10px;
|
||||
}
|
||||
|
||||
#pulseaudio {
|
||||
margin: 3px 3px 3px 0px;
|
||||
padding: 5px 7px 5px 5px;
|
||||
background: @background-color;
|
||||
color: @foreground-color;
|
||||
border-radius: 10px;
|
||||
}
|
||||
|
||||
#network {
|
||||
margin: 3px 3px 3px 0px;
|
||||
padding: 5px 7px 5px 5px;
|
||||
background: @background-color;
|
||||
color: @foreground-color;
|
||||
border-radius: 10px;
|
||||
}
|
||||
|
||||
#memory {
|
||||
margin: 3px 3px 3px 0px;
|
||||
padding: 5px 7px 5px 5px;
|
||||
background: @background-color;
|
||||
color: @foreground-color;
|
||||
border-radius: 10px;
|
||||
}
|
||||
|
||||
#cpu {
|
||||
margin: 3px 3px 3px 3px;
|
||||
padding: 5px 7px 5px 5px;
|
||||
background: @background-color;
|
||||
color: @foreground-color;
|
||||
border-radius: 10px;
|
||||
}
|
||||
|
||||
#disk {
|
||||
margin: 3px 3px 3px 0px;
|
||||
padding: 5px 7px 5px 5px;
|
||||
background: @background-color;
|
||||
color: @foreground-color;
|
||||
border-radius: 10px;
|
||||
}
|
||||
|
||||
#tray {
|
||||
margin: 3px 3px 3px 0px;
|
||||
padding: 5px 7px 5px 5px;
|
||||
background: @background-color;
|
||||
color: @foreground-color;
|
||||
border-radius: 10px;
|
||||
}
|
||||
|
|
@ -4,9 +4,9 @@ let
|
|||
cfg = config.cspark-desktop-exwm;
|
||||
in
|
||||
{
|
||||
|
||||
|
||||
options.cspark-desktop-exwm = {
|
||||
enable
|
||||
enable
|
||||
= lib.mkEnableOption "Enable Custom EXWM Desktop Setup";
|
||||
};
|
||||
|
||||
|
|
@ -44,7 +44,7 @@ in
|
|||
gtk3 # Includes gtk-launch which is used by counsel-linux-app inside emacs
|
||||
|
||||
emacs-gtk
|
||||
#((inputs.emacs-overlay.packages.x86_64-linux.emacs-unstable-pgtk.overrideAttrs (oldAttrs: {
|
||||
#((inputs.emacs-overlay.packages.x86_64-linux.emacs-unstable-pgtk.overrideAttrs (oldAttrs: {
|
||||
# buildInputs = oldAttrs.buildInputs ++ [ pkgs.webkitgtk ];
|
||||
#})).override {
|
||||
# withXwidgets = true;
|
||||
|
|
@ -52,7 +52,7 @@ in
|
|||
# inputs.emacs-overlay.packages.x86_64-linux.emacs-unstable-pgtk
|
||||
#emacs30-gtk3 # Emacs 30 currently bugged with lsp-bridge, see https://github.com/manateelazycat/lsp-bridge/issues/1123
|
||||
|
||||
light # GNU/Linux application to control backlights
|
||||
brightnessctl # GNU/Linux application to control backlights
|
||||
|
||||
udiskie # Automounting drives
|
||||
dunst # Notification daemon
|
||||
|
|
@ -89,7 +89,7 @@ in
|
|||
};
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
# XDG Portal Integration (For file chooser/screensharing etc)
|
||||
xdg.portal.enable = true;
|
||||
xdg.portal.extraPortals = with pkgs; [ xdg-desktop-portal-gnome xdg-desktop-portal-gtk ];
|
||||
|
|
@ -101,7 +101,7 @@ in
|
|||
services.udisks2.enable = true;
|
||||
|
||||
# KDE Connect
|
||||
programs.kdeconnect.enable = true;
|
||||
programs.kdeconnect.enable = true;
|
||||
|
||||
# Whether to enable GNOME Keyring daemon, a service designed to take care of the user’s security credentials, such as user names and passwords.
|
||||
services.gnome.gnome-keyring.enable = true;
|
||||
|
|
@ -128,13 +128,25 @@ in
|
|||
# no need to redefine it in your config for now)
|
||||
#media-session.enable = true;
|
||||
};
|
||||
# For Mopidy
|
||||
services.pipewire.extraConfig = {
|
||||
pipewire-pulse."10-mopidy.conf" = {
|
||||
"pulse.properties" = {
|
||||
"server.address" = [
|
||||
"unix:native"
|
||||
"tcp:4713"
|
||||
];
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
security.sudo = {
|
||||
extraRules = [
|
||||
{
|
||||
commands = [
|
||||
{
|
||||
command = "/run/current-system/sw/bin/light";
|
||||
command = "/run/current-system/sw/bin/brightnessctl";
|
||||
options = [ "NOPASSWD" ];
|
||||
}
|
||||
];
|
||||
|
|
@ -149,8 +161,7 @@ in
|
|||
};
|
||||
|
||||
environment.sessionVariables = {
|
||||
# EDITOR="emacsclient -c";
|
||||
EDITOR="nvim";
|
||||
EDITOR="emacsclient -r";
|
||||
QT_QPA_PLATFORMTHEME = "qt6ct";
|
||||
SDL_VIDEODRIVER = "x11,windows";
|
||||
_JAVA_AWT_WM_NONREPARENTING = "1";
|
||||
|
|
@ -158,8 +169,7 @@ in
|
|||
SSH_ASKPASS = "/run/current-system/sw/bin/lxqt-openssh-askpass";
|
||||
};
|
||||
environment.variables = {
|
||||
# EDITOR="emacsclient -c";
|
||||
EDITOR="nvim";
|
||||
EDITOR="emacsclient -r";
|
||||
QT_QPA_PLATFORMTHEME = "qt6ct";
|
||||
SDL_VIDEODRIVER = "x11,windows";
|
||||
_JAVA_AWT_WM_NONREPARENTING = "1";
|
||||
|
|
|
|||
|
|
@ -35,7 +35,7 @@ in
|
|||
wdisplays # Manage wayland displays
|
||||
wlr-randr # Manage wayland displays - xrandr clone
|
||||
wlsunset # Day/night gamma adjustment/filter for wayland
|
||||
light # GNU/Linux application to control backlights
|
||||
brightnessctl # GNU/Linux application to control backlights
|
||||
mako # Notification Daemon
|
||||
wlprop # Clone of X11 xprop for wayland (To get window class names etc)
|
||||
wev # Clone of X11 xev for wayland
|
||||
|
|
@ -165,7 +165,7 @@ in
|
|||
{
|
||||
commands = [
|
||||
{
|
||||
command = "/run/current-system/sw/bin/light";
|
||||
command = "/run/current-system/sw/bin/brightnessctl";
|
||||
options = [ "NOPASSWD" ];
|
||||
}
|
||||
];
|
||||
|
|
|
|||
|
|
@ -335,8 +335,8 @@ binds {
|
|||
XF86AudioMicMute allow-when-locked=true { spawn "toggle-mic"; }
|
||||
Alt+Delete allow-when-locked=true { spawn "toggle-mic"; }
|
||||
|
||||
XF86MonBrightnessUp allow-when-locked=true { spawn "sudo" "light" "-A" "10"; }
|
||||
XF86MonBrightnessDown allow-when-locked=true { spawn "sudo" "light" "-U" "10"; }
|
||||
XF86MonBrightnessUp allow-when-locked=true { spawn "sudo" "brightnessctl" "set" "+10%"; }
|
||||
XF86MonBrightnessDown allow-when-locked=true { spawn "sudo" "brightnessctl" "set" "10%-"; }
|
||||
|
||||
Alt+W { close-window; }
|
||||
|
||||
|
|
|
|||
|
|
@ -22,7 +22,7 @@ in
|
|||
networkmanager_dmenu # Network Manager dmenu script
|
||||
wdisplays # Manage wayland displays
|
||||
wlsunset # Day/night gamma adjustment/filter for wayland
|
||||
light # GNU/Linux application to control backlights
|
||||
brightnessctl # GNU/Linux application to control backlights
|
||||
sway-contrib.grimshot # Screenshot tool for wayland
|
||||
mako # Notification Daemon
|
||||
wlprop # Clone of X11 xprop for wayland (To get window class names etc)
|
||||
|
|
@ -79,7 +79,7 @@ in
|
|||
{
|
||||
commands = [
|
||||
{
|
||||
command = "/run/current-system/sw/bin/light";
|
||||
command = "/run/current-system/sw/bin/brightnessctl";
|
||||
options = [ "NOPASSWD" ];
|
||||
}
|
||||
];
|
||||
|
|
|
|||
Loading…
Reference in New Issue