Changed Desktop

This commit is contained in:
2025-09-10 11:48:22 +02:00
parent 6804d95a08
commit d099faf68a
4591 changed files with 1612898 additions and 51 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.8 MiB

View File

@@ -5,7 +5,9 @@
./hyprland.nix
./hypridle.nix
./hyprlock.nix
./hyprpaper.nix
#./hyprpaper.nix
#./wpaperd.nix
./swww.nix
./rofi # App Launcher
./mako.nix # Notifyer
./cava.nix # Music Visualizer
@@ -16,6 +18,8 @@
import ../../home/hyprland/waybar/single.nix
else if monitorSetup == "dual" then
import ../../home/hyprland/waybar/dual.nix
else if monitorSetup == "side" then
import ../../home/hyprland/waybar/side.nix
else
{ };

View File

@@ -23,6 +23,18 @@ in
recursive = true;
};
home.file.".config/hypr/avatar" = {
source = ../../avatar;
recursive = true;
};
home.file = {
"Pictures/Avatar" = {
source = ../../avatar;
recursive = true;
};
};
home.pointerCursor = {
gtk.enable = true;
package = pkgs.bibata-cursors;
@@ -186,13 +198,9 @@ in
# See further https://wiki.hypr.land/Configuring/Workspace-Rules/
exec-once = [
"waybar &"
"hyprpaper &"
"[workspace 8] obsidian"
"[workspace 1] floorp"
"[workspace 2] spotify"
"[workspace 2] kitty --class=cava-terminal -e cava"
"[workspace 3] thunderbird"
"[workspace 9] kitty"
#"hyprpaper &"
#"wpaperd -d"
"swww-daemon & disown"
];
# Keybindings
@@ -209,7 +217,7 @@ in
"${super}, M, exit, "
# Rofi bindings
"${super}, f, exec, ${filebrowser}"
"${super}, F, exec, ${filebrowser}"
"${super}, A, exec, ${apps}"
"${super}, R, exec, ${menu}"
"${super}, S, exec, ${power}"

View File

@@ -83,7 +83,7 @@
image = {
monitor = "";
path = "~/.config/hypr/avatar.png";
path = "~/.config/hypr/avatar/avatar.png";
size = 300;
border_color = "$teal";
position = "0, 75";

View File

@@ -1,5 +1,4 @@
{ pkgs, ... }:
{
home.packages = with pkgs; [
hyprpaper
@@ -13,10 +12,14 @@
};
# Hyprpaper configuration
services.hyprpaper.enable = true;
services.hyprpaper.settings = {
preload = "Pictures/Wallpapers/tokio.png";
wallpaper = ", Pictures/Wallpapers/tokio.png";
services.hyprpaper = {
enable = true;
settings = {
preload = [
"Pictures/Wallpapers/tokio.png"
];
wallpaper = ", Pictures/Wallpapers/tokio.png";
};
};
}

11
home/hyprland/swww.nix Normal file
View File

@@ -0,0 +1,11 @@
{ pkgs, ... }:
{
home.file = {
"Pictures/Wallpapers" = {
source = ../../wallpapers;
recursive = true;
};
};
home.packages = with pkgs; [ swww ];
}

View File

@@ -152,6 +152,13 @@
interval = 60;
tooltip = false;
};
"custom/weather-side" = {
format = "{}";
exec = "curl -s 'wttr.in/52.281311,10.527029?format=1'";
interval = 60;
tooltip = false;
};
};
}

View File

@@ -0,0 +1,17 @@
@import "mocha.css";
/* -- Global rules -- */
* {
border: none;
font-family: "JetbrainsMono Nerd Font";
font-size: 15px;
min-height: 10px;
}
window#waybar {
background: @crust;
}
window#waybar.hidden {
opacity: 0.2;
}

View File

@@ -1,5 +1,6 @@
{
pkgs,
monitorSetup,
...
}:
{
@@ -8,9 +9,27 @@
package = pkgs.waybar;
};
home.file.".config/waybar" = {
source = ./configs;
# copy the scripts directory recursively
recursive = true;
};
home.file.".config/waybar/style.css" =
if monitorSetup == "side" then
{
source = ./configs/side.css;
}
else
{
source = ./configs/style.css;
};
home.file.".config/waybar/cava.sh".source = ./configs/cava.sh;
home.file.".config/waybar/mocha.css".source = ./configs/mocha.css;
/*
home.file.".config/waybar" = {
source = ./configs;
# copy the scripts directory recursively
recursive = true;
};
home.file.".config/waybar/style.css" = lib.mkIf (monitorSetup == "side") {
source = ./configs/side.css;
};
*/
}

