diff options
| author | Natasha Moongrave <natasha@256phi.eu> | 2026-02-02 21:29:32 +0100 |
|---|---|---|
| committer | Natasha Moongrave <natasha@256phi.eu> | 2026-02-02 21:29:32 +0100 |
| commit | 996bf6efefe44f0bbe023b5d9646f9d6466a16ed (patch) | |
| tree | c291477dffb6d1c5e73330b401d29a2374ef4b84 /modules/home | |
| parent | 9695c1c909be4d48854690cdf47958551c2d3178 (diff) | |
added workaround for electron apps
Diffstat (limited to 'modules/home')
| -rw-r--r-- | modules/home/niri/chernobyl/default.nix | 1 | ||||
| -rw-r--r-- | modules/home/niri/chernobyl/electron.nix | 9 | ||||
| -rw-r--r-- | modules/home/niri/chernobyl/niri.nix | 131 | ||||
| -rw-r--r-- | modules/home/niri/chernobyl/niri/config.kdl | 0 |
4 files changed, 26 insertions, 115 deletions
diff --git a/modules/home/niri/chernobyl/default.nix b/modules/home/niri/chernobyl/default.nix index 72dedc5..0fa8c20 100644 --- a/modules/home/niri/chernobyl/default.nix +++ b/modules/home/niri/chernobyl/default.nix @@ -3,6 +3,7 @@ { imports = [ ./dunst.nix + ./electron.nix ./fastfetch.nix ./niri.nix ./kitty.nix diff --git a/modules/home/niri/chernobyl/electron.nix b/modules/home/niri/chernobyl/electron.nix new file mode 100644 index 0000000..95d03af --- /dev/null +++ b/modules/home/niri/chernobyl/electron.nix @@ -0,0 +1,9 @@ +{ pkgs, ... }: + +{ + (pkgs.vscode.override { + commandLineArgs = [ + "--wayland-text-input-version=3" + ]; +}); +} diff --git a/modules/home/niri/chernobyl/niri.nix b/modules/home/niri/chernobyl/niri.nix index b4d129f..a2a1bb3 100644 --- a/modules/home/niri/chernobyl/niri.nix +++ b/modules/home/niri/chernobyl/niri.nix @@ -1,126 +1,27 @@ { pkgs, ... }: { - wayland.windowManager.niri = { + programs.niri = { enable = true; - settings = { - input = { - keyboard = { - xkb = { - layout = "cz"; - options = "eurosign:e,caps:escape"; - }; - }; - mouse = { - accel-profile = "adaptive"; - accel-speed = 0.0; - }; - touchpad = { - tap = true; - dwt = true; - natural-scroll = false; - }; - }; - - outputs = [ - { - name = "eDP-1"; - scale = 1.5; - variable-refresh-rate = true; - } - ]; - - layout = { - gaps = 5; - }; - - spawn-at-startup = [ - { command = [ "dunst" ]; } - { command = [ "nm-applet" ]; } - { command = [ "blueman-applet" ]; } - { command = [ "waybar" ]; } - ]; - - binds = { - "Super+T" = ''spawn "kitty"''; - "Super+N" = ''spawn "firefox"''; - "Super+M" = ''spawn "rofi" "-show" "drun"''; - "Super+Shift+M" = ''spawn "kitty" "nnn"''; - "Super+Shift+S" = ''spawn "flameshot" "gui"''; - "Super+Ctrl+L" = ''spawn "hyprlock"''; - - # Focus - "Super+H" = "focus-column-left"; - "Super+J" = "focus-window-down"; - "Super+K" = "focus-window-up"; - "Super+L" = "focus-column-right"; - - # Move windows - "Super+Shift+H" = "move-column-left"; - "Super+Shift+J" = "move-window-down"; - "Super+Shift+K" = "move-window-up"; - "Super+Shift+L" = "move-column-right"; - - # Workspaces - "Super+1" = "workspace 1"; - "Super+2" = "workspace 2"; - "Super+3" = "workspace 3"; - "Super+4" = "workspace 4"; - "Super+5" = "workspace 5"; - "Super+6" = "workspace 6"; - "Super+7" = "workspace 7"; - "Super+8" = "workspace 8"; - "Super+9" = "workspace 9"; - "Super+0" = "workspace 10"; - "Super+Shift+1" = "move-workspace 1"; - "Super+Shift+2" = "move-workspace 2"; - "Super+Shift+3" = "move-workspace 3"; - "Super+Shift+4" = "move-workspace 4"; - "Super+Shift+5" = "move-workspace 5"; - "Super+Shift+6" = "move-workspace 6"; - "Super+Shift+7" = "move-workspace 7"; - "Super+Shift+8" = "move-workspace 8"; - "Super+Shift+9" = "move-workspace 9"; - "Super+Shift+0" = "move-workspace 10"; - - # Window management - "Super+Shift+Q" = "close-window"; - "Super+F" = "maximize-column"; - "Super+Shift+Space" = "toggle-window-floating"; - "Super+E" = "toggle-split"; - - # Media keys - "XF86MonBrightnessUp" = ''spawn "brightnessctl" "set" "+10%"''; - "XF86MonBrightnessDown" = ''spawn "brightnessctl" "set" "10%-"''; - "XF86AudioRaiseVolume" = ''spawn "wpctl" "set-volume" "-l" "1.5" "@DEFAULT_AUDIO_SINK@" "5%+"''; - "XF86AudioLowerVolume" = ''spawn "wpctl" "set-volume" "-l" "1.5" "@DEFAULT_AUDIO_SINK@" "5%-"''; - "XF86AudioMute" = ''spawn "wpctl" "set-mute" "@DEFAULT_AUDIO_SINK@" "toggle"''; - "XF86AudioMicMute" = ''spawn "wpctl" "set-mute" "@DEFAULT_AUDIO_SOURCE@" "toggle"''; - - # System - "Super+Shift+C" = "reload-config"; - }; - - window-rules = [ - { - geometry-corner-radius = { top-left = 15; top-right = 15; bottom-left = 15; bottom-right = 15; }; - clip-to-geometry = true; - } - ]; - - animations = { - workspace-switch = { - duration-ms = 200; - curve = "ease-out-cubic"; - }; - }; - - prefer-no-csd = true; + settings = { }; }; home.packages = with pkgs; [ - hyprlock + fuzzel + swaylock + alacritty + swaybg # wallpaper ]; + xdg.configFile."niri/config.kdl".source = ./niri/config.kdl; + + programs.alacritty.enable = true; # Super+T in the default setting (terminal) + programs.fuzzel.enable = true; # Super+D in the default setting (app launcher) + programs.swaylock.enable = true; # Super+Alt+L in the default setting (screen locker) + programs.waybar.enable = true; # launch on startup in the default setting (bar) + services.mako.enable = true; # notification daemon + services.swayidle.enable = true; # idle management daemon + services.polkit-gnome.enable = true; # polkit } + diff --git a/modules/home/niri/chernobyl/niri/config.kdl b/modules/home/niri/chernobyl/niri/config.kdl new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/modules/home/niri/chernobyl/niri/config.kdl |
