fixup sway and add mimeapps

This commit is contained in:
tristan 2024-01-08 02:12:09 +00:00
parent 879489efcb
commit 829c8d9392
9 changed files with 71 additions and 33 deletions

View file

@ -1,4 +1,17 @@
{pkgs, ...}: {
{
pkgs,
config,
...
}: let
term = "${ config.programs.terminal }/bin/${config.programs.terminal.pname}";
modKeyName = config.windowManager.modifierKey;
modifier =
if modKeyName == "SUPER"
then "Mod4"
else if modKeyName == "ALT"
then "Mod1"
else null;
in {
imports = [
(import ./swaylock.nix)
(import ./swayidle.nix)
@ -12,6 +25,10 @@
wayland.windowManager.sway = {
enable = true;
config = {
inherit modifier;
bars = [];
};
};
services.swayidle = {