cleanup, swaync, qutebrowser and waybar fix

This commit is contained in:
shinya 2025-01-31 17:16:06 +01:00
parent 39d0b48da0
commit bbaa9686c9
6 changed files with 35 additions and 5 deletions

View File

@ -24,6 +24,7 @@
android-udev-rules android-udev-rules
postman postman
gdb gdb
xh
]; ];
}; };
} }

View File

@ -2,8 +2,6 @@
pkgs, pkgs,
lib, lib,
config, config,
inputs,
system,
... ...
}: { }: {
options = { options = {

View File

@ -42,7 +42,14 @@
# Services for the Hyprland module # Services for the Hyprland module
services.network-manager-applet.enable = true; services.network-manager-applet.enable = true;
services.dunst.enable = true; #services.dunst.enable = true;
services.swaync = {
enable = true;
settings = {
fit-to-screen = false;
control-center-height = 200;
};
};
# Home session variables # Home session variables
home.sessionVariables = { home.sessionVariables = {

View File

@ -31,7 +31,7 @@
]; ];
modules-left = ["custom/padd" "custom/l_end" "cpu" "memory" "custom/r_end" "custom/l_end" "idle_inhibitor" "clock" "custom/r_end" "" "custom/padd"]; modules-left = ["custom/padd" "custom/l_end" "cpu" "memory" "custom/r_end" "custom/l_end" "idle_inhibitor" "clock" "custom/r_end" "" "custom/padd"];
modules-center = ["custom/padd" "" "custom/l_end" "hyprland/workspaces" "hyprland/window" "custom/r_end" "custom/padd"]; modules-center = ["custom/padd" "" "custom/l_end" "hyprland/workspaces" "hyprland/window" "custom/r_end" "custom/padd"];
modules-right = ["custom/padd" "custom/l_end" "backlight" "network" "bluetooth" "pulseaudio" "pulseaudio#microphone" "custom/r_end" "custom/l_end" "tray" "battery" "custom/r_end" "custom/l_end" "custom/cliphist" "custom/power" "custom/r_end" "custom/padd"]; modules-right = ["custom/padd" "custom/l_end" "backlight" "network" "bluetooth" "pulseaudio" "pulseaudio#microphone" "custom/r_end" "custom/l_end" "tray" "battery" "custom/r_end" "custom/l_end" "custom/notification" "custom/cliphist" "custom/power" "custom/r_end" "custom/padd"];
"hyprland/workspaces" = { "hyprland/workspaces" = {
disable-scroll = true; disable-scroll = true;
@ -243,6 +243,27 @@
tooltip = true; tooltip = true;
}; };
"custom/notification" = {
tooltip = false;
format = "{} {icon}";
"format-icons" = {
notification = "󱅫";
none = "";
"dnd-notification" = " ";
"dnd-none" = "󰂛";
"inhibited-notification" = " ";
"inhibited-none" = "";
"dnd-inhibited-notification" = " ";
"dnd-inhibited-none" = " ";
};
"return-type" = "json";
"exec-if" = "which swaync-client";
exec = "swaync-client -swb";
"on-click" = "sleep 0.1 && swaync-client -t -sw";
"on-click-right" = "sleep 0.1 && swaync-client -d -sw";
escape = true;
};
"custom/l_end" = { "custom/l_end" = {
format = " "; format = " ";
interval = "once"; interval = "once";
@ -404,7 +425,7 @@
#memory, #memory,
#mpris, #mpris,
#network, #network,
#custom-notifications, #custom-notification,
#custom-power, #custom-power,
#pulseaudio, #pulseaudio,
#custom-spotify, #custom-spotify,

View File

@ -208,6 +208,7 @@ in
config.set('content.javascript.enabled', True, 'qute://*/*') config.set('content.javascript.enabled', True, 'qute://*/*')
c.editor.command = ['${pkgs.kitty}/bin/kitty', '-e', 'nvim', '{}']
c.tabs.favicons.scale = 1.0 c.tabs.favicons.scale = 1.0
c.tabs.last_close = 'close' c.tabs.last_close = 'close'
c.tabs.position = 'top' c.tabs.position = 'top'

View File

@ -19,6 +19,7 @@
bat.enable = lib.mkDefault true; bat.enable = lib.mkDefault true;
btop.enable = lib.mkDefault true; btop.enable = lib.mkDefault true;
fzf.enable = lib.mkDefault true; fzf.enable = lib.mkDefault true;
swaync.enable = true;
tmux.enable = tmux.enable =
if config.program.tmux.enable if config.program.tmux.enable
@ -32,6 +33,7 @@
kde.enable = true; kde.enable = true;
gtk.enable = true; gtk.enable = true;
waybar = { waybar = {
enable = true; enable = true;
enableCenterBackColors = false; enableCenterBackColors = false;