View File

@@ -1,6 +1,6 @@
let
common = import ./common.nix;
hyprland = import ./hyprland.nix;
wm = import ./wm.nix;
in
{
enable = true;
@@ -17,13 +17,14 @@ in
];
modules-center = [
"hyprland/workspaces"
"niri/workspaces"
];
modules-right = [
"group/hardware"
];
}
// common.widgets
// hyprland.widgets;
// wm.widgets;
secondBar =
{
@@ -32,11 +33,14 @@ in
height = 30;
output = [ "HDMI-A-2" ];
modules-left = [ "group/media" ];
modules-center = [ "hyprland/workspaces" ];
modules-center = [
"hyprland/workspaces"
"niri/workspaces"
];
modules-right = [ "custom/weather" ];
}
// common.widgets
// hyprland.widgets;
// wm.widgets;
};
}

View File

@@ -0,0 +1,36 @@
let
common = import ./common.nix;
wm = import ./wm.nix;
in
{
enable = true;
settings = {
mainBar =
{
layer = "top";
position = "left";
#height = 30;
modules-left = [
"custom/nixicon"
"clock"
"custom/cava"
"mpris"
"wireplumber"
];
modules-center = [
"hyprland/workspaces"
"niri/workspaces"
];
modules-right = [
"custom/weather-side"
"cpu"
"network"
"memory"
"disk"
"temperature"
];
}
// common.widgets
// wm.widgets;
};
}

View File

@@ -1,6 +1,6 @@
let
common = import ./common.nix;
hyprland = import ./hyprland.nix;
wm = import ./wm.nix;
in
{
enable = true;
@@ -10,15 +10,6 @@ in
layer = "top";
position = "top";
height = 30;
/*
Waybar should use every display available if not output is specified
output = [
"eDP-1"
"DP-1"
"HDMI-A-1"
"Virtual-1"
];
*/
modules-left = [
"custom/nixicon"
"clock"
@@ -26,14 +17,14 @@ in
];
modules-center = [
"hyprland/workspaces"
"niri/workspaces"
];
modules-right = [
"custom/weather"
"group/hardware"
];
# Widget configurations
}
// common.widgets
// hyprland.widgets;
// wm.widgets;
};
}

View File

@@ -7,5 +7,13 @@
active = "";
};
};
"niri/workspaces" = {
format = "{icon}";
format-icons = {
default = "";
active = "";
};
};
};
}

26
home/hyprland/wpaperd.nix Normal file
View File

@@ -0,0 +1,26 @@
{ ... }:
{
home.file = {
"Pictures/Wallpapers" = {
source = ../../wallpapers;
recursive = true;
};
};
services.wpaperd = {
enable = true;
settings = {
default = {
duration = "30m";
mode = "center";
sorting = "ascending";
};
any = {
path = "/home/phil/Pictures/Wallpapers/girl.png";
};
};
};
}

View File

@@ -1,5 +1,9 @@
{ pkgs, ... }:
{
programs.niri.enable = true;
home.packages = with pkgs; [
niri
xwayland-satellite
];
xdg.configFile."niri/config.kdl".source = ./niri-config.kdl;
}

110
home/niri/niri-config.kdl Normal file
View File

