Init EXWM config, switch to it on desktop configuration. Update NixOS flake
This commit is contained in:
parent
0fe8620896
commit
42df6e291a
|
|
@ -13,6 +13,7 @@
|
|||
./../../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
|
||||
inputs.home-manager.nixosModules.default
|
||||
];
|
||||
|
||||
|
|
@ -28,9 +29,10 @@
|
|||
|
||||
# Custom desktop environments
|
||||
# cspark-desktop-plasma.enable = true;
|
||||
cspark-desktop-gnome.enable = true;
|
||||
# cspark-desktop-gnome.enable = true;
|
||||
# cspark-desktop-sway.enable = true;
|
||||
# cspark-desktop-niri.enable = true;
|
||||
cspark-desktop-exwm.enable = true;
|
||||
|
||||
# My audio interface has issues after coming out from suspend/hibernate, this will reset it to fix it when necessary.
|
||||
systemd.services.audiointerface-reset-unbind = {
|
||||
|
|
|
|||
|
|
@ -9,6 +9,7 @@
|
|||
./../../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
|
||||
];
|
||||
|
||||
# KDE Connect
|
||||
|
|
@ -17,9 +18,10 @@
|
|||
|
||||
# Custom Desktop Configurations
|
||||
# cspark-desktop-plasma-config-1.enable = true;
|
||||
cspark-desktop-gnome-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-exwm-config-1.enable = true;
|
||||
|
||||
# Home Manager is pretty good at managing dotfiles. The primary way to manage
|
||||
# plain files is through 'home.file'.
|
||||
|
|
|
|||
103
flake.lock
103
flake.lock
|
|
@ -40,11 +40,11 @@
|
|||
]
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1731968878,
|
||||
"narHash": "sha256-+hTCwETOE9N8voTAaF+IzdUZz28Ws3LDpH90FWADrEE=",
|
||||
"lastModified": 1733769654,
|
||||
"narHash": "sha256-aVvYDt8eitZVF6fdOrSoIzYRkQ5Gh6kfRvqkiaDRLL0=",
|
||||
"owner": "nix-community",
|
||||
"repo": "home-manager",
|
||||
"rev": "a42fa14b53ceab66274a21da480c9f8e06204173",
|
||||
"rev": "e952e94955dcc6fa2120c1430789fc41363f5237",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
|
|
@ -53,6 +53,24 @@
|
|||
"type": "github"
|
||||
}
|
||||
},
|
||||
"musnix": {
|
||||
"inputs": {
|
||||
"nixpkgs": "nixpkgs"
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1733444216,
|
||||
"narHash": "sha256-Xs+HcLsnMy6Z1FpHr0ULsGMc1mI6ESq1dTBAYwlpuVY=",
|
||||
"owner": "musnix",
|
||||
"repo": "musnix",
|
||||
"rev": "a38011b5b96624b7f6527c0bc6df530a263297ad",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
"owner": "musnix",
|
||||
"repo": "musnix",
|
||||
"type": "github"
|
||||
}
|
||||
},
|
||||
"niri": {
|
||||
"inputs": {
|
||||
"niri-stable": "niri-stable",
|
||||
|
|
@ -65,11 +83,11 @@
|
|||
"xwayland-satellite-unstable": "xwayland-satellite-unstable"
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1731864204,
|
||||
"narHash": "sha256-tybmmftvUGkrXiUQ6n6fYO1zykjorxnjeSFwtXsGYi8=",
|
||||
"lastModified": 1733826408,
|
||||
"narHash": "sha256-9OOlIYIQA9mO8ZCiGYV0elyh9NwI1iHvSlZDYNQx3V0=",
|
||||
"owner": "sodiboo",
|
||||
"repo": "niri-flake",
|
||||
"rev": "a2a4236663b89d17afcb336a16d8700c26f58220",
|
||||
"rev": "2f95cc0bda721e25816a114d9d8619f0b95af256",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
|
|
@ -81,16 +99,16 @@
|
|||
"niri-stable": {
|
||||
"flake": false,
|
||||
"locked": {
|
||||
"lastModified": 1731164272,
|
||||
"narHash": "sha256-ea15x8+AAm90aeU1zNWXzX7ZfenzQRUgORyjOdn4Uoc=",
|
||||
"lastModified": 1731483594,
|
||||
"narHash": "sha256-Qjf7alRbPPERfiZsM9EMKX+HwjESky1tieh5PJIkLwE=",
|
||||
"owner": "YaLTeR",
|
||||
"repo": "niri",
|
||||
"rev": "9d8f640503819ff1905c9040d3c7910a50400bbd",
|
||||
"rev": "75c79116a7e40cbc0e110ce0cdd500e896458679",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
"owner": "YaLTeR",
|
||||
"ref": "v0.1.10",
|
||||
"ref": "v0.1.10.1",
|
||||
"repo": "niri",
|
||||
"type": "github"
|
||||
}
|
||||
|
|
@ -98,11 +116,11 @@
|
|||
"niri-unstable": {
|
||||
"flake": false,
|
||||
"locked": {
|
||||
"lastModified": 1731575130,
|
||||
"narHash": "sha256-V+bIsYXshtdMv7Ycw1Y/xVfKdWVywXuqHHII7FgV6dg=",
|
||||
"lastModified": 1733739952,
|
||||
"narHash": "sha256-LU4gFrPdB29qzZKJaEoIj87m7N+XaOoFu7POuiiIKhg=",
|
||||
"owner": "YaLTeR",
|
||||
"repo": "niri",
|
||||
"rev": "1a0612cbfd0abee0796efa86470226686ae78f21",
|
||||
"rev": "40fa82275cc092d313a9a60d01a2b4e3e8e3f7d3",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
|
|
@ -115,15 +133,15 @@
|
|||
"inputs": {
|
||||
"flake-parts": "flake-parts",
|
||||
"flake-root": "flake-root",
|
||||
"nixpkgs": "nixpkgs",
|
||||
"nixpkgs": "nixpkgs_2",
|
||||
"treefmt-nix": "treefmt-nix"
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1731645784,
|
||||
"narHash": "sha256-VBmrvzXm+jtvl9CKBvGjcMWfBx/FCtsbn/7D4//Ru2k=",
|
||||
"lastModified": 1732760430,
|
||||
"narHash": "sha256-HC+kuzNIL5q87s5ISeJQk3Dv8pqg8U8wDyRSBrpFeFY=",
|
||||
"owner": "nix-community",
|
||||
"repo": "nixd",
|
||||
"rev": "0f3c0c730e5cb9414f3b269dc9b36062a0e5236e",
|
||||
"rev": "f12e2f77094ac73c1b1101390c02ec5bcf69ad46",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
|
|
@ -134,16 +152,16 @@
|
|||
},
|
||||
"nixpkgs": {
|
||||
"locked": {
|
||||
"lastModified": 1730831018,
|
||||
"narHash": "sha256-2S0HwIFRxYp+afuoFORcZA9TjryAf512GmE0MTfEOPU=",
|
||||
"lastModified": 1732837521,
|
||||
"narHash": "sha256-jNRNr49UiuIwaarqijgdTR2qLPifxsVhlJrKzQ8XUIE=",
|
||||
"owner": "NixOS",
|
||||
"repo": "nixpkgs",
|
||||
"rev": "8c4dc69b9732f6bbe826b5fbb32184987520ff26",
|
||||
"rev": "970e93b9f82e2a0f3675757eb0bfc73297cc6370",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
"owner": "NixOS",
|
||||
"ref": "nixpkgs-unstable",
|
||||
"ref": "nixos-unstable",
|
||||
"repo": "nixpkgs",
|
||||
"type": "github"
|
||||
}
|
||||
|
|
@ -168,11 +186,11 @@
|
|||
},
|
||||
"nixpkgs-stable": {
|
||||
"locked": {
|
||||
"lastModified": 1731797254,
|
||||
"narHash": "sha256-df3dJApLPhd11AlueuoN0Q4fHo/hagP75LlM5K1sz9g=",
|
||||
"lastModified": 1733730953,
|
||||
"narHash": "sha256-dlK7n82FEyZlHH7BFHQAM5tua+lQO1Iv7aAtglc1O5s=",
|
||||
"owner": "NixOS",
|
||||
"repo": "nixpkgs",
|
||||
"rev": "e8c38b73aeb218e27163376a2d617e61a2ad9b59",
|
||||
"rev": "7109b680d161993918b0a126f38bc39763e5a709",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
|
|
@ -184,11 +202,11 @@
|
|||
},
|
||||
"nixpkgs-stable_2": {
|
||||
"locked": {
|
||||
"lastModified": 1732053737,
|
||||
"narHash": "sha256-A+F7WSHR29wIynmzbXMwgUb9rkNAeYwlN15Xm3vZjKk=",
|
||||
"lastModified": 1733842502,
|
||||
"narHash": "sha256-XbMLD1CxUx/nqoxKkz+jT35oU3vjryFjoHagsJZB/3U=",
|
||||
"owner": "nixos",
|
||||
"repo": "nixpkgs",
|
||||
"rev": "32754128c4ef529c567d216a783cb6fdd95ff196",
|
||||
"rev": "0bc6de0ceb83474fc4975d9dc1422a98c015eecf",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
|
|
@ -200,11 +218,27 @@
|
|||
},
|
||||
"nixpkgs_2": {
|
||||
"locked": {
|
||||
"lastModified": 1731676054,
|
||||
"narHash": "sha256-OZiZ3m8SCMfh3B6bfGC/Bm4x3qc1m2SVEAlkV6iY7Yg=",
|
||||
"lastModified": 1732617236,
|
||||
"narHash": "sha256-PYkz6U0bSEaEB1al7O1XsqVNeSNS+s3NVclJw7YC43w=",
|
||||
"owner": "NixOS",
|
||||
"repo": "nixpkgs",
|
||||
"rev": "af51545ec9a44eadf3fe3547610a5cdd882bc34e",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
"owner": "NixOS",
|
||||
"ref": "nixpkgs-unstable",
|
||||
"repo": "nixpkgs",
|
||||
"type": "github"
|
||||
}
|
||||
},
|
||||
"nixpkgs_3": {
|
||||
"locked": {
|
||||
"lastModified": 1733759999,
|
||||
"narHash": "sha256-463SNPWmz46iLzJKRzO3Q2b0Aurff3U1n0nYItxq7jU=",
|
||||
"owner": "nixos",
|
||||
"repo": "nixpkgs",
|
||||
"rev": "5e4fbfb6b3de1aa2872b76d49fafc942626e2add",
|
||||
"rev": "a73246e2eef4c6ed172979932bc80e1404ba2d56",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
|
|
@ -217,9 +251,10 @@
|
|||
"root": {
|
||||
"inputs": {
|
||||
"home-manager": "home-manager",
|
||||
"musnix": "musnix",
|
||||
"niri": "niri",
|
||||
"nixd": "nixd",
|
||||
"nixpkgs": "nixpkgs_2",
|
||||
"nixpkgs": "nixpkgs_3",
|
||||
"nixpkgs-stable": "nixpkgs-stable_2"
|
||||
}
|
||||
},
|
||||
|
|
@ -264,11 +299,11 @@
|
|||
"xwayland-satellite-unstable": {
|
||||
"flake": false,
|
||||
"locked": {
|
||||
"lastModified": 1731123454,
|
||||
"narHash": "sha256-W1UUok7DPi4IXCYtc273FbVH1ifuCIcl+oO6CDqt8Dk=",
|
||||
"lastModified": 1732233710,
|
||||
"narHash": "sha256-gWf9dX6DVx0ssK2G3yrFG9yMT9UU0mDwyD51z/Q6FTA=",
|
||||
"owner": "Supreeeme",
|
||||
"repo": "xwayland-satellite",
|
||||
"rev": "3e6f892d20d918479e67d1e6c90c4be824a9d4ab",
|
||||
"rev": "02f30546264ff8407cbb39528b3a3cc3045e53c1",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
|
|
|
|||
35
flake.nix
35
flake.nix
|
|
@ -1,24 +1,28 @@
|
|||
{
|
||||
description = "Nixos config flake";
|
||||
description = "Nixos config flake";
|
||||
|
||||
inputs = {
|
||||
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
|
||||
nixpkgs-stable.url = "github:nixos/nixpkgs/release-24.05";
|
||||
inputs = {
|
||||
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
|
||||
nixpkgs-stable.url = "github:nixos/nixpkgs/release-24.05";
|
||||
|
||||
home-manager = {
|
||||
url = "github:nix-community/home-manager";
|
||||
inputs.nixpkgs.follows = "nixpkgs";
|
||||
};
|
||||
home-manager = {
|
||||
url = "github:nix-community/home-manager";
|
||||
inputs.nixpkgs.follows = "nixpkgs";
|
||||
};
|
||||
|
||||
niri = {
|
||||
url = "github:sodiboo/niri-flake";
|
||||
inputs.nixpkgs.follows = "nixpkgs";
|
||||
};
|
||||
niri = {
|
||||
url = "github:sodiboo/niri-flake";
|
||||
inputs.nixpkgs.follows = "nixpkgs";
|
||||
};
|
||||
|
||||
nixd = {
|
||||
url = "github:nix-community/nixd";
|
||||
};
|
||||
|
||||
musnix = {
|
||||
url = "github:musnix/musnix";
|
||||
};
|
||||
|
||||
#xwayland-satellite-flake = {
|
||||
# url = "github:cspark-development/xwayland-satellite-flake";
|
||||
#};
|
||||
|
|
@ -30,15 +34,16 @@
|
|||
desktop = nixpkgs.lib.nixosSystem {
|
||||
specialArgs = {inherit inputs;};
|
||||
modules = [
|
||||
./global.nix
|
||||
./configurations/desktop/configuration.nix
|
||||
inputs.musnix.nixosModules.musnix
|
||||
./global.nix
|
||||
./configurations/desktop/configuration.nix
|
||||
];
|
||||
};
|
||||
laptop = nixpkgs.lib.nixosSystem {
|
||||
specialArgs = {inherit inputs;};
|
||||
modules = [
|
||||
./global.nix
|
||||
./configurations/laptop/configuration.nix
|
||||
./configurations/laptop/configuration.nix
|
||||
];
|
||||
};
|
||||
};
|
||||
|
|
|
|||
|
|
@ -32,7 +32,7 @@ in
|
|||
# # overrides. You can do that directly here, just don't forget the
|
||||
# # parentheses. Maybe you want to install Nerd Fonts with a limited number of
|
||||
# # fonts?
|
||||
# (nerdfonts.override { fonts = [ "FantasqueSansMono" ]; })
|
||||
# (nerd-fonts.override { fonts = [ "FantasqueSansMono" ]; })
|
||||
|
||||
# # You can also create simple shell scripts directly inside your
|
||||
# # configuration. For example, this adds a command 'my-hello' to your
|
||||
|
|
@ -123,6 +123,7 @@ fi
|
|||
qbittorrent
|
||||
krita
|
||||
gimp
|
||||
obs-studio
|
||||
|
||||
mpdcron
|
||||
|
||||
|
|
@ -340,6 +341,9 @@ fi
|
|||
cd = "source z-nvim"; # Now will use z (zoxide) as the default cd command instead
|
||||
zi = "source zi-nvim";
|
||||
cdi = "source zi-nvim";
|
||||
|
||||
# A smarter, better "cp"
|
||||
cp2 = "rsync -ah --info=progress2";
|
||||
};
|
||||
};
|
||||
|
||||
|
|
|
|||
15
global.nix
15
global.nix
|
|
@ -11,6 +11,10 @@
|
|||
boot.extraModulePackages = with config.boot.kernelPackages; [ usbip ];
|
||||
boot.kernelModules = [ "usbip_host" ];
|
||||
|
||||
# Enable musnix, a module for real-time audio.
|
||||
musnix.enable = false;
|
||||
musnix.kernel.realtime = true; # Realtime kernel
|
||||
|
||||
services.flatpak.enable = true;
|
||||
|
||||
environment.systemPackages = let
|
||||
|
|
@ -23,9 +27,13 @@
|
|||
with pkgs; [
|
||||
nix-index
|
||||
git
|
||||
wget
|
||||
ntfs3g
|
||||
|
||||
# Programming Stuff, language servers etc
|
||||
gcc
|
||||
cmake
|
||||
libtool
|
||||
swift
|
||||
swiftPackages.Foundation
|
||||
swiftpm
|
||||
|
|
@ -144,9 +152,10 @@
|
|||
];
|
||||
};
|
||||
|
||||
fonts.packages = with pkgs; [
|
||||
nerdfonts
|
||||
];
|
||||
# TODO: Fix
|
||||
#fonts.packages = with pkgs; [
|
||||
# nerdfonts
|
||||
#];
|
||||
|
||||
users.groups.plugdev = {};
|
||||
# Define a user account. Don't forget to set a password with ‘passwd’.
|
||||
|
|
|
|||
|
|
@ -0,0 +1,56 @@
|
|||
{ lib, config, pkgs, modulesPath, inputs, ... }:
|
||||
|
||||
let
|
||||
cfg = config.cspark-desktop-exwm-config-1;
|
||||
in
|
||||
{
|
||||
# imports =
|
||||
# [
|
||||
# inputs.niri.homeModules.niri
|
||||
# ];
|
||||
|
||||
options.cspark-desktop-exwm-config-1 = {
|
||||
enable
|
||||
= lib.mkEnableOption "Enable Custom EXWM Desktop Setup 1";
|
||||
};
|
||||
|
||||
config = lib.mkIf cfg.enable {
|
||||
# Config Files (typically $HOME/.config)
|
||||
xdg.configFile = {
|
||||
"vesktop/themes".source = ./resources/home-manager/.config/vesktop/themes;
|
||||
"networkmanager-dmenu/config.ini".source = ./resources/home-manager/.config/networkmanager-dmenu/config.ini;
|
||||
};
|
||||
|
||||
services.udiskie.enable = true;
|
||||
services.udiskie.tray = "never";
|
||||
|
||||
# Automatically executed on exwm startup
|
||||
home.packages = with pkgs; [
|
||||
(writeShellScriptBin "exwm-autostart"
|
||||
''
|
||||
kdeconnect-indicator &
|
||||
'')
|
||||
];
|
||||
|
||||
home.sessionVariables = {
|
||||
QT_QPA_PLATFORMTHEME = "qt6ct";
|
||||
SDL_VIDEODRIVER = "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,135 @@
|
|||
{ lib, config, pkgs, modulesPath, inputs, ... }:
|
||||
|
||||
let
|
||||
cfg = config.cspark-desktop-exwm;
|
||||
in
|
||||
{
|
||||
|
||||
options.cspark-desktop-exwm = {
|
||||
enable
|
||||
= lib.mkEnableOption "Enable Custom EXWM Desktop Setup";
|
||||
};
|
||||
|
||||
config = lib.mkIf cfg.enable {
|
||||
services.libinput.enable = true;
|
||||
|
||||
services.xserver = {
|
||||
enable = true;
|
||||
|
||||
# Remove/disable xterm, we are using Foot.
|
||||
desktopManager.xterm.enable = false;
|
||||
excludePackages = with pkgs; [ xterm ];
|
||||
|
||||
windowManager.exwm.enable = true;
|
||||
|
||||
displayManager.startx.enable = true;
|
||||
};
|
||||
|
||||
|
||||
environment.systemPackages = with pkgs; [
|
||||
gtk3 # Includes gtk-launch which is used by counsel-linux-app inside emacs
|
||||
emacs-gtk
|
||||
light # GNU/Linux application to control backlights
|
||||
|
||||
lxqt.pcmanfm-qt # 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
|
||||
|
||||
(writeShellScriptBin "exwm-start-session"
|
||||
''
|
||||
export SDL_VIDEODRIVER="x11,windows"
|
||||
export _JAVA_AWT_WM_NONREPARENTING="1"
|
||||
export SSH_ASKPASS_REQUIRE="force"
|
||||
export SSH_ASKPASS="/run/current-system/sw/bin/lxqt-openssh-askpass"
|
||||
|
||||
emacs
|
||||
'')
|
||||
];
|
||||
# The minimal login manager I'm using for niri
|
||||
services.greetd = {
|
||||
enable = true;
|
||||
settings = {
|
||||
default_session = {
|
||||
command = "${pkgs.greetd.tuigreet}/bin/tuigreet --time --remember-session";
|
||||
user = "greeter";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
# 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 ];
|
||||
# Whether to enable Qt configuration, including theming.
|
||||
qt.enable = true;
|
||||
# Enable polkit
|
||||
security.polkit.enable = true;
|
||||
# For udiskie
|
||||
services.udisks2.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;
|
||||
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;
|
||||
};
|
||||
|
||||
security.sudo = {
|
||||
extraRules = [
|
||||
{
|
||||
commands = [
|
||||
{
|
||||
command = "/run/current-system/sw/bin/light";
|
||||
options = [ "NOPASSWD" ];
|
||||
}
|
||||
];
|
||||
groups = [ "wheel" ];
|
||||
}
|
||||
];
|
||||
};
|
||||
|
||||
programs.ssh = {
|
||||
enableAskPassword = true;
|
||||
askPassword = "/run/current-system/sw/bin/lxqt-openssh-askpass";
|
||||
};
|
||||
|
||||
environment.sessionVariables = {
|
||||
QT_QPA_PLATFORMTHEME = "qt6ct";
|
||||
SDL_VIDEODRIVER = "x11,windows";
|
||||
_JAVA_AWT_WM_NONREPARENTING = "1";
|
||||
SSH_ASKPASS_REQUIRE = "force";
|
||||
SSH_ASKPASS = "/run/current-system/sw/bin/lxqt-openssh-askpass";
|
||||
};
|
||||
environment.variables = {
|
||||
QT_QPA_PLATFORMTHEME = "qt6ct";
|
||||
SDL_VIDEODRIVER = "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;
|
||||
}
|
||||
|
|
@ -39,7 +39,7 @@ input {
|
|||
warp-mouse-to-focus
|
||||
|
||||
// Focus windows and outputs automatically when moving the mouse into them.
|
||||
focus-follows-mouse
|
||||
// focus-follows-mouse
|
||||
}
|
||||
|
||||
// You can configure outputs by their name, which you can find
|
||||
|
|
|
|||
Loading…
Reference in New Issue