chore: clean up tree-wide
This commit is contained in:
parent
45afd6bea5
commit
b9ad8ac2ca
50 changed files with 247 additions and 511 deletions
|
@ -1,13 +1,13 @@
|
|||
{
|
||||
lib,
|
||||
inputs,
|
||||
system,
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
let
|
||||
inherit (builtins) map listToAttrs;
|
||||
inherit (lib.lists) findFirstIndex;
|
||||
inherit (inputs.nur.legacyPackages.${system}.repos.rycee) firefox-addons;
|
||||
inherit (inputs.nur.legacyPackages.${pkgs.stdenv.hostPlatform.system}.repos.rycee) firefox-addons;
|
||||
profiles = listToAttrs (
|
||||
map (name: {
|
||||
inherit name;
|
||||
|
@ -36,6 +36,11 @@ let
|
|||
in
|
||||
{
|
||||
home.sessionVariables.BROWSER = "firefox";
|
||||
programs.firefox = { inherit profiles; };
|
||||
persistDirs = [ ".mozilla/firefox" ];
|
||||
programs.firefox = {
|
||||
enable = true;
|
||||
inherit profiles;
|
||||
};
|
||||
stylix.targets.firefox.colorTheme.enable = true;
|
||||
stylix.targets.firefox.profileNames = syncedProfiles;
|
||||
}
|
||||
|
|
19
homes/x86_64-linux/rafiq/desktop/default.nix
Normal file
19
homes/x86_64-linux/rafiq/desktop/default.nix
Normal file
|
@ -0,0 +1,19 @@
|
|||
{ pkgs, ... }:
|
||||
{
|
||||
persistDirs = [
|
||||
"docs"
|
||||
"repos"
|
||||
"vids"
|
||||
"tmp"
|
||||
".cache/Smart Code ltd/Stremio"
|
||||
".local/share/Smart Code ltd/Stremio"
|
||||
];
|
||||
programs = {
|
||||
obs-studio.enable = true;
|
||||
vesktop.enable = true;
|
||||
thunderbird.enable = true;
|
||||
thunderbird.profiles.rafiq.isDefault = true;
|
||||
};
|
||||
home.packages = with pkgs; [ stremio ];
|
||||
stylix.image = ./wallpaper.png;
|
||||
}
|
|
@ -1,7 +1,3 @@
|
|||
{
|
||||
home.sessionVariables.LAUNCHER = "fuzzel";
|
||||
programs.wofi = {
|
||||
style = null;
|
||||
settings = { };
|
||||
};
|
||||
}
|
||||
|
|
|
@ -1,35 +1,29 @@
|
|||
let
|
||||
styling = {
|
||||
halign = "center";
|
||||
valign = "center";
|
||||
zindex = 1;
|
||||
shadow_passes = 5;
|
||||
shadow_size = 5;
|
||||
};
|
||||
in
|
||||
{
|
||||
home.sessionVariables.LOCKSCREEN = "hyprlock";
|
||||
programs.hyprlock.settings = {
|
||||
general.hide_cursor = true;
|
||||
general.ignore_empty_input = true;
|
||||
|
||||
background = {
|
||||
blur_passes = 5;
|
||||
blur_size = 5;
|
||||
};
|
||||
|
||||
background.blur_passes = 5;
|
||||
background.blur_size = 5;
|
||||
label = {
|
||||
text = ''hi, $USER.'';
|
||||
font_size = 32;
|
||||
halign = "center";
|
||||
valign = "center";
|
||||
position = "0, 0";
|
||||
zindex = 1;
|
||||
shadow_passes = 5;
|
||||
shadow_size = 5;
|
||||
};
|
||||
|
||||
}// styling;
|
||||
input-field = {
|
||||
placeholder_text = "";
|
||||
fade_on_empty = true;
|
||||
size = "200, 45";
|
||||
halign = "center";
|
||||
valign = "center";
|
||||
position = "0, -5%";
|
||||
placeholder_text = "";
|
||||
zindex = 1;
|
||||
shadow_passes = 5;
|
||||
shadow_size = 5;
|
||||
};
|
||||
} // styling;
|
||||
};
|
||||
}
|
||||
|
|
|
@ -1,26 +0,0 @@
|
|||
{ pkgs, ... }:
|
||||
{
|
||||
persistDirs = [
|
||||
"docs"
|
||||
"repos"
|
||||
"vids"
|
||||
"tmp"
|
||||
".cache/Smart Code ltd/Stremio"
|
||||
".local/share/Smart Code ltd/Stremio"
|
||||
];
|
||||
programs = {
|
||||
obs-studio.enable = true;
|
||||
vesktop = {
|
||||
enable = true;
|
||||
# https://github.com/Vencord/Vesktop/blob/main/src/shared/settings.d.ts
|
||||
settings = { };
|
||||
# https://github.com/Vendicated/Vencord/blob/main/src/api/Settings.ts
|
||||
vencord.settings = { };
|
||||
};
|
||||
thunderbird.enable = true;
|
||||
thunderbird.profiles.rafiq.isDefault = true;
|
||||
};
|
||||
home.packages = with pkgs; [
|
||||
stremio
|
||||
];
|
||||
}
|
|
@ -1,6 +1,5 @@
|
|||
{
|
||||
home.sessionVariables.NOTIFICATION_DAEMON = "mako";
|
||||
services.mako.settings = {
|
||||
default-timeout = 10000;
|
||||
};
|
||||
services.mako.enable = true;
|
||||
services.mako.settings.default-timeout = 10000;
|
||||
}
|
||||
|
|
|
@ -3,6 +3,7 @@
|
|||
home.sessionVariables.STATUS_BAR = "waybar";
|
||||
stylix.targets.waybar.addCss = false;
|
||||
programs.waybar = {
|
||||
enable = true;
|
||||
settings = [
|
||||
{
|
||||
#TODO: review the rest of the modules to see what else can be added
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
{
|
||||
home.sessionVariables.TERMINAL = "ghostty -e";
|
||||
#TODO: fix image preview
|
||||
programs.ghostty.enable = true;
|
||||
programs.ghostty.settings.confirm-close-surface = false;
|
||||
}
|
||||
|
|
|
@ -6,10 +6,12 @@
|
|||
"$hypr, Q, exec, uwsm stop"
|
||||
"SUPER, W, killactive"
|
||||
|
||||
"SUPER, return, exec, uwsm app -- $TERMINAL $MULTIPLEXER"
|
||||
"SUPER, return, exec, uwsm app -- $TERMINAL"
|
||||
"SUPER, O, exec, uwsm app -- $BROWSER"
|
||||
"SUPER, Escape, exec, uwsm app -- $LOCKSCREEN"
|
||||
#TODO:add file browser
|
||||
|
||||
#TODO: make it directional
|
||||
"SUPER, H, cyclenext, visible"
|
||||
"SUPER, L, cyclenext, visible prev"
|
||||
"SUPER_ALT, H, movewindow, l"
|
||||
|
@ -20,25 +22,28 @@
|
|||
"ALT_SHIFT, J, resizeactive, 0 -10%"
|
||||
"ALT_SHIFT, K, resizeactive, 0 10%"
|
||||
"ALT_SHIFT, L, resizeactive, 10% 0"
|
||||
"$hypr, V, togglefloating"
|
||||
"SUPER_CTRL, H, workspace, r-1"
|
||||
"SUPER_CTRL, L, workspace, r+1"
|
||||
"$hypr, H, movetoworkspace, r-1"
|
||||
"$hypr, L, movetoworkspace, r+1"
|
||||
|
||||
"$hypr, V, togglefloating"
|
||||
];
|
||||
|
||||
bindr = [
|
||||
# Activates on SUPER without any other modifier
|
||||
"SUPER, Super_L, exec, uwsm app -- $($LAUNCHER --launch-prefix=\"uwsm app -- \")"
|
||||
];
|
||||
|
||||
bindle = [
|
||||
"SUPER, 6, exec, wpctl set-volume -l 1.5 @DEFAULT_AUDIO_SINK@ 5%-"
|
||||
"SUPER, 6, exec, ${pkgs.wireplumber}/bin/wpctl set-volume -l 1.5 @DEFAULT_AUDIO_SINK@ 5%-"
|
||||
"SUPER, 7, exec, ${pkgs.playerctl}/bin/playerctl previous"
|
||||
"SUPER, 8, exec, ${pkgs.playerctl}/bin/playerctl -a play-pause"
|
||||
"SUPER, 9, exec, ${pkgs.playerctl}/bin/playerctl next"
|
||||
"SUPER, 0, exec, wpctl set-volume -l 1.5 @DEFAULT_AUDIO_SINK@ 5%+"
|
||||
"$meh, mouse_up, resizeactive, 10% 10%"
|
||||
"$meh, mouse_down, resizeactive, -10% -10%"
|
||||
"SUPER, 0, exec, ${pkgs.wireplumber}/bin/wpctl set-volume -l 1.5 @DEFAULT_AUDIO_SINK@ 5%+"
|
||||
|
||||
"ALT, mouse_up, resizeactive, 10% 10%"
|
||||
"ALT, mouse_down, resizeactive, -10% -10%"
|
||||
];
|
||||
|
||||
bindm = [
|
||||
|
|
|
@ -1,30 +0,0 @@
|
|||
{
|
||||
lib,
|
||||
pkgs,
|
||||
osConfig,
|
||||
...
|
||||
}:
|
||||
let
|
||||
inherit (lib) mkMerge;
|
||||
inherit (osConfig.desktop) mainMonitor;
|
||||
in
|
||||
mkMerge [
|
||||
(import ./decoration.nix)
|
||||
(import ./keybinds.nix { inherit pkgs; })
|
||||
{
|
||||
ecosystem.no_update_news = true;
|
||||
xwayland.force_zero_scaling = true;
|
||||
|
||||
monitor = [
|
||||
"${mainMonitor.id}, ${mainMonitor.resolution}@${mainMonitor.refresh-rate}, auto, ${mainMonitor.scale}"
|
||||
", preferred, auto, 1"
|
||||
];
|
||||
|
||||
exec-once = [
|
||||
"uwsm app -- $LOCKSCREEN"
|
||||
"uwsm app -- $NOTIFICATION_DAEMON"
|
||||
"uwsm app -- $STATUS_BAR"
|
||||
];
|
||||
|
||||
}
|
||||
]
|
|
@ -1,12 +1,21 @@
|
|||
{ lib, pkgs, ... }:
|
||||
let
|
||||
inherit (lib) mkMerge;
|
||||
in
|
||||
{
|
||||
lib,
|
||||
pkgs,
|
||||
osConfig,
|
||||
...
|
||||
}:
|
||||
{
|
||||
wayland.windowManager.hyprland.settings = import ./_hyprland/settings.nix {
|
||||
inherit pkgs osConfig lib;
|
||||
};
|
||||
wayland.windowManager.hyprland.settings = mkMerge [
|
||||
(import ./_hyprland/decoration.nix)
|
||||
(import ./_hyprland/keybinds.nix { inherit pkgs; })
|
||||
{
|
||||
ecosystem.no_update_news = true;
|
||||
xwayland.force_zero_scaling = true;
|
||||
monitor = [ ", preferred, auto, 1" ];
|
||||
exec-once = [
|
||||
"uwsm app -- $LOCKSCREEN"
|
||||
"uwsm app -- $NOTIFICATION_DAEMON"
|
||||
"uwsm app -- $STATUS_BAR"
|
||||
];
|
||||
}
|
||||
];
|
||||
# TODO: add gamescope here or in nixos desktop module
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue