Compare commits

...

4 Commits

Author SHA1 Message Date
b19b1a8fcc feat: add pulsemixer 2025-03-27 23:03:55 +03:00
1400cc1433 fix: brightness setting 2025-03-27 17:31:56 +03:00
a02389636a feat: kitty to ghostty 2025-03-27 17:31:34 +03:00
4e9b23c9ce pkgs: add some utils 2025-03-27 12:56:20 +03:00
11 changed files with 43 additions and 103 deletions

70
flake.lock generated
View File

@ -263,24 +263,6 @@
"type": "github"
}
},
"flake-parts_2": {
"inputs": {
"nixpkgs-lib": "nixpkgs-lib"
},
"locked": {
"lastModified": 1714641030,
"narHash": "sha256-yzcRNDoyVP7+SCNX0wmuDju1NUCt8Dz9+lyUXEI0dbI=",
"owner": "hercules-ci",
"repo": "flake-parts",
"rev": "e5d10a24b66c3ea8f150e47dfdb0416ab7c3390e",
"type": "github"
},
"original": {
"owner": "hercules-ci",
"repo": "flake-parts",
"type": "github"
}
},
"flake-utils": {
"inputs": {
"systems": [
@ -751,18 +733,6 @@
"type": "github"
}
},
"nixpkgs-lib": {
"locked": {
"lastModified": 1714640452,
"narHash": "sha256-QBx10+k6JWz6u7VsohfSw8g8hjdBZEf8CFzXH1/1Z94=",
"type": "tarball",
"url": "https://github.com/NixOS/nixpkgs/archive/50eb7ecf4cd0a5756d7275c8ba36790e5bd53e33.tar.gz"
},
"original": {
"type": "tarball",
"url": "https://github.com/NixOS/nixpkgs/archive/50eb7ecf4cd0a5756d7275c8ba36790e5bd53e33.tar.gz"
}
},
"nixpkgs-stable": {
"locked": {
"lastModified": 1740743217,
@ -875,22 +845,6 @@
"type": "github"
}
},
"nixpkgs_8": {
"locked": {
"lastModified": 1715534503,
"narHash": "sha256-5ZSVkFadZbFP1THataCaSf0JH2cAH3S29hU9rrxTEqk=",
"owner": "nixos",
"repo": "nixpkgs",
"rev": "2057814051972fa1453ddfb0d98badbea9b83c06",
"type": "github"
},
"original": {
"owner": "nixos",
"ref": "nixos-unstable",
"repo": "nixpkgs",
"type": "github"
}
},
"nur": {
"inputs": {
"flake-parts": "flake-parts",
@ -948,8 +902,7 @@
"nixpkgs": "nixpkgs_5",
"nixpkgs-stable": "nixpkgs-stable",
"sops-nix": "sops-nix",
"stylix": "stylix",
"tlock": "tlock"
"stylix": "stylix"
}
},
"sops-nix": {
@ -1117,27 +1070,6 @@
"type": "github"
}
},
"tlock": {
"inputs": {
"flake-parts": "flake-parts_2",
"nixpkgs": "nixpkgs_8"
},
"locked": {
"lastModified": 1716429453,
"narHash": "sha256-6raIb7D7B/KQtKy63ixVRAJ7AN30JI7w/XGI2W8fuRk=",
"ref": "refs/heads/main",
"rev": "5091452ae294c4b424293ae4ffdcdbc8f04601fb",
"revCount": 343,
"submodules": true,
"type": "git",
"url": "https://github.com/eklairs/tlock"
},
"original": {
"submodules": true,
"type": "git",
"url": "https://github.com/eklairs/tlock"
}
},
"treefmt-nix": {
"inputs": {
"nixpkgs": [

View File

@ -24,7 +24,6 @@
stylix.url = "github:danth/stylix";
ags.url = "github:Aylur/ags";
ayugram-desktop.url = "github:/ayugram-port/ayugram-desktop/release?submodules=1";
tlock.url = "git+https://github.com/eklairs/tlock?submodules=1";
hyprland.url = "github:hyprwm/Hyprland";
hyprland-plugins = {

View File

@ -1,6 +1,5 @@
{
imports = [
./user/kitty.nix
./user/qt.nix
./user/sops.nix
./user/neofetch.nix
@ -12,6 +11,7 @@
./user/btop.nix
./user/wofi.nix
./user/mako.nix
./user/ghostty.nix
./user/packages/art.nix
./user/packages/desktop.nix
./user/packages/coding.nix

View File

@ -16,6 +16,10 @@
];
};
home.packages = with pkgs; [
pulsemixer
];
wayland.windowManager.hyprland.settings.exec-once = [ "ags run" ];
xdg.configFile."ags".source = (pkgs.callPackage ./packages/drvs/ags.nix { colors = config.lib.stylix.colors; });

11
modules/user/ghostty.nix Normal file
View File

@ -0,0 +1,11 @@
{
programs.ghostty = {
enable = true;
enableZshIntegration = true;
settings = {
confirm-close-surface = false;
copy-on-select = false;
title-report = true;
};
};
}

View File

@ -1,14 +0,0 @@
{ lib, pkgs, ... }: {
programs.kitty = {
enable = true;
settings = lib.mkDefault {
dynamic_background_opacity = "yes";
background_opacity = 0.5;
background_blur = true;
background = "#1d2021";
font_size = 13.0;
cursor_blink_interval = "0.5 ease-in-out";
};
};
programs.zsh.envExtra = "TERM=xterm-256color";
}

View File

@ -1,11 +1,16 @@
import { bind } from "astal"
import { execAsync } from "astal/process"
import Wp from "gi://AstalWp"
export default function Audio() {
const speaker = Wp.get_default()?.audio.defaultSpeaker!
return <box className="AudioSlider">
return <button
className="AudioSlider"
onClicked={() => { execAsync("ghostty --title=pulsemixer -e pulsemixer") }}>
<box>
<icon icon={bind(speaker, "volumeIcon")} />
<label label={bind(speaker, "volume").as(v => `${Math.floor(v*100)}%`)} />
</box>
</button>
}

View File

@ -10,7 +10,7 @@ export default function Wifi() {
{wifi.as(wifi => wifi && (
<button
className="Wifi"
onClicked={() => {execAsync("kitty nmtui")}}>
onClicked={() => {execAsync("ghostty --title=nmtui -e nmtui")}}>
<box>
<icon
tooltipText={bind(wifi, "ssid").as(String)}

View File

@ -13,10 +13,11 @@
gparted
git-lfs
unrar
inputs.tlock.packages.${system}.default
hexyl
jq
litecli
trashy
dig
mtr
];
}

View File

@ -1,6 +1,6 @@
{ pkgs, lib, config, collection, swww_flags, inputs }: {
home.packages = with pkgs; [
kitty
ghostty
pamixer
wofi
clipse
@ -130,8 +130,10 @@
];
windowrulev2 = [
"float, class:(clipse)"
"size 622 652, class:(clipse)"
"float, title:(nmtui)"
"float, title:(pulsemixer)"
"float, title:(clipse)"
"size 622 652, title:(clipse)"
];
exec-once = [
@ -144,12 +146,12 @@
];
bind = [
"$mainMod, V, exec, kitty --class clipse -e clipse"
"$mainMod, V, exec, ghostty --title=clipse -e clipse"
"$mainMod, Return, exec, kitty"
"$mainMod, Return, exec, ghostty"
"$mainMod, Q, killactive,"
"$mainMod, M, exit,"
"$mainMod, E, exec, kitty -e sh -c yazi"
"$mainMod, E, exec, ghostty -e sh -c yazi"
"$mainMod, F, togglefloating,"
"$mainMod, D, exec, wofi --show drun"
"$mainMod, P, pseudo, # dwindle"
@ -204,8 +206,8 @@
"$mainMod, mouse_up, workspace, e-1"
# Keyboard backlight
"$mainMod, F3, exec, brightnessctl -d *::kbd_backlight set +33%"
"$mainMod, F2, exec, brightnessctl -d *::kbd_backlight set 33%-"
"$mainMod, F3, exec, ${lib.getExe pkgs.brightnessctl} -d *::kbd_backlight set +33%"
"$mainMod, F2, exec, ${lib.getExe pkgs.brightnessctl} -d *::kbd_backlight set 33%-"
# Volume and Media Control
", XF86AudioRaiseVolume, exec, pamixer -i 5 "
@ -214,8 +216,8 @@
", XF86AudioMicMute, exec, pamixer --default-source -m"
# Brightness control
", XF86MonBrightnessDown, exec, brightnessctl set 5%- "
", XF86MonBrightnessUp, exec, brightnessctl set +5% "
", XF86MonBrightnessDown, exec, ${lib.getExe pkgs.brightnessctl} set 5%- "
", XF86MonBrightnessUp, exec, ${lib.getExe pkgs.brightnessctl} set +5% "
# Waybar
"$mainMod, B, exec, pkill -SIGUSR1 waybar"