Fix sxhkd and polybar configs

This commit is contained in:
Agatha Lovelace 2023-03-27 17:21:43 +02:00
parent 7c10a7eb6c
commit 9fd1ca4e5c
Signed by: sorceress
GPG Key ID: 01D0B3AB10CED4F8
5 changed files with 32 additions and 4 deletions

View File

@ -63,7 +63,8 @@ in {
'';
# Calculator
"super + shift + c" = ''
rofi -show calc -modi calc -calc-command 'xdotool type --clearmodifiers "\{result\}"'';
ROFI_PLUGIN_PATH=${pkgs.rofi-calc}/lib/rofi rofi -show calc -modi calc -calc-command '${pkgs.xdotool}/bin/xdotool type --clearmodifiers "\{result\}'
'';
# Media keys
"XF86Audio{Raise,Lower}Volume" = "pamixer {-i,-d} 5";
"XF86AudioMute" = "pamixer -t";

View File

@ -3,6 +3,7 @@
./bspwm.nix
./picom.nix
./polybar.nix
./dunst.nix
./iosevka.nix
./kitty.nix
./element.nix
@ -16,6 +17,7 @@
element-desktop
firefox
flameshot
glib
gnome.eog
gnome.file-roller
gnome.geary
@ -42,6 +44,8 @@
wireguard-tools
xdg-utils
yubioath-desktop
clipmenu
xdotool
];
# Brightness/volume keys
@ -125,6 +129,7 @@
};
};
services.gvfs.enable = true;
security.polkit.enable = true;
# Screenshare on wlroots
@ -164,4 +169,6 @@
alsa.support32Bit = true;
pulse.enable = true;
};
programs.noisetorch.enable = true;
}

View File

@ -0,0 +1,8 @@
{ config, pkgs, lib, ... }: {
home-manager.users.agatha = {
services.dunst = {
enable = true;
};
};
}

View File

@ -4,6 +4,15 @@ let
colorscheme = utils.colorscheme "purple" ../../../external/6.png;
in {
home-manager.users.agatha = {
systemd.user.services.polybar = {
Service = {
Environment = lib.mkForce
"PATH=${config.home-manager.users.agatha.services.polybar.package}/bin:/run/wrappers/bin:${pkgs.dbus}/bin:${pkgs.dunst}/bin";
};
Install = { WantedBy = [ "graphical-session.target" ]; };
};
services.polybar = {
enable = true;
package = pkgs.polybarFull;
@ -63,7 +72,7 @@ in {
left = "bspwm";
center = "date";
right =
"filesystem battery pulseaudio xkeyboard memory cpu notication-status powermenu";
"filesystem battery pulseaudio xkeyboard memory cpu notification-status powermenu";
};
wm-restack = "bspwm";
@ -125,7 +134,7 @@ in {
format-prefix-foreground = "\${colors.foreground-alt}";
label = ''
%{A3:dunstify ' Calendar' "$(cal --color=always | sed "s#\\x1b\\[7m#<b>#;s#\\x1b\\[27m#</b>#g")":}%date%%{A} %time%'';
%{A3:${pkgs.dunst}/bin/dunstify ' Calendar' "$(cal --color=always | sed "s#\\x1b\\[7m#<b>#;s#\\x1b\\[27m#</b>#g")":}%date%%{A} %time%'';
};
"module/filesystem" = {
@ -248,7 +257,7 @@ in {
"module/notification-status" = {
type = "custom/script";
exec = ''
if $(dunstctl is-paused); then; echo "Notifications paused"; else; echo ""; fi;'';
if $(dunstctl is-paused); then echo "Notifications paused"; else echo ""; fi'';
interval = 2;
format-prefix = " ";
};

View File

@ -39,6 +39,9 @@
oci-containers = { backend = "podman"; };
};
hardware.bluetooth.enable = true;
services.blueman.enable = true;
# This value determines the NixOS release from which the default
# settings for stateful data, like file locations and database versions
# on your system were taken. Its perfectly fine and recommended to leave