This commit is contained in:
Sojus07
2025-06-01 12:00:08 +02:00
parent f0abdb3a2c
commit d409d60b72
7 changed files with 42 additions and 27 deletions

View File

@ -3,6 +3,7 @@
imports = [
./system/default.nix
];
hardware = {
bluetooth = {
enable = true;

View File

@ -1,5 +1,11 @@
{config, pkgs, ... }:
{
home.packages = with pkgs; [
grim
swaybg
slurp
dunst
];
wayland.windowManager.sway = {
enable = true;
xwayland = true;
@ -18,7 +24,7 @@
terminal = "alacritty";
menu = "${pkgs.rofi}/bin/rofi -show drun -c .config/rofi/config.rasi";
startup = [
{command = "${pkgs.swaybg}/bin/swaybg -i $HOME/.wp/gruvbox-dark-blue.png";}
{command = "${pkgs.swaybg}/bin/swaybg -i $HOME/.wp/gruvbox-dark-blue.png; ${pkgs.dunst}/bin/dunst";}
];
bars = [{ command = "${pkgs.waybar}/bin/waybar"; }];
gaps = {
@ -75,10 +81,11 @@
"${modifier}+Shift+8" = "move container to workspace number 8";
"${modifier}+Shift+9" = "move container to workspace number 9";
# Audio
# Media
"XF86AudioRaiseVolume" = "exec ${pkgs.pulseaudio}/bin/pactl set-sink-volume @DEFAULT_SINK@ +5%";
"XF86AudioLowerVolume" = "exec ${pkgs.pulseaudio}/bin/pactl set-sink-volume @DEFAULT_SINK@ -5%";
"XF86AudioMute" = "exec ${pkgs.pulseaudio}/bin/pactl set-volume toggle-mute";
"XF86AudioMute" = "exec ${pkgs.pulseaudio}/bin/pactl set-sink-volume toggle-mute";
"XF86AudioStop" = "exec ${pkgs.playerctl}/bin/playerctl stop";
"XF86AudioPrev" = "exec ${pkgs.playerctl}/bin/playerctl previous";
"XF86AudioNext" = "exec ${pkgs.playerctl}/bin/playerctl next";

View File

@ -29,7 +29,7 @@
* {
border: none;
font-family: JetBrainsMono Nerd Font, sans-serif;
font-family: Terminess Nerd Font, sans-serif;
font-size: 14px;
}
@ -251,6 +251,7 @@
};
"clock" = {
interval = 1;
tooltip-format = "<big>{:%Y %B}</big>\n<tt><small>{calendar}</small></tt>";
format = " {:%H:%M:%S}";
format-alt = " {:%A, %B %d, %Y}";
@ -286,8 +287,9 @@
};
"network" = {
interval = 1;
format-wifi = " {essid} {signalStrength}%";
format-ethernet = "{ifname}: {ipaddr}/{cidr} 󰈀 ";
format-ethernet = " {bandwidthUpBits} / {bandwidthDownBits} | {ipaddr} 󰈀 ";
format-linked = "{ifname} (No IP) ";
format-disconnected = "󰤮 Disconnected";
on-click-release = "sleep 0";
@ -295,6 +297,7 @@
};
"pulseaudio" = {
interval = 1;
format = "{icon}{volume}% {format_source}";
format-bluetooth = "{icon} {volume}%";
format-bluetooth-muted = " {volume}%";
@ -308,8 +311,8 @@
default = [" " " " " "];
};
tooltip-format = "{desc} {volume}%";
on-click = "wpctl set-sink-mute @DEFAULT_SINK@ toggle";
on-click-right = "wpctl set-source-mute @DEFAULT_SOURCE@ toggle";
on-click = "${pkgs.wireplumber}/bin/wpctl set-sink-mute @DEFAULT_SINK@ toggle";
on-click-right = "${pkgs.wireplumber}/bin/pctl set-source-mute @DEFAULT_SOURCE@ toggle";
on-click-middle = "${pkgs.pavucontrol}/bin/pavucontrol";
on-click-release = "sleep 0";
on-click-middle-release = "sleep 0";

View File

@ -11,4 +11,18 @@
./firefox.nix
./pkgs.nix
];
xdg = {
portal = {
enable = true;
xdgOpenUsePortal = true;
extraPortals = with pkgs; [
xdg-desktop-portal-gnome
xdg-desktop-portal-wlr
xdg-desktop-portal-gtk
];
};
};
}

View File

@ -1,14 +1,11 @@
{ config, pkgs, ... }:
{
services = {
libinput = {
enable = true;
};
pipewire = {
enable = true;
pulse.enable = true;
wireplumber.enable = true;
};
dbus.enable = true;
mullvad-vpn = {
enable = true;
@ -17,4 +14,11 @@
gnome.gnome-keyring.enable = true;
};
security.rtkit.enable = true;
services.pipewire = {
enable = true;
alsa.enable = true;
alsa.support32Bit = true;
pulse.enable = true;
wireplumber.enable = true;
};
}

View File

@ -55,13 +55,6 @@
useXkbConfig = true;
};
xdg.portal = {
enable = false;
extraPortals = [
pkgs.xdg-desktop-portal-gtk
];
};
programs = {
nix-ld.enable = true;
dconf = {

View File

@ -54,14 +54,7 @@
font = "Lat2-Terminus16";
useXkbConfig = true;
};
xdg.portal = {
enable = false;
extraPortals = [
pkgs.xdg-desktop-portal-gtk
];
};
programs = {
nix-ld.enable = true;
dconf = {