media1: add kitty terminal, Norwegian layout, HDMI audio priority
- Add kitty on workspace 3 (Super+3) - Set Norwegian keyboard layout in Hyprland - WirePlumber rule to prefer HDMI audio over USB HID device Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -16,22 +16,31 @@ let
|
||||
# Monitor — auto-detect, native resolution
|
||||
monitor = , preferred, auto, 1
|
||||
|
||||
# Launch Kodi and Firefox on login
|
||||
# Keyboard layout
|
||||
input {
|
||||
kb_layout = no
|
||||
}
|
||||
|
||||
# Launch Kodi, Firefox, and kitty on login
|
||||
exec-once = ${lib.getExe' kodiPkg "kodi"}
|
||||
exec-once = ${lib.getExe pkgs.firefox}
|
||||
exec-once = ${lib.getExe pkgs.kitty}
|
||||
|
||||
# Workspace rules — Kodi on 1, Firefox on 2
|
||||
# Workspace rules — Kodi on 1, Firefox on 2, kitty on 3
|
||||
windowrulev2 = workspace 1 silent, class:^(kodi)$
|
||||
windowrulev2 = workspace 2 silent, class:^(firefox)$
|
||||
windowrulev2 = workspace 3 silent, class:^(kitty)$
|
||||
windowrulev2 = fullscreen, class:^(kodi)$
|
||||
windowrulev2 = fullscreen, class:^(firefox)$
|
||||
windowrulev2 = fullscreen, class:^(kitty)$
|
||||
|
||||
# Start on workspace 1 (Kodi)
|
||||
workspace = 1, default:true
|
||||
|
||||
# Switch workspaces with Super+1/2
|
||||
# Switch workspaces with Super+1/2/3
|
||||
bind = SUPER, 1, workspace, 1
|
||||
bind = SUPER, 2, workspace, 2
|
||||
bind = SUPER, 3, workspace, 3
|
||||
|
||||
# No gaps, no borders — TV setup
|
||||
general {
|
||||
@@ -108,6 +117,7 @@ in
|
||||
environment.systemPackages = [
|
||||
kodiPkg
|
||||
pkgs.firefox
|
||||
pkgs.kitty
|
||||
pkgs.yt-dlp
|
||||
];
|
||||
|
||||
@@ -116,6 +126,17 @@ in
|
||||
enable = true;
|
||||
alsa.enable = true;
|
||||
pulse.enable = true;
|
||||
wireplumber.extraConfig."60-hdmi-default" = {
|
||||
"monitor.alsa.rules" = [
|
||||
{
|
||||
matches = [{ "node.name" = "~alsa_output.pci-.*hdmi.*"; }];
|
||||
actions.update-props = {
|
||||
"priority.session" = 2000;
|
||||
"priority.driver" = 2000;
|
||||
};
|
||||
}
|
||||
];
|
||||
};
|
||||
};
|
||||
|
||||
# Allow VA-API hardware decode in Firefox
|
||||
|
||||
Reference in New Issue
Block a user