update & remove old files

Signed-off-by: Hadi <112569860+anotherhadi@users.noreply.github.com>
This commit is contained in:
Hadi
2025-09-12 14:33:02 +02:00
parent b756f0fcd5
commit fada191840
13 changed files with 201 additions and 939 deletions

View File

@@ -1,26 +0,0 @@
# Zen is a minimalistic web browser.
{inputs, ...}: {
imports = [
inputs.zen-browser.homeModules.beta
];
programs.zen-browser = {
enable = true;
policies = {
DisableAppUpdate = true;
DisableTelemetry = true;
AutofillAddressesEnabled = false;
AutoFillCreditCardEnabled = false;
DisablePocket = true;
DisableProfileImport = true;
DisableSetDesktopBackground = true;
DontCheckDefaultBrowser = true;
HomepageURL = "https://start.hadi.diy";
StartPage = "homepage";
NewTabPage = true;
OfferToSaveLogins = false;
# find more options here: https://mozilla.github.io/policy-templates/
};
};
}

View File

@@ -1,14 +0,0 @@
# Clipman allows you to save and retrieve clipboard history.
{pkgs, ...}: let
clipboard-clear = pkgs.writeShellScriptBin "clipboard-clear" ''
clipman clear --all
'';
clipboard = pkgs.writeShellScriptBin "clipboard" ''
clipman pick --tool=wofi
'';
in {
wayland.windowManager.hyprland.settings.exec-once = ["${clipboard-clear}" "wl-paste -t text --watch clipman store"];
home.packages = with pkgs; [clipman clipboard clipboard-clear];
services.clipman.enable = true;
}

View File

