skipper: remove niri

This commit is contained in:
Adithya 2024-10-27 16:25:12 +05:30
parent 54d5207101
commit ae460927ec
Signed by: adtya
GPG key ID: B8857BFBA2C47B9C
4 changed files with 1 additions and 268 deletions

View file

@ -13,15 +13,9 @@
layer = "top";
position = "top";
height = 28;
modules-left = [ "niri/workspaces" "hyprland/workspaces" "niri/window" "hyprland/window" "hyprland/submap" ];
modules-left = [ "hyprland/workspaces" "hyprland/window" "hyprland/submap" ];
modules-center = [ ];
modules-right = [ "tray" "idle_inhibitor" "network" "bluetooth" "wireplumber" "backlight" "battery" "clock" "custom/notification" ];
"niri/workspaces" = {
all-outputs = false;
};
"niri/window" = {
separate-outputs = true;
};
"hyprland/workspaces" = {
separate-outputs = true;
};

View file

@ -1,7 +1,6 @@
{ pkgs, ... }:
{
imports = [
./niri
./hyprland
./addon
];

View file

@ -1,194 +0,0 @@
// Check the wiki for a full description of the configuration:
// https://github.com/YaLTeR/niri/wiki/Configuration:-Overview
spawn-at-startup "@dbus_update_activation_env_cmd@" "--systemd" "--all"
spawn-at-startup "@systemctl_cmd@" "--user" "start" "niri-session.target"
spawn-at-startup "@xwayland_satellite_cmd@"
environment {
DISPLAY ":0"
}
input {
keyboard {
xkb {
layout "us"
options "rupeesign:4"
variant "altgr-intl"
}
}
touchpad {
tap
dwt
natural-scroll
accel-profile "adaptive"
tap-button-map "left-right-middle"
click-method "clickfinger"
scroll-method "two-finger"
}
mouse {
accel-profile "adaptive"
}
focus-follows-mouse
}
output "eDP-1" {
mode "1920x1080"
scale 1
transform "normal"
position x=0 y=0
variable-refresh-rate on-demand=true
}
layout {
gaps 4
center-focused-column "never"
preset-column-widths {
proportion 0.5
proportion 0.7
proportion 1.0
}
preset-window-heights {
proportion 0.5
proportion 0.7
proportion 1.0
}
default-column-width { proportion 1.0; }
focus-ring {
width 2
active-color "#bd93f9"
inactive-color "#44475a"
// active-gradient from="#80c8ff" to="#bbddff" angle=45
// inactive-gradient from="#505050" to="#808080" angle=45 relative-to="workspace-view"
}
}
window-rule {
match app-id="firefox" title="Library"
default-column-width { proportion 0.40; }
}
window-rule {
match app-id="virt-manager" title="Virtual Machine Manager"
default-column-width { proportion 0.25; }
}
window-rule {
match app-id="virt-manager"
exclude title="Virtual Machine Manager"
default-column-width { proportion 0.75; }
}
hotkey-overlay {
skip-at-startup
}
prefer-no-csd
screenshot-path "@screenshot_path@/Screenshot from %Y-%m-%d %H-%M-%S.png"
binds {
Mod+Shift+Q repeat=false { close-window; }
Mod+Escape repeat=false { spawn "@loginctl_cmd@" "lock-session"; }
Mod+Shift+Escape repeat=false { spawn "@power_menu_cmd@"; }
Mod+Shift+W repeat=false { spawn "@wpaperctl_cmd@" "next"; }
Mod+Shift+U repeat=false { spawn "@swaync_client_cmd@" "-t" "-sw"; }
Mod+Return repeat=false { spawn "@kitty_cmd@" "@tmux_cmd@" "new"; }
Mod+Shift+Return repeat=false { spawn "@kitty_cmd@"; }
Mod+D repeat=false { spawn "@rofi_cmd@" "-show" "drun"; }
Mod+E repeat=false { spawn "@kitty_cmd@" "--class=yazi" "@yazi_cmd@"; }
Mod+F11 repeat=false { spawn "@tmux_sessions_cmd@"; }
Mod+Shift+Y repeat=false { spawn "@youtube_cmd@"; }
Mod+Shift+B repeat=false { spawn "@bluetooth_cmd@"; }
Mod+I repeat=false { spawn "@firefox_cmd@"; }
Mod+Shift+I repeat=false { spawn "@librewolf_cmd@"; }
XF86AudioRaiseVolume allow-when-locked=true { spawn "@wpctl_cmd@" "set-volume" "-l" "1" "@DEFAULT_AUDIO_SINK@" "5%+"; }
XF86AudioLowerVolume allow-when-locked=true { spawn "@wpctl_cmd@" "set-volume" "@DEFAULT_AUDIO_SINK@" "5%-"; }
XF86AudioMute allow-when-locked=true { spawn "@wpctl_cmd@" "set-mute" "@DEFAULT_AUDIO_SINK@" "toggle"; }
XF86AudioMicMute allow-when-locked=true { spawn "@wpctl_cmd@" "set-mute" "@DEFAULT_AUDIO_SOURCE@" "toggle"; }
XF86MonBrightnessUp allow-when-locked=true { spawn "@brightnessctl_cmd@" "--quiet" "--device=intel_backlight" "set" "+5%"; }
XF86MonBrightnessDown allow-when-locked=true { spawn "@brightnessctl_cmd@" "--quiet" "--device=intel_backlight" "set" "5%-"; }
Mod+H { focus-column-left; }
Mod+J { focus-window-down; }
Mod+K { focus-window-up; }
Mod+L { focus-column-right; }
Mod+Shift+H { move-column-left; }
Mod+Shift+J { move-window-down; }
Mod+Shift+K { move-window-up; }
Mod+Shift+L { move-column-right; }
Mod+Ctrl+H { focus-monitor-left; }
Mod+Ctrl+J { focus-monitor-down; }
Mod+Ctrl+K { focus-monitor-up; }
Mod+Ctrl+L { focus-monitor-right; }
Mod+Shift+Ctrl+H { move-window-to-monitor-left; }
Mod+Shift+Ctrl+J { move-window-to-monitor-down; }
Mod+Shift+Ctrl+K { move-window-to-monitor-up; }
Mod+Shift+Ctrl+L { move-window-to-monitor-right; }
Mod+Tab { focus-workspace-down; }
Mod+Shift+Tab { focus-workspace-up; }
Mod+Alt+Shift+J { move-window-to-workspace-down; }
Mod+Alt+Shift+K { move-window-to-workspace-up; }
Mod+1 { focus-workspace 1; }
Mod+2 { focus-workspace 2; }
Mod+3 { focus-workspace 3; }
Mod+4 { focus-workspace 4; }
Mod+5 { focus-workspace 5; }
Mod+6 { focus-workspace 6; }
Mod+7 { focus-workspace 7; }
Mod+8 { focus-workspace 8; }
Mod+9 { focus-workspace 9; }
Mod+Shift+1 { move-column-to-workspace 1; }
Mod+Shift+2 { move-column-to-workspace 2; }
Mod+Shift+3 { move-column-to-workspace 3; }
Mod+Shift+4 { move-column-to-workspace 4; }
Mod+Shift+5 { move-column-to-workspace 5; }
Mod+Shift+6 { move-column-to-workspace 6; }
Mod+Shift+7 { move-column-to-workspace 7; }
Mod+Shift+8 { move-column-to-workspace 8; }
Mod+Shift+9 { move-column-to-workspace 9; }
Mod+Comma { consume-window-into-column; }
Mod+Period { expel-window-from-column; }
// There are also commands that consume or expel a single window to the side.
Mod+BracketLeft { consume-or-expel-window-left; }
Mod+BracketRight { consume-or-expel-window-right; }
Mod+R { switch-preset-column-width; }
Mod+Shift+R { switch-preset-window-height; }
Mod+Ctrl+R { reset-window-height; }
Mod+F { maximize-column; }
Mod+Shift+F { fullscreen-window; }
Mod+C { center-column; }
Mod+Minus { set-column-width "-5%"; }
Mod+Equal { set-column-width "+5%"; }
Mod+Shift+Minus { set-window-height "-5%"; }
Mod+Shift+Equal { set-window-height "+5%"; }
Print { screenshot; }
Ctrl+Print { screenshot-screen; }
Alt+Print { screenshot-window; }
Mod+Shift+E { quit; }
Mod+Shift+P { power-off-monitors; }
}

View file

@ -1,66 +0,0 @@
{ lib, pkgs, config, ... }: {
home.packages = [ pkgs.niri ];
xdg.portal = {
extraPortals = [ pkgs.xdg-desktop-portal-gnome ];
configPackages = [ pkgs.niri ];
config = {
niri = {
default = [ "gnome" "gtk" ];
"org.freedesktop.impl.portal.Secret" = [ "gnome-keyring" ];
};
};
};
programs.zsh.profileExtra = ''
if [ -z $DISPLAY ] && [ -z $WAYLAND_DISPLAY ] && [ "$(tty)" = "/dev/tty1" ] ; then
exec ${lib.getExe pkgs.niri} --session
fi
'';
xdg.configFile."niri/config.kdl".source = pkgs.substituteAll {
src = ./config.kdl;
dbus_update_activation_env_cmd = "${pkgs.dbus}/bin/dbus-update-activation-environment";
systemctl_cmd = "${pkgs.systemd}/bin/systemctl";
xwayland_satellite_cmd = "${lib.getExe pkgs.xwayland-satellite}";
loginctl_cmd = "${pkgs.systemd}/bin/loginctl";
wpaperctl_cmd = "${pkgs.wpaperd}/bin/wpaperctl";
kitty_cmd = "${lib.getExe pkgs.kitty}";
tmux_cmd = "${lib.getExe pkgs.tmux}";
rofi_cmd = "${lib.getExe config.programs.rofi.package}";
yazi_cmd = "${lib.getExe pkgs.yazi}";
firefox_cmd = "${lib.getExe config.programs.firefox.finalPackage}";
librewolf_cmd = "${lib.getExe pkgs.librewolf}";
wpctl_cmd = "${pkgs.wireplumber}/bin/wpctl";
brightnessctl_cmd = "${lib.getExe pkgs.brightnessctl}";
swaync_client_cmd = "${pkgs.swaynotificationcenter}/bin/swaync-client";
power_menu_cmd = "${pkgs.misc-scripts}/bin/power-menu";
tmux_sessions_cmd = "${pkgs.misc-scripts}/bin/tmux-sessions";
youtube_cmd = "${pkgs.youtube}/bin/youtube";
bluetooth_cmd = "${pkgs.rofi-bluetooth}/bin/rofi-bluetooth";
screenshot_path = "${config.xdg.userDirs.pictures}/Screenshots";
};
systemd.user = {
targets.niri-session = {
Unit = {
After = [ "graphical-session-pre.target" ];
BindsTo = [ "graphical-session.target" ];
Description = "Niri compositor session";
Documentation = "man:systemd.special(7)";
Wants = [ "graphical-session-pre.target" ];
};
};
targets.niri-shutdown = {
Unit = {
Description = "Shutdown running niri session";
DefaultDependencies = "no";
StopWhenUnneeded = true;
Conflicts = [ "graphical-session.target" "graphical-session-pre.target" ];
After = [ "graphical-session.target" "graphical-session-pre.target" ];
};
};
};
}