92 lines
3.2 KiB
Nix
92 lines
3.2 KiB
Nix
{ config, pkgs, ... }:
|
|
|
|
{
|
|
|
|
home.packages = with pkgs; [
|
|
wideriver
|
|
];
|
|
|
|
|
|
|
|
wayland.windowManager.river = {
|
|
enable = true;
|
|
systemd.enable = true;
|
|
settings = {
|
|
spawn = [
|
|
#set wallpaper
|
|
"swaybg --image ~/Downloads/wp.jpg"
|
|
# set gaps on wideriver
|
|
"~/login-wm-setup-2.sh"
|
|
];
|
|
output-layout = "wideriver";
|
|
rule-add = "ssd";
|
|
map = {
|
|
normal = {
|
|
# spawn binds
|
|
"Super Return" = "spawn alacritty";
|
|
"Super R" = "spawn fuzzel";
|
|
"Super E" = "spawn fm";
|
|
"Super O" = "spawn obsidian";
|
|
|
|
|
|
# globals
|
|
"Alt Q" = "close";
|
|
"Super+Shift E" = "exit";
|
|
"Super+Shift Return" = "zoom";
|
|
"Super F" = "toggle-fullscreen";
|
|
|
|
#movement
|
|
"Super J" = "focus-view next";
|
|
"Super K" = "focus-view previous";
|
|
"Super H" = "send-layout-cmd wideriver \"--count +1\"";
|
|
"Super L" = "send-layout-cmd wideriver \"--count -1\"";
|
|
"Super+Shift H" = "send-layout-cmd wideriver \"--ratio -0.05\"";
|
|
"Super+Shift J" = "swap next";
|
|
"Super+Shift K" = "swap previous";
|
|
"Super+Shift L" = "send-layout-cmd wideriver \"--ratio +0.05\"";
|
|
# "Super+Alt H" = "move left 100";
|
|
# "Super+Alt J" = "move down 100";
|
|
# "Super+Alt K" = "move up 100";
|
|
# "Super+Alt L" = "move right 100";
|
|
"Super Period" = "focus-output next";
|
|
"Super Comma" = "focus-output previous";
|
|
"Super+Shift Period" = "send-to-output next";
|
|
"Super+Shift Comma" = "send-to-output previous";
|
|
|
|
# tag commands
|
|
"Super 1" = "set-focused-tags 2147483649";
|
|
"Super+Shift 1" = "toggle-focused-tags 1";
|
|
"Super+Alt 1" = "toggle-view-tags 1";
|
|
"Super 2" = "set-focused-tags 2147483650";
|
|
"Super+Shift 2" = "toggle-focused-tags 2";
|
|
"Super+Alt 2" = "toggle-view-tags 2";
|
|
"Super 3" = "set-focused-tags 2147483652";
|
|
"Super+Shift 3" = "toggle-focused-tags 4";
|
|
"Super+Alt 3" = "toggle-view-tags 4";
|
|
"Super 4" = "set-focused-tags 2147483656";
|
|
"Super+Shift 4" = "toggle-focused-tags 8";
|
|
"Super+Alt 4" = "toggle-view-tags 8";
|
|
"Super 5" = "set-focused-tags 2147483664";
|
|
"Super+Shift 5" = "toggle-focused-tags 16";
|
|
"Super+Alt 5" = "toggle-view-tags 16";
|
|
"Super 6" = "set-focused-tags 2147483680";
|
|
"Super+Shift 6" = "toggle-focused-tags 32";
|
|
"Super+Alt 6" = "toggle-view-tags 32";
|
|
"Super 7" = "set-focused-tags 2147483712";
|
|
"Super+Shift 7" = "toggle-focused-tags 64";
|
|
"Super+Alt 7" = "toggle-view-tags 64";
|
|
"Super 8" = "set-focused-tags 2147483776";
|
|
"Super+Shift 8" = "toggle-focused-tags 128";
|
|
"Super+Alt 8" = "toggle-view-tags 128";
|
|
"Super 9" = "set-focused-tags 2147483904";
|
|
"Super+Shift 9" = "toggle-focused-tags 256";
|
|
"Super+Alt 9" = "toggle-view-tags 256";
|
|
"Super 0" = "set-focused-tags 2147483648";
|
|
"Super+Shift 0" = "toggle-focused-tags 2147483648";
|
|
"Super+Alt 0" = "toggle-view-tags 2147483648";
|
|
};
|
|
};
|
|
};
|
|
};
|
|
}
|