@@ -20,7 +20,7 @@ in {
./bindings.nix
./polkitagent.nix
./keyboard-backlight.nix # CHANGEME: This is for omen laptop only
./hyprspace.nix
# ./hyprspace.nix # FIXME: Broken for now
];
home.packages = with pkgs; [
@@ -138,7 +138,7 @@ in {
mfact = 0.5;
};
gestures = {workspace_swipe = true;};
gesture = "3, horizontal, workspace";
misc = {
vfr = true;

View File

@@ -0,0 +1,10 @@
{inputs, ...}: {
imports = [inputs.vicinae.homeManagerModules.default];
services.vicinae = {
enable = true;
autoStart = true;
};
wayland.windowManager.hyprland.settings.exec-once = ["systemctl enable --now --user vicinae.service"];
}

View File

@@ -1,334 +0,0 @@
{
config,
pkgs,
...
}: {
imports = [
./swaync.nix
./swayosd.nix
];
wayland.windowManager.hyprland.settings.exec-once = ["waybar" "${pkgs.networkmanagerapplet}/bin/nm-applet" "${pkgs.blueman}/bin/blueman-applet"];
programs.waybar = {
enable = true;
systemd.enable = true;
settings.mainBar = {
spacing = 5;
margin-bottom = -11;
modules-left = ["hyprland/workspaces" "hyprland/window"];
modules-center = ["cava"];
modules-right = [
"group/extras"
"pulseaudio"
"battery"
"clock"
"custom/notification"
];
battery = {
states = {critical = 20;};
format = "{icon}";
format-icons = {
default = ["󰁺" "󰁻" "󰁼" "󰁽" "󰁾" "󰁿" "󰂀" "󰂁" "󰂂" "󰁹"];
charging = ["󰢜" "󰂆" "󰂇" "󰂈" "󰢝" "󰂉" "󰢞" "󰂊" "󰂋" "󰂅"];
};
format-full = "󱟢";
on-click = "powermode-toggle";
on-click-right = ''${pkgs.swayosd}/bin/swayosd-client --custom-message="Powermode is set to $(powerprofilesctl get)" --custom-icon="emblem-default"'';
};
"custom/vpn" = {
interval = 3;
format = "{}";
exec = ''
if ip add show | ${pkgs.ripgrep}/bin/rg -qF "proton"; then
echo '{"text":"󰖂 VPN On","class":"vpn-on"}'
else
echo '{"text":"󰖂 VPN Off","class":"vpn-off"}'
fi
'';
return-type = "json";
max-length = "100";
on-click = "protonvpn-app";
};
cava = {
framerate = 240;
bars = 20;
bar_delimiter = 0;
stereo = true;
input_delay = 4;
sleep_timer = 2;
hide_on_silence = true;
lower_cutoff_freq = 100;
higher_cutoff_freq = 8000;
format-icons = ["" "" "" "" "" "" "" ""];
};
clock = {
timezone = "Europe/Paris";
tooltip-format = "<span>{calendar}</span>";
calendar = {
mode = "month";
format = {
today = "<span color='#e7bbe4'><b>{}</b></span>";
days = "<span color='#cdd6f4'><b>{}</b></span>";
weekdays = "<span color='#7cd37c'><b>{}</b></span>";
months = "<b>{}</b>";
};
};
interval = 60;
max-length = 25;
on-click = "brave --profile-directory=Default --app-id=ojibjkjikcpjonjjngfkegflhmffeemk"; # Proton Calendar
};
"custom/arrow-toggle" = {
format = " {icon} ";
format-icons = {default = "";};
tooltip = false;
};
"custom/notification" = {
tooltip = false;
format = "{icon}";
format-icons = {
notification = "<span foreground='red'><sup></sup></span>";
none = "";
dnd-notification = "<span foreground='red'><sup></sup></span>";
dnd-none = "";
inhibited-notification = "<span foreground='red'><sup></sup></span>";
inhibited-none = "";
dnd-inhibited-notification = "<span foreground='red'><sup></sup></span>";
dnd-inhibited-none = "";
};
return-type = "json";
exec-if = "which swaync-client";
exec = "swaync-client -swb";
on-click = "swaync-client -t";
escape = true;
};
"group/extras" = {
orientation = "inherit";
drawer = {
transition-duration = 300;
transitition-left-to-right = false;
};
modules = ["custom/arrow-toggle" "tray" "custom/vpn"];
};
"hyprland/window" = {
format = "{}";
rewrite = {"^(.*?)[[:space:]]*[-|].*?$" = "$1";};
icon = true;
icon-size = 20;
max-length = 30;
};
"hyprland/workspaces" = {
format = "{icon}";
format-active = " {icon} ";
all-outputs = true;
};
network = {
format = "{ifname}";
format-wifi = "{icon} {essid}";
format-ethernet = "󰈀 Ethernet";
format-disconnected = " 󰤭 Disconnected ";
tooltip-format = "{ipaddr} {bandwidthUpBits} {bandwidthDownBits}";
format-linked = "󰈁 {ifname} (No IP)";
format-icons = ["󰤯" "󰤟" "󰤢" "󰤥" "󰤨"];
on-click = "kitty --class nmtui-float-term nmtui";
};
pulseaudio = {
format = "{icon}";
format-muted = "󰖁";
format-icons = ["󰕿" "󰖀" "󰕾"];
on-click = "sound-toggle";
scroll-step = 1;
};
tray = {spacing = 10;};
};
style = ''
* {
font-family: ${config.stylix.fonts.serif.name}, sans-serif;
}
window#waybar {
background-color: transparent;
}
#workspaces{
background-color: transparent;
margin-top: 10px;
margin-bottom: 10px;
margin-right: 10px;
margin-left: 25px;
}
#workspaces button{
background-color: #${config.lib.stylix.colors.base05};
color: #${config.lib.stylix.colors.base00};
box-shadow: rgba(0, 0, 0, 0.116) 2 2 5 2px;
border-radius: 15px;
margin-right: 10px;
padding-top: 4px;
padding-bottom: 2px;
padding-right: 10px;
font-weight: bolder;
}
.modules-left #workspaces button {
border-bottom: 0px;
}
#workspaces button.active{
padding-right: 20px;
box-shadow: rgba(0, 0, 0, 0.288) 2 2 5 2px;
text-shadow: 0 0 5px rgba(0, 0, 0, 0.377);
padding-left: 20px;
background: #${config.lib.stylix.colors.base0D};
color: #${config.lib.stylix.colors.base05};
}
.modules-left #workspaces button.focused,
.modules-left #workspaces button.active {
border-bottom: 0px;
}
#window {
color: #${config.theme.textColorOnWallpaper};
}
#clock,
#battery,
#network,
#pulseaudio,
#tray,
#cava,
#custom-notification,
#custom-vpn,
#mpd {
padding: 0 10px;
border-radius: 15px;
background-color: #${config.lib.stylix.colors.base05};
color: #${config.lib.stylix.colors.base00};
box-shadow: rgba(0, 0, 0, 0.116) 2 2 5 2px;
margin-top: 10px;
margin-bottom: 10px;
margin-right: 10px;
}
#cava{
background: #${config.lib.stylix.colors.base0D};
color: #${config.lib.stylix.colors.base05};
text-shadow: 0 0 5px rgba(0, 0, 0, 0.377);
font-weight: 900;
padding-top: 0px;
margin-left: 10px;
}
#pulseaudio,
#pulseaudio.muted{
color: #${config.lib.stylix.colors.base0D};
font-size: 20px;
font-weight: bolder;
padding-left: 14px;
padding-right: 15px;
border-radius: 15px;
}
#custom-notification {
background: #${config.lib.stylix.colors.base0D};
color: #${config.lib.stylix.colors.base05};
font-size: 20px;
font-weight: bolder;
padding-left: 20px;
padding-right: 24px;
}
#battery {
color: #86a381;
font-size: 17px;
padding-left: 15px;
padding-right: 15px;
border-radius: 15px;
}
@keyframes blink {
to {
background-color: #f9e2af;
color:#96804e;
}
}
#custom-vpn.vpn-on {
color: #2ecc71;
}
#custom-vpn.vpn-off {
color: #e74c3c;
}
#battery.critical:not(.charging) {
background-color: #f38ba8;
color:#bf5673;
animation-name: blink;
animation-duration: 0.5s;
animation-timing-function: linear;
animation-iteration-count: infinite;
animation-direction: alternate;
}
#network{
color:#000;
}
#network.disabled{
background-color: #45475a;
}
#network.disconnected{
background: rgb(243,139,168);
color: #fff;
font-weight: bolder;
}
#network.linked, #network.wifi{
background-color: #a6e3a1 ;
}
#network.ethernet{
background-color:#f9e2af ;
}
#tray {
background-color: #1c1816;
}
#tray > .passive {
-gtk-icon-effect: dim;
}
#custom-arrow-toggle {
font-size: 16px;
color: #516079;
opacity: 1;
transition: opacity 0.2s ease-in-out;
}
#extras:hover #custom-arrow-toggle {
opacity: 0;
}
#extras:hover {
background-color: transparent;
}
'';
};
}