@@ -0,0 +1,110 @@
input {
keyboard {
xkb {
layout "de"
}
}
touchpad {
tap
natural-scroll
}
}
output "DP-1" {
position x=1920 y=0
}
output "HDMI-A-2" {
position x=0 y=0
}
layout {
gaps 16
center-focused-column "always"
focus-ring {
//off
width 2
active-color "#1e1e2e55"
inactive-color "#11111b55"
}
border {
off
width 2
active-color "#a6e3a1"
inactive-color "#f38ba8"
}
shadow {
//on
softness 30
spread 5
offset x=0 y=5
color "0007"
}
}
spawn-at-startup "waybar"
spawn-at-startup "hyprpaper"
spawn-at-startup "while true; do sleep 300; $HOME/.config/hypr/rotate-wallpaper.sh"
screenshot-path "~/Pictures/Screenshots/%Y-%m-%d_%H-%M-%S.png"
binds {
// Special Keys
XF86AudioMute { spawn "pamixer" "-t"; }
XF86AudioPlay { spawn "playerctl" "play-pause"; }
XF86AudioNext { spawn "playerctl" "next"; }
XF86AudioPrev { spawn "playerctl" "previous"; }
XF86AudioRaiseVolume { spawn "pamixer" "-i" "5"; }
XF86AudioLowerVolume { spawn "pamixer" "-d" "5"; }
XF86MonBrightnessUp { spawn "brightnessctl" "set" "+5%"; }
XF86MonBrightnessDown { spawn "brightnessctl" "set" "5%-"; }
// Application Bindings
Super+Q { spawn "kitty"; }
Super+E { spawn "yazi"; }
Super+O { spawn "obsidian"; }
Super+I { spawn "floorp"; }
Super+G { spawn "thunderbird"; }
// Lock Screen
Super+M { quit; }
// Rofi Bindings
Super+F { spawn "rofi" "-show" "filebrowser" "-theme" ".config/rofi/custom.rasi"; }
Super+A { spawn "rofi" "-show" "window" "-theme" ".config/rofi/custom.rasi"; }
Super+R { spawn "rofi" "-show" "drun" "-theme" ".config/rofi/custom.rasi"; }
Super+S { spawn "rofi" "-show" "p" "-modi" "p:rofi-power-menu" "-theme" ".config/rofi/power.rasi"; }
// Screenshot
Super+Z { screenshot-screen; }
Super+U { screenshot-window; }
// Window Keys
Super+V { toggle-window-floating; }
Super+Plus { set-column-width "+10%"; }
Super+Minus { set-column-width "-10%"; }
Super+Shift+Plus { set-window-height "+10%"; }
Super+Shift+Minus { set-window-height "-10%"; }
Super+C { close-window; }
// Switch Workspaces
Super+1 { focus-workspace 1; }
Super+2 { focus-workspace 2; }
Super+3 { focus-workspace 3; }
Super+4 { focus-workspace 4; }
Super+5 { focus-workspace 5; }
Super+6 { focus-workspace 6; }
Super+7 { focus-workspace 7; }
Super+8 { focus-workspace 8; }
Super+9 { focus-workspace 9; }
// Focus Window
Super+Shift+Left { focus-column-left; }
Super+Shift+Right { focus-column-right; }
}

View File

@@ -7,11 +7,26 @@
config = {
useQuickCss = true;
themeLinks = [
"https://raw.githubusercontent.com/catppuccin/discord/refs/heads/main/themes/mocha.theme.css"
];
frameless = true;
plugins = {
betterFolders.enable = true;
betterRoleContext.enable = true;
mentionAvatars.enable = true;
# Add other plugins as needed
copyUserURLs.enable = true;
fakeNitro.enable = true;
decor.enable = true;
#accountPanelServerProfile = true;
copyFileContents.enable = true;
fakeProfileThemes.enable = true;
friendsSince.enable = true;
implicitRelationships.enable = true;
noTrack.enable = true;
permissionsViewer.enable = true;
serverInfo.enable = true;
translate.enable = true;
};
};
};

View File

@@ -22,7 +22,7 @@ let
"video/*" = [ "mpv.dekstop" ];
"image/*" = [ "kitty-icat.desktop" ];
"application/json" = browser;
"application/pdf" = [ "okular.desktop" ];
"application/pdf" = [ "kitty-tdf.desktop" ];
"x-scheme-handler/discord" = [ "discordcanary.desktop" ];
"x-scheme-handler/spotify" = [ "spotify.desktop" ];
"x-scheme-handler/tg" = [ "telegramdesktop.desktop" ];
@@ -50,6 +50,18 @@ in
"Graphics"
];
};
kitty-tdf = {
name = "TDF PDF Viewer";
exec = "kitty -e tdf %F";
terminal = false; # Set to false since we're explicitly calling kitty
type = "Application";
mimeType = [ "application/pdf" ];
categories = [
"Viewer"
"Office"
];
};
};
userDirs = {