hm: hypr, vesktop, dunst
This commit is contained in:
@@ -64,14 +64,9 @@
|
||||
wl-clipboard
|
||||
wl-clipboard-x11
|
||||
swaybg
|
||||
catppuccin-qt5ct
|
||||
];
|
||||
|
||||
qt = {
|
||||
enable = true;
|
||||
platformTheme = "qt5ct"; # might have to go back to gnome if this makes kdenlive crash
|
||||
style = "adwaita-dark";
|
||||
};
|
||||
|
||||
# i have no clue what this does.
|
||||
# GLib aborts any program that loads a GSettings schema it can't find, and Qt's GTK file dialog needs gtk3's. Nothing else puts these on the path.
|
||||
environment.sessionVariables.GSETTINGS_SCHEMA_DIR = builtins.concatStringsSep ":" [
|
||||
@@ -79,30 +74,54 @@
|
||||
"${pkgs.gtk3}/share/gsettings-schemas/${pkgs.gtk3.name}/glib-2.0/schemas"
|
||||
];
|
||||
|
||||
# TODO: other mimetypes?
|
||||
xdg.mime.defaultApplications = {
|
||||
"inode/directory" = [ "kitty" ];
|
||||
"text/html" = [ "librewolf.desktop" ];
|
||||
"x-scheme-handler/http" = [ "librewolf.desktop" ];
|
||||
"x-scheme-handler/https" = [ "librewolf.desktop" ];
|
||||
};
|
||||
|
||||
xdg.portal = {
|
||||
enable = true;
|
||||
config = {
|
||||
common.default = [ "gtk" ];
|
||||
hyprland = {
|
||||
default = [
|
||||
"gtk"
|
||||
"hyprland"
|
||||
];
|
||||
"org.freedesktop.impl.portal.FileChooser" = [ "termfilechooser" ];
|
||||
environment.pathsToLink = [ "/share/xdg-desktop-portal" "/share/applications" ];
|
||||
home-manager.users.djai = {
|
||||
xdg = {
|
||||
mimeApps = {
|
||||
enable = true;
|
||||
defaultApplications = {
|
||||
"inode/directory" = [ "kitty.desktop" ];
|
||||
"image/gif" = [ "mpv.desktop" ];
|
||||
"text/html" = [ "librewolf.desktop" ];
|
||||
"application/pdf" = [ "zathura.desktop" ];
|
||||
"image/*" = [ "feh.deskop" ];
|
||||
"x-scheme-handler/http" = [ "librewolf.desktop" ];
|
||||
"x-scheme-handler/https" = [ "librewolf.desktop" ];
|
||||
};
|
||||
};
|
||||
|
||||
# TODO: check termfilechooser still works; had to disable this becos of hyprland
|
||||
# portal = {
|
||||
# enable = true;
|
||||
# config = {
|
||||
# common.default = [ "gtk" ];
|
||||
# hyprland = {
|
||||
# default = [
|
||||
# "gtk"
|
||||
# "hyprland"
|
||||
# ];
|
||||
# org.freedesktop.impl.portal.FileChooser = [ "termfilechooser" ];
|
||||
# };
|
||||
# };
|
||||
# extraPortals = with pkgs; [
|
||||
# xdg-desktop-portal-gtk
|
||||
# xdg-desktop-portal-termfilechooser
|
||||
# ];
|
||||
# };
|
||||
};
|
||||
|
||||
|
||||
catppuccin = {
|
||||
cursors = {
|
||||
enable = true;
|
||||
accent = "mauve";
|
||||
};
|
||||
qt5ct.enable = true;
|
||||
};
|
||||
qt = {
|
||||
style.name = "kvantum"; # required for catppuccin-nix
|
||||
platformTheme.name = "qtct";
|
||||
enable = true;
|
||||
};
|
||||
# programs.hyprland adds the Hyprland portal.
|
||||
extraPortals = with pkgs; [
|
||||
xdg-desktop-portal-gtk
|
||||
xdg-desktop-portal-termfilechooser
|
||||
];
|
||||
};
|
||||
}
|
||||
|
||||
@@ -28,7 +28,8 @@
|
||||
|
||||
device = [
|
||||
{
|
||||
name = "4152:6180:SteelSeries_SteelSeries_Rival_3";
|
||||
# name = "4152:6180:SteelSeries_SteelSeries_Rival_3";
|
||||
name = "steelseries-steelseries-rival-3";
|
||||
disable_while_typing = false;
|
||||
accel_profile = "flat";
|
||||
sensitivity = -0.3;
|
||||
|
||||
@@ -28,15 +28,15 @@ let
|
||||
[ "2" "2"]
|
||||
[ "3" "3"]
|
||||
[ "4" "4"]
|
||||
[ "W" "5"]
|
||||
[ "A" "6"]
|
||||
[ "D" "7"]
|
||||
[ "F" "8"]
|
||||
[ "Z" "9"]
|
||||
[ "Q" "LEFT"]
|
||||
[ "E" "RIGHT"]
|
||||
[ "S" "h"]
|
||||
[ "H" "h"]
|
||||
[ "w" "5"]
|
||||
[ "a" "6"]
|
||||
[ "d" "7"]
|
||||
[ "f" "8"]
|
||||
[ "z" "9"]
|
||||
[ "q" "LEFT"]
|
||||
[ "e" "RIGHT"]
|
||||
[ "s" "h"]
|
||||
[ "h" "h"]
|
||||
];
|
||||
feishinBinds = [
|
||||
[ "0" "0" "Send '0' to feishin"]
|
||||
@@ -44,14 +44,14 @@ let
|
||||
[ "2" "2" "Send '2' to feishin"]
|
||||
[ "3" "3" "Send '3' to feishin"]
|
||||
[ "4" "4" "Send '4' to feishin"]
|
||||
[ "W" "5" "Send '5' to feishin"]
|
||||
[ "S" "h" "Send 'h' to feishin"]
|
||||
[ "H" "h" "Send 'h' to feishin"]
|
||||
[ "Q" "q" "Send 'q' to feishin"]
|
||||
[ "E" "e" "Send 'e' to feishin"]
|
||||
[ "w" "5" "Send '5' to feishin"]
|
||||
[ "s" "h" "Send 'h' to feishin"]
|
||||
[ "h" "h" "Send 'h' to feishin"]
|
||||
[ "q" "q" "Send 'q' to feishin"]
|
||||
[ "e" "e" "Send 'e' to feishin"]
|
||||
[ "SPACE" "space" "Send 'space' to feishin"]
|
||||
[ "A" "a" "Send 'a' to feishin"]
|
||||
[ "D" "d" "Send 'd' to feishin"]
|
||||
[ "a" "a" "Send 'a' to feishin"]
|
||||
[ "d" "d" "Send 'd' to feishin"]
|
||||
];
|
||||
in
|
||||
{
|
||||
@@ -65,7 +65,7 @@ in
|
||||
];
|
||||
|
||||
define_submap = [
|
||||
(makeSubmap "feh" (makePassthrough "class:^*hideme)$" fehBinds))
|
||||
(makeSubmap "feh" (makePassthrough "class:^(hideme)$" fehBinds))
|
||||
(makeSubmap "feishin" (makePassthrough "class:^(feishin)$" feishinBinds))
|
||||
];
|
||||
};
|
||||
|
||||
@@ -39,6 +39,10 @@ in
|
||||
|
||||
home-manager.users."djai".home.file.".config/hypr/scripts".source = ./scripts;
|
||||
home-manager.users."djai".home.file.".config/hypr/shaders".source = ./shaders;
|
||||
home-manager.users."djai".xdg.configFile."uwsm/env-hyprland".text = ''
|
||||
export AQ_ARM_DEVICES="/dev/dri/card1:/dev/dri/card2"
|
||||
export AQ_NO_HARDWARE_CUSRORS="1"
|
||||
'';
|
||||
|
||||
|
||||
home-manager.users."djai".wayland.windowManager.hyprland = {
|
||||
@@ -54,14 +58,12 @@ in
|
||||
settings = {
|
||||
on = [ #TODO: set up exec oncess
|
||||
(hyprLib.on-signal "hyprland.start" [
|
||||
# "uwsm app -- /home/djai/AppImages/opencloud.appimage" # TODO: get opencloud
|
||||
"uwsm app -- opencloud-desktop"
|
||||
"uwsm app -- openrgb --noautoconnect -p aroace.orp"
|
||||
"uwsm app -- kitty --class scratchme -d /home/djai/Documents/diary"
|
||||
"uwsm app -- nohup flameshot"
|
||||
# these should be done thru systemd already
|
||||
# hl.exec_cmd("nohup flameshot")
|
||||
# hl.exec_cmd("hyprpm reload")
|
||||
# hl.exec_cmd("kanshi")
|
||||
# hl.exec_cmd("dunst")
|
||||
# hl.exec_cmd("hyprctl setcursor Catppuccin-Macchiato-Dark-Cursors 24")
|
||||
])
|
||||
];
|
||||
|
||||
Reference in New Issue
Block a user