View File

@@ -1,157 +0,0 @@
{pkgs, ...}: {
services.swaync = {
enable = true;
settings = {
control-center-layer = "top";
control-center-width = 400;
control-center-height = 400;
control-center-margin-top = 10;
control-center-margin-bottom = 250;
control-center-margin-right = 10;
notification-window-width = 380;
notification-icon-size = 48;
notification-body-image-height = 80;
notification-body-image-width = 160;
notification-2fa-action = true;
notification-grouping = false;
image-visibility = "when-available";
transition-time = 100;
widgets = ["title" "buttons-grid" "dnd" "inhibitors" "mpris" "notifications"];
widget-config = {
inhibitors = {
text = "Inhibitors";
button-text = "Clear All";
clear-all-button = true;
};
title = {
text = "Notifications";
clear-all-button = true;
button-text = "Clear All";
};
dnd = {text = "Do Not Disturb";};
mpris = {
image-size = 64;
blur = true;
};
buttons-grid = {
actions = [
{
label = "󰐥";
command = "systemctl poweroff";
}
{
label = "󰜉";
command = "systemctl reboot";
}
{
label = "󰒲";
command = "systemctl suspend";
}
{
label = "󰌾";
command = "lock";
}
{
label = "󰍃";
command = "${pkgs.hyprland}/bin/hyprctl dispatch exit";
}
{
label = "󰕾";
command = "${pkgs.swayosd}/bin/swayosd-client --output-volume mute-toggle";
}
{
label = "󰍬";
command = "${pkgs.swayosd}/bin/swayosd-client --input-volume mute-toggle";
}
{
label = "󰂯";
command = "${pkgs.blueman}/bin/blueman-manager";
}
{
label = "󰹑";
command = "screenshot region";
}
{
label = "";
command = "${pkgs.kooha}/bin/kooha";
}
{
label = "";
command = "caffeine";
}
{
label = "󰋱";
command = "hyprfocus-toggle";
}
];
};
};
};
style = ''
.notification,
.notification.low,
.notification.normal,
.notification.critical,
.notification-default-action,
.notification-default-action:hover,
.notification-default-action:active,
.notification-row:focus,
.notification-group:focus,
.notification-group.collapsed .notification-row .notification,
.control-center .notification-row .notification-background,
.control-center .notification-row .notification-background:hover,
.control-center .notification-row .notification-background:active {
background: transparent;
border: none;
outline: none;
box-shadow: none;
margin: 0;
padding: 0;
}
.control-center {
background: @base00;
border: 1px solid @base0D;
color: @base05;
padding: 5px;
border-radius: 15px;
}
.widget-body, .widget-mpris, .widget-dnd, .widget-inhibitors {
margin: 4px 5px;
}
.notification-content {
border-radius: 12px;
padding: 10px;
margin: 8px;
}
.notification-title {
font-weight: bold;
color: @base05;
}
.close-button {
margin: 6px;
padding: 3px;
border-radius: 100px;
background-color: transparent;
border: 1px solid transparent;
}
.close-button:hover {
background-color: @base0C;
}
.close-button:active {
background-color: @base0C;
color: @base00;
}
'';
};
}

View File

@@ -1,92 +0,0 @@
{
config,
pkgs,
...
}: let
accent = "#${config.lib.stylix.colors.base0D}";
background = "#${config.lib.stylix.colors.base00}";
foreground = "#${config.lib.stylix.colors.base05}";
borderSize = config.theme.border-size;
nerdFont = config.stylix.fonts.sansSerif.name;
theme = pkgs.writeTextFile {
name = "swayosd-css";
text = ''
window#osd {
padding: 12px 18px;
border-radius: 999px;
border: solid ${toString borderSize}px ${accent};
background: alpha(${background}, 0.99);
}
#container {
margin: 0px;
}
image {
font-family: "${nerdFont}";
font-size: 14px;
color: ${foreground};
}
label {
color: ${foreground};
}
progressbar:disabled,
image:disabled {
opacity: 0.5;
}
progressbar {
min-width: 150px;
min-height: 5px;
border-radius: 999px;
background: transparent;
border: none;
}
trough {
min-height: inherit;
border-radius: inherit;
border: none;
background: alpha(${accent},0.3);
}
progress {
min-height: inherit;
border-radius: inherit;
border: none;
background: ${accent};
}
'';
};
in {
wayland.windowManager.hyprland.settings = {
exec-once = ["swayosd-server"];
bind = [",XF86AudioMute, exec, ${pkgs.swayosd}/bin/swayosd-client --output-volume mute-toggle"];
bindl = [
",XF86MonBrightnessUp, exec, ${pkgs.swayosd}/bin/swayosd-client --brightness raise 5%+"
",XF86MonBrightnessDown, exec, ${pkgs.swayosd}/bin/swayosd-client --brightness lower 5%-"
"$mod,F2,exec, ${pkgs.swayosd}/bin/swayosd-client --brightness 100"
"$mod,F3,exec, ${pkgs.swayosd}/bin/swayosd-client --brightness 0"
",XF86AudioPlay, exec, ${pkgs.swayosd}/bin/swayosd-client --playerctl play-pause"
",XF86AudioNext, exec, ${pkgs.swayosd}/bin/swayosd-client --playerctl next"
",XF86AudioPrev, exec, ${pkgs.swayosd}/bin/swayosd-client --playerctl previous"
];
bindle = [
",XF86AudioRaiseVolume, exec, ${pkgs.swayosd}/bin/swayosd-client --output-volume +2 --max-volume=255"
",XF86AudioLowerVolume, exec, ${pkgs.swayosd}/bin/swayosd-client --output-volume -2"
];
bindr = [
"CAPS,Caps_Lock,exec,${pkgs.swayosd}/bin/swayosd-client --caps-lock"
",Scroll_Lock,exec,${pkgs.swayosd}/bin/swayosd-client --scroll-lock"
",Num_Lock,exec,${pkgs.swayosd}/bin/swayosd-client --num-lock"
];
};
services.swayosd = {
enable = true;
stylePath = theme;
};
}

View File

@@ -1,100 +0,0 @@
# Wofi is a launcher for Wayland, inspired by rofi.
{
config,
pkgs,
lib,
...
}: let
accent = "#${config.lib.stylix.colors.base0D}";
background = "#${config.lib.stylix.colors.base00}";
background-alt = "#${config.lib.stylix.colors.base01}";
foreground = "#${config.lib.stylix.colors.base05}";
font = config.stylix.fonts.serif.name;
rounding = config.theme.rounding;
font-size = config.stylix.fonts.sizes.popups;
in {
home.packages = with pkgs; [wofi-emoji];
programs.wofi = {
enable = true;
settings = {
allow_markup = true;
width = 650;
show = "drun";
prompt = "Apps";
normal_window = true;
height = 325;
allow_images = true;
image_size = 24;
insensitive = true;
hide_scroll = true;
no_actions = true;
gtk_dark = true;
};
style =
lib.mkForce
# css
''
* {
font-family: "${font}";
font-weight: 600;
font-size: ${toString font-size}px;
}
#window {
background-color: ${background};
color: ${foreground};
border-radius: ${toString rounding}px;
}
#outer-box {
padding: 20px;
}
#input {
background-color: ${background-alt};
border: 0px solid ${accent};
color: ${foreground};
padding: 8px 12px;
}
#scroll {
margin-top: 20px;
}
#inner-box {}
#img {
padding-right: 8px;
}
#text {
color: ${foreground};
}
#text:selected {
color: ${foreground};
}
#entry {
padding: 6px;
}
#entry:selected {
background-color: ${accent};
color: ${foreground};
}
#unselected {}
#selected {}
#input,
#entry:selected {
border-radius: ${toString rounding}px;
}
'';
};
}