Compare commits
3 Commits
4c0add9c7b
...
1bd07d8062
Author | SHA1 | Date | |
---|---|---|---|
1bd07d8062 | |||
ddd7250991 | |||
c78bf067e9 |
@ -1,6 +1,5 @@
|
|||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
./user/kitty.nix
|
|
||||||
./user/qt.nix
|
./user/qt.nix
|
||||||
./user/sops.nix
|
./user/sops.nix
|
||||||
./user/neofetch.nix
|
./user/neofetch.nix
|
||||||
@ -12,6 +11,7 @@
|
|||||||
./user/btop.nix
|
./user/btop.nix
|
||||||
./user/wofi.nix
|
./user/wofi.nix
|
||||||
./user/mako.nix
|
./user/mako.nix
|
||||||
|
./user/ghostty.nix
|
||||||
./user/packages/art.nix
|
./user/packages/art.nix
|
||||||
./user/packages/desktop.nix
|
./user/packages/desktop.nix
|
||||||
./user/packages/coding.nix
|
./user/packages/coding.nix
|
||||||
|
@ -16,6 +16,10 @@
|
|||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
home.packages = with pkgs; [
|
||||||
|
pulsemixer
|
||||||
|
];
|
||||||
|
|
||||||
wayland.windowManager.hyprland.settings.exec-once = [ "ags run" ];
|
wayland.windowManager.hyprland.settings.exec-once = [ "ags run" ];
|
||||||
|
|
||||||
xdg.configFile."ags".source = (pkgs.callPackage ./packages/drvs/ags.nix { colors = config.lib.stylix.colors; });
|
xdg.configFile."ags".source = (pkgs.callPackage ./packages/drvs/ags.nix { colors = config.lib.stylix.colors; });
|
||||||
|
11
modules/user/ghostty.nix
Normal file
11
modules/user/ghostty.nix
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
{
|
||||||
|
programs.ghostty = {
|
||||||
|
enable = true;
|
||||||
|
enableZshIntegration = true;
|
||||||
|
settings = {
|
||||||
|
confirm-close-surface = false;
|
||||||
|
copy-on-select = false;
|
||||||
|
title-report = true;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
@ -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";
|
|
||||||
}
|
|
@ -1,11 +1,16 @@
|
|||||||
import { bind } from "astal"
|
import { bind } from "astal"
|
||||||
|
import { execAsync } from "astal/process"
|
||||||
import Wp from "gi://AstalWp"
|
import Wp from "gi://AstalWp"
|
||||||
|
|
||||||
export default function Audio() {
|
export default function Audio() {
|
||||||
const speaker = Wp.get_default()?.audio.defaultSpeaker!
|
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")} />
|
<icon icon={bind(speaker, "volumeIcon")} />
|
||||||
<label label={bind(speaker, "volume").as(v => `${Math.floor(v*100)}%`)} />
|
<label label={bind(speaker, "volume").as(v => `${Math.floor(v*100)}%`)} />
|
||||||
</box>
|
</box>
|
||||||
|
</button>
|
||||||
}
|
}
|
||||||
|
@ -10,7 +10,7 @@ export default function Wifi() {
|
|||||||
{wifi.as(wifi => wifi && (
|
{wifi.as(wifi => wifi && (
|
||||||
<button
|
<button
|
||||||
className="Wifi"
|
className="Wifi"
|
||||||
onClicked={() => {execAsync("kitty nmtui")}}>
|
onClicked={() => {execAsync("ghostty --title=nmtui -e nmtui")}}>
|
||||||
<box>
|
<box>
|
||||||
<icon
|
<icon
|
||||||
tooltipText={bind(wifi, "ssid").as(String)}
|
tooltipText={bind(wifi, "ssid").as(String)}
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{ pkgs, lib, config, collection, swww_flags, inputs }: {
|
{ pkgs, lib, config, collection, swww_flags, inputs }: {
|
||||||
home.packages = with pkgs; [
|
home.packages = with pkgs; [
|
||||||
kitty
|
ghostty
|
||||||
pamixer
|
pamixer
|
||||||
wofi
|
wofi
|
||||||
clipse
|
clipse
|
||||||
@ -130,8 +130,10 @@
|
|||||||
];
|
];
|
||||||
|
|
||||||
windowrulev2 = [
|
windowrulev2 = [
|
||||||
"float, class:(clipse)"
|
"float, title:(nmtui)"
|
||||||
"size 622 652, class:(clipse)"
|
"float, title:(pulsemixer)"
|
||||||
|
"float, title:(clipse)"
|
||||||
|
"size 622 652, title:(clipse)"
|
||||||
];
|
];
|
||||||
|
|
||||||
exec-once = [
|
exec-once = [
|
||||||
@ -144,12 +146,12 @@
|
|||||||
];
|
];
|
||||||
|
|
||||||
bind = [
|
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, Q, killactive,"
|
||||||
"$mainMod, M, exit,"
|
"$mainMod, M, exit,"
|
||||||
"$mainMod, E, exec, kitty -e sh -c yazi"
|
"$mainMod, E, exec, ghostty -e sh -c yazi"
|
||||||
"$mainMod, F, togglefloating,"
|
"$mainMod, F, togglefloating,"
|
||||||
"$mainMod, D, exec, wofi --show drun"
|
"$mainMod, D, exec, wofi --show drun"
|
||||||
"$mainMod, P, pseudo, # dwindle"
|
"$mainMod, P, pseudo, # dwindle"
|
||||||
@ -204,8 +206,8 @@
|
|||||||
"$mainMod, mouse_up, workspace, e-1"
|
"$mainMod, mouse_up, workspace, e-1"
|
||||||
|
|
||||||
# Keyboard backlight
|
# Keyboard backlight
|
||||||
"$mainMod, F3, exec, brightnessctl -d *::kbd_backlight set +33%"
|
"$mainMod, F3, exec, ${lib.getExe pkgs.brightnessctl} -d *::kbd_backlight set +33%"
|
||||||
"$mainMod, F2, exec, brightnessctl -d *::kbd_backlight set 33%-"
|
"$mainMod, F2, exec, ${lib.getExe pkgs.brightnessctl} -d *::kbd_backlight set 33%-"
|
||||||
|
|
||||||
# Volume and Media Control
|
# Volume and Media Control
|
||||||
", XF86AudioRaiseVolume, exec, pamixer -i 5 "
|
", XF86AudioRaiseVolume, exec, pamixer -i 5 "
|
||||||
@ -214,8 +216,8 @@
|
|||||||
", XF86AudioMicMute, exec, pamixer --default-source -m"
|
", XF86AudioMicMute, exec, pamixer --default-source -m"
|
||||||
|
|
||||||
# Brightness control
|
# Brightness control
|
||||||
", XF86MonBrightnessDown, exec, brightnessctl set 5%- "
|
", XF86MonBrightnessDown, exec, ${lib.getExe pkgs.brightnessctl} set 5%- "
|
||||||
", XF86MonBrightnessUp, exec, brightnessctl set +5% "
|
", XF86MonBrightnessUp, exec, ${lib.getExe pkgs.brightnessctl} set +5% "
|
||||||
|
|
||||||
# Waybar
|
# Waybar
|
||||||
"$mainMod, B, exec, pkill -SIGUSR1 waybar"
|
"$mainMod, B, exec, pkill -SIGUSR1 waybar"
|
||||||
|
@ -80,6 +80,10 @@
|
|||||||
source "$(fzf-share)/completion.zsh"
|
source "$(fzf-share)/completion.zsh"
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
envExtra = ''
|
||||||
|
TERM=xterm-256color
|
||||||
|
'';
|
||||||
|
|
||||||
history.size = 10000;
|
history.size = 10000;
|
||||||
history.path = "${config.xdg.dataHome}/zsh/history";
|
history.path = "${config.xdg.dataHome}/zsh/history";
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user