mirror of
https://github.com/librephoenix/nixos-config
synced 2025-11-30 14:43:59 +05:30
Don't start discord by default
This commit is contained in:
parent
62e39cced4
commit
c0fcf698dc
1 changed files with 206 additions and 192 deletions
|
|
@ -1,4 +1,10 @@
|
||||||
{ config, lib, pkgs, inputs, ... }:
|
{
|
||||||
|
config,
|
||||||
|
lib,
|
||||||
|
pkgs,
|
||||||
|
inputs,
|
||||||
|
...
|
||||||
|
}:
|
||||||
let
|
let
|
||||||
cfg = config.userSettings.hyprland;
|
cfg = config.userSettings.hyprland;
|
||||||
font = config.stylix.fonts.monospace.name;
|
font = config.stylix.fonts.monospace.name;
|
||||||
|
|
@ -23,7 +29,9 @@ in
|
||||||
userSettings.alacritty.enable = true;
|
userSettings.alacritty.enable = true;
|
||||||
programs.alacritty.settings.window.opacity = lib.mkOverride 40 (if performance then 1.0 else 0.85);
|
programs.alacritty.settings.window.opacity = lib.mkOverride 40 (if performance then 1.0 else 0.85);
|
||||||
userSettings.kitty.enable = true;
|
userSettings.kitty.enable = true;
|
||||||
programs.kitty.settings.background_opacity = lib.mkOverride 40 (if performance then "1.0" else "0.85");
|
programs.kitty.settings.background_opacity = lib.mkOverride 40 (
|
||||||
|
if performance then "1.0" else "0.85"
|
||||||
|
);
|
||||||
userSettings.emacs.opacity = lib.mkOverride 40 (if performance then 100 else 85);
|
userSettings.emacs.opacity = lib.mkOverride 40 (if performance then 100 else 85);
|
||||||
userSettings.dmenuScripts = {
|
userSettings.dmenuScripts = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
@ -52,11 +60,9 @@ in
|
||||||
GRIM_DEFAULT_DIR = config.xdg.userDirs.extraConfig.XDG_SCREENSHOT_DIR;
|
GRIM_DEFAULT_DIR = config.xdg.userDirs.extraConfig.XDG_SCREENSHOT_DIR;
|
||||||
};
|
};
|
||||||
|
|
||||||
xdg.portal =
|
xdg.portal = {
|
||||||
{
|
|
||||||
enable = true;
|
enable = true;
|
||||||
extraPortals = with pkgs;
|
extraPortals = with pkgs; [
|
||||||
[
|
|
||||||
xdg-desktop-portal-wlr
|
xdg-desktop-portal-wlr
|
||||||
xdg-desktop-portal-termfilechooser
|
xdg-desktop-portal-termfilechooser
|
||||||
];
|
];
|
||||||
|
|
@ -73,11 +79,9 @@ in
|
||||||
|
|
||||||
home.sessionVariables.TERMCMD = "kitty --class=filechoose_yazi";
|
home.sessionVariables.TERMCMD = "kitty --class=filechoose_yazi";
|
||||||
|
|
||||||
xdg.configFile."xdg-desktop-portal-termfilechooser/config" =
|
xdg.configFile."xdg-desktop-portal-termfilechooser/config" = {
|
||||||
{
|
|
||||||
force = true;
|
force = true;
|
||||||
text =
|
text = ''
|
||||||
''
|
|
||||||
[filechooser]
|
[filechooser]
|
||||||
cmd=${pkgs.xdg-desktop-portal-termfilechooser}/share/xdg-desktop-portal-termfilechooser/yazi-wrapper.sh
|
cmd=${pkgs.xdg-desktop-portal-termfilechooser}/share/xdg-desktop-portal-termfilechooser/yazi-wrapper.sh
|
||||||
'';
|
'';
|
||||||
|
|
@ -122,7 +126,11 @@ in
|
||||||
general = {
|
general = {
|
||||||
layout = "master";
|
layout = "master";
|
||||||
border_size = 0;
|
border_size = 0;
|
||||||
"col.active_border" = if performance then "0xff${config.lib.stylix.colors.base0B}" else "0xff${config.lib.stylix.colors.base08} 0xff${config.lib.stylix.colors.base09} 0xff${config.lib.stylix.colors.base0A} 0xff${config.lib.stylix.colors.base0B} 0xff${config.lib.stylix.colors.base0C} 0xff${config.lib.stylix.colors.base0D} 0xff${config.lib.stylix.colors.base0E} 0xff${config.lib.stylix.colors.base0F} 270deg";
|
"col.active_border" =
|
||||||
|
if performance then
|
||||||
|
"0xff${config.lib.stylix.colors.base0B}"
|
||||||
|
else
|
||||||
|
"0xff${config.lib.stylix.colors.base08} 0xff${config.lib.stylix.colors.base09} 0xff${config.lib.stylix.colors.base0A} 0xff${config.lib.stylix.colors.base0B} 0xff${config.lib.stylix.colors.base0C} 0xff${config.lib.stylix.colors.base0D} 0xff${config.lib.stylix.colors.base0E} 0xff${config.lib.stylix.colors.base0F} 270deg";
|
||||||
"col.inactive_border" = "0xff${config.lib.stylix.colors.base02}";
|
"col.inactive_border" = "0xff${config.lib.stylix.colors.base02}";
|
||||||
resize_on_border = true;
|
resize_on_border = true;
|
||||||
gaps_in = 14;
|
gaps_in = 14;
|
||||||
|
|
@ -131,7 +139,8 @@ in
|
||||||
|
|
||||||
group = {
|
group = {
|
||||||
"col.border_active" = config.wayland.windowManager.hyprland.settings.general."col.active_border";
|
"col.border_active" = config.wayland.windowManager.hyprland.settings.general."col.active_border";
|
||||||
"col.border_inactive" = config.wayland.windowManager.hyprland.settings.general."col.inactive_border";
|
"col.border_inactive" =
|
||||||
|
config.wayland.windowManager.hyprland.settings.general."col.inactive_border";
|
||||||
groupbar = {
|
groupbar = {
|
||||||
gradients = false;
|
gradients = false;
|
||||||
"col.active" = "0xff${config.lib.stylix.colors.base0B}";
|
"col.active" = "0xff${config.lib.stylix.colors.base0B}";
|
||||||
|
|
@ -289,7 +298,6 @@ in
|
||||||
"SUPER,B,togglespecialworkspace,scratch_btm"
|
"SUPER,B,togglespecialworkspace,scratch_btm"
|
||||||
''SUPER,D,exec,if hyprctl clients | grep Element; then echo "scratch_chat respawn not needed"; else element-desktop; fi''
|
''SUPER,D,exec,if hyprctl clients | grep Element; then echo "scratch_chat respawn not needed"; else element-desktop; fi''
|
||||||
''SUPER,D,exec,if hyprctl clients | grep Zulip; then echo "scratch_chat respawn not needed"; else zulip; fi''
|
''SUPER,D,exec,if hyprctl clients | grep Zulip; then echo "scratch_chat respawn not needed"; else zulip; fi''
|
||||||
''SUPER,D,exec,if hyprctl clients | grep discord; then echo "scratch_chat respawn not needed"; else discord; fi''
|
|
||||||
"SUPER,D,togglespecialworkspace,scratch_chat"
|
"SUPER,D,togglespecialworkspace,scratch_chat"
|
||||||
''SUPER,equal, exec, hyprctl keyword cursor:zoom_factor "$(hyprctl getoption cursor:zoom_factor | grep float | awk '{print $2 + 0.5}')"''
|
''SUPER,equal, exec, hyprctl keyword cursor:zoom_factor "$(hyprctl getoption cursor:zoom_factor | grep float | awk '{print $2 + 0.5}')"''
|
||||||
''SUPER,minus, exec, hyprctl keyword cursor:zoom_factor "$(hyprctl getoption cursor:zoom_factor | grep float | awk '{print $2 - 0.5}')"''
|
''SUPER,minus, exec, hyprctl keyword cursor:zoom_factor "$(hyprctl getoption cursor:zoom_factor | grep float | awk '{print $2 - 0.5}')"''
|
||||||
|
|
@ -387,7 +395,8 @@ in
|
||||||
"float,title:^(Unlock Database - KeePassXC)$"
|
"float,title:^(Unlock Database - KeePassXC)$"
|
||||||
"size 80% 85%,title:^(Unlock Database - KeePassXC)$"
|
"size 80% 85%,title:^(Unlock Database - KeePassXC)$"
|
||||||
"center,title:^(Unlock Database - KeepassXC)$"
|
"center,title:^(Unlock Database - KeepassXC)$"
|
||||||
] ++ lib.optionals (!performance) [
|
]
|
||||||
|
++ lib.optionals (!performance) [
|
||||||
"opacity 0.80,class:^(dev.zed.Zed)$"
|
"opacity 0.80,class:^(dev.zed.Zed)$"
|
||||||
"opacity 0.80,class:^(org.pulseaudio.pavucontrol)$"
|
"opacity 0.80,class:^(org.pulseaudio.pavucontrol)$"
|
||||||
"opacity 1.0,class:^(org.qutebrowser.qutebrowser),fullscreen:1"
|
"opacity 1.0,class:^(org.qutebrowser.qutebrowser),fullscreen:1"
|
||||||
|
|
@ -439,12 +448,16 @@ in
|
||||||
};
|
};
|
||||||
|
|
||||||
};
|
};
|
||||||
systemd.variables = ["--all"];
|
systemd.variables = [ "--all" ];
|
||||||
xwayland = { enable = true; };
|
xwayland = {
|
||||||
|
enable = true;
|
||||||
|
};
|
||||||
systemd.enable = true;
|
systemd.enable = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
home.packages = (with pkgs; [
|
home.packages = (
|
||||||
|
with pkgs;
|
||||||
|
[
|
||||||
networkmanagerapplet
|
networkmanagerapplet
|
||||||
hyprland-monitor-attached
|
hyprland-monitor-attached
|
||||||
alacritty
|
alacritty
|
||||||
|
|
@ -577,7 +590,8 @@ in
|
||||||
if pgrep -x nixos-rebuild > /dev/null || pgrep -x home-manager > /dev/null || pgrep -x kdenlive > /dev/null || pgrep -x FL64.exe > /dev/null || pgrep -x blender > /dev/null || pgrep -x flatpak > /dev/null;
|
if pgrep -x nixos-rebuild > /dev/null || pgrep -x home-manager > /dev/null || pgrep -x kdenlive > /dev/null || pgrep -x FL64.exe > /dev/null || pgrep -x blender > /dev/null || pgrep -x flatpak > /dev/null;
|
||||||
then echo "Shouldn't suspend"; sleep 10; else echo "Should suspend"; systemctl suspend; fi
|
then echo "Shouldn't suspend"; sleep 10; else echo "Should suspend"; systemctl suspend; fi
|
||||||
'')
|
'')
|
||||||
]);
|
]
|
||||||
|
);
|
||||||
home.file.".config/hypr/shaders/grayscale.glsl".text = ''
|
home.file.".config/hypr/shaders/grayscale.glsl".text = ''
|
||||||
/*
|
/*
|
||||||
* Grayscale
|
* Grayscale
|
||||||
|
|
@ -636,52 +650,52 @@ in
|
||||||
}
|
}
|
||||||
'';
|
'';
|
||||||
home.file.".config/ashell/config.toml".text = ''
|
home.file.".config/ashell/config.toml".text = ''
|
||||||
outputs = "All"
|
outputs = "All"
|
||||||
position = "Top"
|
position = "Top"
|
||||||
app_launcher_cmd = "nwggrid-wrapper"
|
app_launcher_cmd = "nwggrid-wrapper"
|
||||||
truncate_title_after_length = 150
|
truncate_title_after_length = 150
|
||||||
[modules]
|
[modules]
|
||||||
left = [ "AppLauncher", "SystemInfo" ]
|
left = [ "AppLauncher", "SystemInfo" ]
|
||||||
center = [ "Workspaces" ]
|
center = [ "Workspaces" ]
|
||||||
right = [ "Clock", "Settings", "Tray" ]
|
right = [ "Clock", "Settings", "Tray" ]
|
||||||
[workspaces]
|
[workspaces]
|
||||||
visibility_mode = "MonitorSpecific"
|
visibility_mode = "MonitorSpecific"
|
||||||
enable_workspace_filling = true
|
enable_workspace_filling = true
|
||||||
[system.cpu]
|
[system.cpu]
|
||||||
warn_threshold = 80
|
warn_threshold = 80
|
||||||
alert_threshold = 95
|
alert_threshold = 95
|
||||||
[system.mem]
|
[system.mem]
|
||||||
warn_threshold = 50
|
warn_threshold = 50
|
||||||
alert_threshold = 75
|
alert_threshold = 75
|
||||||
[system.temp]
|
[system.temp]
|
||||||
warn_threshold = 85
|
warn_threshold = 85
|
||||||
alert_threshold = 95
|
alert_threshold = 95
|
||||||
[clock]
|
[clock]
|
||||||
format = "%a %d %b %H:%M:%S"
|
format = "%a %d %b %H:%M:%S"
|
||||||
[mediaPlayer]
|
[mediaPlayer]
|
||||||
max_title_length = 100
|
max_title_length = 100
|
||||||
[settings]
|
[settings]
|
||||||
lockCmd = "hyprlock &"
|
lockCmd = "hyprlock &"
|
||||||
audio_sinks_more_cmd = "pavucontrol -t 3"
|
audio_sinks_more_cmd = "pavucontrol -t 3"
|
||||||
audio_sources_more_cmd = "pavucontrol -t 4"
|
audio_sources_more_cmd = "pavucontrol -t 4"
|
||||||
wifi_more_cmd = "nm-connection-editor"
|
wifi_more_cmd = "nm-connection-editor"
|
||||||
vpn_more_cmd = "nm-connection-editor"
|
vpn_more_cmd = "nm-connection-editor"
|
||||||
bluetooth_more_cmd = "blueman-manager"
|
bluetooth_more_cmd = "blueman-manager"
|
||||||
[appearance]
|
[appearance]
|
||||||
scale_factor = 1.25
|
scale_factor = 1.25
|
||||||
style = "Solid"
|
style = "Solid"
|
||||||
opacity = ${if performance then "1.0" else "0.7"}
|
opacity = ${if performance then "1.0" else "0.7"}
|
||||||
background_color = "#${config.lib.stylix.colors.base00}88"
|
background_color = "#${config.lib.stylix.colors.base00}88"
|
||||||
primary_color = "#${config.lib.stylix.colors.base0A}"
|
primary_color = "#${config.lib.stylix.colors.base0A}"
|
||||||
secondary_color = "#${config.lib.stylix.colors.base01}"
|
secondary_color = "#${config.lib.stylix.colors.base01}"
|
||||||
success_color = "#${config.lib.stylix.colors.base0A}"
|
success_color = "#${config.lib.stylix.colors.base0A}"
|
||||||
danger_color = "#${config.lib.stylix.colors.base08}"
|
danger_color = "#${config.lib.stylix.colors.base08}"
|
||||||
text_color = "#${config.lib.stylix.colors.base07}"
|
text_color = "#${config.lib.stylix.colors.base07}"
|
||||||
workspace_colors = [ "#${config.lib.stylix.colors.base0B}", "#${config.lib.stylix.colors.base0B}" ]
|
workspace_colors = [ "#${config.lib.stylix.colors.base0B}", "#${config.lib.stylix.colors.base0B}" ]
|
||||||
specialWorkspaceColors = [ "#${config.lib.stylix.colors.base0B}", "#${config.lib.stylix.colors.base0B}" ]
|
specialWorkspaceColors = [ "#${config.lib.stylix.colors.base0B}", "#${config.lib.stylix.colors.base0B}" ]
|
||||||
[appearance.menu]
|
[appearance.menu]
|
||||||
opacity = ${if performance then "1.0" else "0.7"}
|
opacity = ${if performance then "1.0" else "0.7"}
|
||||||
backdrop = 0.0
|
backdrop = 0.0
|
||||||
'';
|
'';
|
||||||
home.file.".config/hypr/hypridle.conf".text = ''
|
home.file.".config/hypr/hypridle.conf".text = ''
|
||||||
general {
|
general {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue