This commit is contained in:
Evie Litherland-Smith 2024-01-25 06:33:38 +00:00
commit 8e7f5ffddb
6 changed files with 49 additions and 50 deletions

View file

@ -21,9 +21,6 @@ in ''
env = GRIM_DEFAULT_DIR=${config.xdg.userDirs.pictures}/Grim env = GRIM_DEFAULT_DIR=${config.xdg.userDirs.pictures}/Grim
exec-once = hyprctl setcursor ${cursorName} ${cursorSize} exec-once = hyprctl setcursor ${cursorName} ${cursorSize}
exec-once = dbus-update-activation-environment --systemd --all
exec-once = systemctl --user import-environment WAYLAND_DISPLAY QT_QPA_PLATFORMTHEME
exec-once = systemctl --user restart xdg-desktop-portal.service xdg-desktop-portal-hyprland.service avizo.service
gestures:workspace_swipe = true gestures:workspace_swipe = true
@ -226,9 +223,11 @@ in ''
bindm = SUPER, mouse:272, movewindow bindm = SUPER, mouse:272, movewindow
bindm = SUPER, mouse:273, resizewindow bindm = SUPER, mouse:273, resizewindow
exec-once = emacs --fg-daemon exec-once = dbus-update-activation-environment --systemd --all
exec-once = systemctl --user import-environment WAYLAND_DISPLAY QT_QPA_PLATFORMTHEME
exec-once = git -C $HOME/.emacs pull --ff-only; emacs --fg-daemon
exec-once = swaync exec-once = swaync
exec-once = ${pkgs.hyprpaper}/bin/hyprpaper exec-once = ${pkgs.hyprpaper}/bin/hyprpaper
exec-once = ${pkgs.dex}/bin/dex --autostart exec-once = ${pkgs.dex}/bin/dex --autostart
exec-once = [workspace name:btm silent]
'' ''

View file

@ -107,32 +107,5 @@
''; '';
"swaync/style.css".source = ./swaync/style.css; "swaync/style.css".source = ./swaync/style.css;
}; };
mimeApps = rec {
enable = true;
defaultApplications = {
"application/pdf" = [ "emacs.desktop" ];
"application/epub+zip" = [ "emacs.desktop" ];
"application/oxps" = [ "emacs.desktop" ];
"image/jpeg" = [ "swayimg.desktop" ];
"image/png" = [ "swayimg.desktop" ];
"video/mp4" = [ "mpv.desktop" ];
"text/csv" = [ "emacs.desktop" ];
"text/html" = [ "firefox.desktop" ];
"x-scheme-handler/http" = [ "firefox.desktop" ];
"x-scheme-handler/https" = [ "firefox.desktop" ];
"x-scheme-handler/about" = [ "firefox.desktop" ];
"x-scheme-handler/chrome" = [ "firefox.desktop" ];
"application/x-extension-htm" = [ "firefox.desktop" ];
"application/x-extension-html" = [ "firefox.desktop" ];
"application/x-extension-shtml" = [ "firefox.desktop" ];
"application/xhtml+xml" = [ "firefox.desktop" ];
"application/x-extension-xhtml" = [ "firefox.desktop" ];
"application/x-extension-xht" = [ "firefox.desktop" ];
"application/x-mozilla-bookmarks" = [ "firefox.desktop" ];
"x-scheme-handler/msteams" = [ "teams-for-linux.desktop" ];
"x-scheme-handler/zoomus" = [ ];
};
associations.added = defaultApplications;
};
}; };
} }

View file

@ -17,8 +17,8 @@
"modules-left" = [ "hyprland/window" "mpris" ]; "modules-left" = [ "hyprland/window" "mpris" ];
"modules-center" = [ "hyprland/workspaces" ]; "modules-center" = [ "hyprland/workspaces" ];
"modules-right" = [ "modules-right" = [
"pulseaudio"
"custom/notification" "custom/notification"
"pulseaudio"
"clock" "clock"
"custom/separator" "custom/separator"
"backlight" "backlight"
@ -112,8 +112,8 @@
format-icons = [ "󱃃" "󰔏" "󱃂" ]; format-icons = [ "󱃃" "󰔏" "󱃂" ];
}; };
clock = { clock = {
format = "{:󰥔 %R}"; format = "{:󰃭 %Y-%m-%d 󰥔 %R}";
format-alt = "{:󰃭 %Y-%m-%d 󰥔 %R}"; format-alt = "{:󰥔 %R}";
tooltip-format = "<tt><small>{calendar}</small></tt>"; tooltip-format = "<tt><small>{calendar}</small></tt>";
calendar = { calendar = {
mode = "month"; mode = "month";

View file

@ -106,10 +106,10 @@ tooltip {
color: @red; color: @red;
} }
#pulseaudio { #custom-notification {
color: @red; color: @red;
} }
#custom-notification { #pulseaudio {
color: @green; color: @green;
} }
#clock { #clock {

View file

@ -3,6 +3,7 @@
environment.systemPackages = with pkgs; [ environment.systemPackages = with pkgs; [
dex dex
libnotify libnotify
libcamera
glib glib
gsettings-desktop-schemas gsettings-desktop-schemas
]; ];
@ -10,11 +11,8 @@
polkit.enable = true; polkit.enable = true;
rtkit.enable = true; rtkit.enable = true;
}; };
sound.enable = true; sound.enable = false;
hardware = { hardware.bluetooth.enable = true;
pulseaudio.enable = false;
bluetooth.enable = true;
};
services = { services = {
accounts-daemon.enable = true; accounts-daemon.enable = true;
dbus.packages = with pkgs; [ gcr ]; dbus.packages = with pkgs; [ gcr ];
@ -24,9 +22,14 @@
}; };
pipewire = { pipewire = {
enable = true; enable = true;
alsa.enable = true; alsa = {
alsa.support32Bit = true; enable = true;
support32Bit = true;
};
audio.enable = true;
jack.enable = true;
pulse.enable = true; pulse.enable = true;
wireplumber.enable = true;
}; };
xserver = { xserver = {
layout = "gb"; layout = "gb";
@ -41,4 +44,8 @@
platformTheme = "gnome"; platformTheme = "gnome";
style = "adwaita-dark"; style = "adwaita-dark";
}; };
xdg.portal = {
enable = true;
xdgOpenUsePortal = true;
};
} }

View file

@ -38,11 +38,6 @@
libreoffice libreoffice
webcord webcord
teams-for-linux teams-for-linux
gst_all_1.gst-libav
gst_all_1.gst-plugins-base
gst_all_1.gst-plugins-good
gst_all_1.gst-plugins-bad
gst_all_1.gst-plugins-ugly
]; ];
}; };
security.pam.services.swaylock = { }; security.pam.services.swaylock = { };
@ -58,7 +53,32 @@
initial_session = { inherit command; }; initial_session = { inherit command; };
}; };
}; };
xdg.portal.enable = true; xdg.mime = rec {
enable = true;
defaultApplications = {
"application/pdf" = [ "emacs.desktop" ];
"application/epub+zip" = [ "emacs.desktop" ];
"application/oxps" = [ "emacs.desktop" ];
"image/jpeg" = [ "swayimg.desktop" ];
"image/png" = [ "swayimg.desktop" ];
"video/mp4" = [ "mpv.desktop" ];
"text/csv" = [ "emacs.desktop" ];
"text/html" = [ "firefox.desktop" ];
"x-scheme-handler/http" = [ "firefox.desktop" ];
"x-scheme-handler/https" = [ "firefox.desktop" ];
"x-scheme-handler/about" = [ "firefox.desktop" ];
"x-scheme-handler/chrome" = [ "firefox.desktop" ];
"application/x-extension-htm" = [ "firefox.desktop" ];
"application/x-extension-html" = [ "firefox.desktop" ];
"application/x-extension-shtml" = [ "firefox.desktop" ];
"application/xhtml+xml" = [ "firefox.desktop" ];
"application/x-extension-xhtml" = [ "firefox.desktop" ];
"application/x-extension-xht" = [ "firefox.desktop" ];
"application/x-mozilla-bookmarks" = [ "firefox.desktop" ];
"x-scheme-handler/msteams" = [ "teams-for-linux.desktop" ];
};
addedAssociations = defaultApplications;
};
programs = { programs = {
dconf.enable = true; dconf.enable = true;
light.enable = true; light.enable = true;