Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions config/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ in
./hyprland
./hyprpanel
./rofi
./snappy-switcher
]
else
[ ]
Expand Down
2 changes: 2 additions & 0 deletions config/hyprland/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
}:
let
hyprexpoPlugin = pkgs.hyprlandPlugins.hyprexpo;
snappySwitcher = inputs.snappy-switcher.packages.${pkgs.stdenv.hostPlatform.system}.default;
in
{
wayland.windowManager.hyprland = {
Expand All @@ -15,6 +16,7 @@ in
extraConfig = ''
plugin = ${hyprexpoPlugin}/lib/libhyprexpo.so
exec-once = ${pkgs.hyprpanel}/bin/hyprpanel
exec-once = ${snappySwitcher}/bin/snappy-switcher --daemon
''
Comment on lines 16 to 20

Copilot AI Feb 22, 2026

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hyprland still loads the hyprexpo plugin (plugin = ...libhyprexpo.so) even though the PR replaces the only visible hyprexpo:expo keybind with snappy-switcher. If hyprexpo is no longer invoked, removing this plugin load (and its config block in hyprland.conf) would reduce startup work and avoid carrying unused plugin configuration.

Copilot uses AI. Check for mistakes.
+ builtins.readFile ./hyprland.conf;
};
Expand Down
3 changes: 2 additions & 1 deletion config/hyprland/hyprland.conf
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,8 @@ bind = $mod SHIFT, F, togglefloating,
bind = CTRL ALT SHIFT SUPER, F, exec, hyprctl --batch "dispatch movetoworkspace empty; dispatch fullscreen 0"
bind = SUPER CTRL, F, fullscreen, 1
bind = $mod SHIFT, Q, exec, hyprpanel toggleWindow power-menu
bind = $mod, TAB, hyprexpo:expo, toggle
bind = $mod, TAB, exec, snappy-switcher next
bind = $mod SHIFT, TAB, exec, snappy-switcher prev
Comment on lines +261 to +262

Copilot AI Feb 22, 2026

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

$mod+TAB is switched to snappy-switcher, but Hyprland is still loading/configuring the hyprexpo plugin (see plugin = ...libhyprexpo.so in config/hyprland/default.nix and the plugin { hyprexpo { ... } } block later in this config). If hyprexpo is no longer used anywhere, consider removing the plugin load/config to avoid unnecessary plugin overhead and keep the config consistent.

Copilot uses AI. Check for mistakes.

# Focus (vim keys)
bind = $mod, H, movefocus, l
Expand Down
20 changes: 20 additions & 0 deletions config/snappy-switcher/config.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
[general]
mode = context

[theme]
name = dracula.ini
border_width = 3
corner_radius = 8

[layout]
card_width = 160
card_height = 140
card_gap = 10
padding = 20
max_cols = 5
icon_size = 56

[font]
family = Sans
weight = Bold
title_size = 10
7 changes: 7 additions & 0 deletions config/snappy-switcher/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{ ... }:
{
xdg.configFile."snappy-switcher/config.ini" = {
source = ./config.ini;
force = true;
};
}
3 changes: 3 additions & 0 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,9 @@
url = "github:xremap/nix-flake";
inputs.nixpkgs.follows = "nixpkgs";
};
snappy-switcher = {
url = "github:OpalAayan/snappy-switcher";
};
};

outputs =
Expand Down
2 changes: 2 additions & 0 deletions home-manager/packages/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ with pkgs;
awscli
azure-cli
bat
bc
broot
bun
clipse
Expand Down Expand Up @@ -119,6 +120,7 @@ with pkgs;
xclip
]
++ lib.optionals (stdenv.isLinux && isDesktop) [
inputs.snappy-switcher.packages.${stdenv.hostPlatform.system}.default
_1password-gui
brightnessctl
chromium
Expand Down
Loading