Compare commits

...

3 commits

Author SHA1 Message Date
cy
afc2e8ea66 make fuzzel wider 2025-01-19 00:23:46 -05:00
cy
f26cc9575d switch to niri 2025-01-19 00:15:12 -05:00
cy
e7b6fda857 make wallpaper work on niri 2025-01-18 23:10:45 -05:00
4 changed files with 54 additions and 16 deletions

View file

@ -1,20 +1,50 @@
{ config, ... }:
{ config, pkgs, lib, ... }:
let
wallpaper = "${./nixos-c-book.png}";
terminal = "foot";
menu = [ "fuzzel" "-w" "100" ];
browser = "librewolf";
file-manager = "thunar";
clipboard = "cliphist list | ${lib.concatStringsSep " " menu} --dmenu | cliphist decode | wl-copy";
in
{
programs.niri.settings = {
programs.niri.settings =
{
prefer-no-csd = true;
input.keyboard.xkb.options = "ctrl:nocaps";
spawn-at-startup = [
{ command = [ "waybar" ]; }
{ command = [ "${lib.getExe pkgs.waybar}" ]; }
{ command = [ "${lib.getExe pkgs.swaybg}" "-m" "fill" "-i" wallpaper ]; }
];
hotkey-overlay.skip-at-startup = true;
input = {
touchpad = {
tap = true;
dwt = true;
natural-scroll = true;
click-method = "clickfinger";
};
warp-mouse-to-focus = true;
focus-follows-mouse.enable = true;
};
layout = {
gaps = 4;
focus-ring = {
width = 4;
active.color = "#00000055";
inactive.color = "#505050";
};
always-center-single-column = true;
border.enable = false;
};
};
programs.niri.settings.binds =
with config.lib.niri.actions;
let
terminal = "foot";
menu = "fuzzel";
browser = "librewolf";
file-manager = "thunar";
sh = spawn "sh" "-c";
in
{
"Mod+Return".action = spawn terminal;
@ -37,8 +67,8 @@
"Mod+Shift+J".action = move-window-down;
"Mod+U".action = focus-workspace-up;
"Mod+I".action = focus-workspace-down;
"Mod+Shift+U".action = move-workspace-up;
"Mod+Shift+I".action = move-workspace-down;
"Mod+Shift+U".action = move-window-to-workspace-up;
"Mod+Shift+I".action = move-window-to-workspace-down;
"Mod+W".action = maximize-column;
"Mod+C".action = center-column;
"Mod+Shift+Space".action = toggle-window-floating;
@ -62,11 +92,25 @@
"Mod+3".action = focus-workspace 3;
"Mod+4".action = focus-workspace 4;
"Mod+5".action = focus-workspace 5;
"Mod+6".action = focus-workspace 6;
"Mod+7".action = focus-workspace 7;
"Mod+8".action = focus-workspace 8;
"Mod+9".action = focus-workspace 9;
"Mod+Shift+1".action = move-column-to-workspace 1;
"Mod+Shift+2".action = move-column-to-workspace 2;
"Mod+Shift+3".action = move-column-to-workspace 3;
"Mod+Shift+4".action = move-column-to-workspace 4;
"Mod+Shift+5".action = move-column-to-workspace 5;
"Mod+Shift+6".action = move-column-to-workspace 6;
"Mod+Shift+7".action = move-column-to-workspace 7;
"Mod+Shift+8".action = move-column-to-workspace 8;
"Mod+Shift+9".action = move-column-to-workspace 9;
"Mod+Alt+B".action = spawn browser;
"Mod+Alt+A".action = spawn "anki";
"Mod+Alt+F".action = spawn file-manager;
"Mod+Alt+E".action = spawn "evolution";
"Mod+P".action = spawn "bitwarden";
"Mod+Comma".action = sh clipboard;
};
}

BIN
home/niri/nixos-c-book.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 150 KiB

View file

@ -6,7 +6,7 @@
imports = [
./common.nix
../foot.nix
../niri.nix
../niri
];
home = {
username = "yt";
@ -123,7 +123,6 @@
};
xdg.configFile = {
sway.source = ../sway;
rofi.source = ../rofi;
waybar.source = ../waybar;
mpv.source = ../mpv;

View file

@ -188,11 +188,6 @@
};
services.blueman.enable = true;
programs.sway = {
enable = true;
wrapperFeatures.gtk = true;
};
my.backup = {
enable = true;
jobName = "ytnixRsync";