fix: improve sway browser integration
This commit is contained in:
parent
18f4e3e3b3
commit
2c8ff25308
4 changed files with 17 additions and 2 deletions
|
|
@ -13,7 +13,11 @@
|
|||
home.stateVersion = "25.05";
|
||||
|
||||
home.sessionVariables = {
|
||||
BROWSER = "zen";
|
||||
BROWSER = "${pkgs.xdg-utils}/bin/xdg-open";
|
||||
GH_BROWSER = "${pkgs.xdg-utils}/bin/xdg-open";
|
||||
GIT_BROWSER = "${pkgs.xdg-utils}/bin/xdg-open";
|
||||
MOZ_ENABLE_WAYLAND = "1";
|
||||
NIXOS_OZONE_WL = "1";
|
||||
TERMINAL = "ghostty";
|
||||
};
|
||||
|
||||
|
|
|
|||
|
|
@ -72,6 +72,7 @@
|
|||
swaylock
|
||||
waybar
|
||||
wl-clipboard
|
||||
xdg-utils
|
||||
|
||||
nerd-fonts.commit-mono
|
||||
];
|
||||
|
|
|
|||
|
|
@ -8,6 +8,7 @@
|
|||
|
||||
let
|
||||
apodCurrent = "${config.home.homeDirectory}/.local/state/nasa-apod/current";
|
||||
swayOutputs = "${config.home.homeDirectory}/.config/sway/outputs";
|
||||
lockCommand = pkgs.writeShellScript "sway-lock-apod" ''
|
||||
set -euo pipefail
|
||||
|
||||
|
|
@ -87,9 +88,11 @@ in
|
|||
dwt disabled
|
||||
}
|
||||
|
||||
include ${swayOutputs}
|
||||
output * bg #000000 solid_color
|
||||
|
||||
bindsym $mod+d exec ${pkgs.fuzzel}/bin/fuzzel
|
||||
bindsym $mod+p exec ${pkgs.nwg-displays}/bin/nwg-displays
|
||||
bindsym $mod+b exec ${pkgs.procps}/bin/pkill -SIGUSR1 waybar
|
||||
bindsym $mod+l exec ${lockCommand}
|
||||
bindsym $mod+Shift+e exec ${pkgs.sway}/bin/swaymsg exit
|
||||
|
|
@ -294,4 +297,11 @@ in
|
|||
};
|
||||
Install.WantedBy = [ "timers.target" ];
|
||||
};
|
||||
|
||||
home.activation.ensureSwayOutputs = config.lib.dag.entryAfter [ "writeBoundary" ] ''
|
||||
$DRY_RUN_CMD mkdir -p ${config.home.homeDirectory}/.config/sway
|
||||
if [ ! -e ${swayOutputs} ]; then
|
||||
$DRY_RUN_CMD touch ${swayOutputs}
|
||||
fi
|
||||
'';
|
||||
}
|
||||
|
|
|
|||
|
|
@ -31,7 +31,7 @@
|
|||
default_layout = "zoxide-picker";
|
||||
pane_frames = false;
|
||||
simplified_ui = true;
|
||||
mouse_mode = true;
|
||||
mouse_mode = false;
|
||||
copy_on_select = true;
|
||||
show_startup_tips = false;
|
||||
show_release_notes = false;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue