Compare commits

..

3 Commits

Author SHA1 Message Date
Noah Masur
34cf2a4483 rofi calculator (rest of it) 2023-04-10 23:10:49 -04:00
Noah Masur
efb3933f5a hide polybar mail notification when no messages 2023-04-10 23:09:17 -04:00
Noah Masur
cd067cce69 add rofi calculator 2023-04-10 23:08:59 -04:00
4 changed files with 8 additions and 1 deletions

View File

@ -32,6 +32,10 @@
type = lib.types.str;
description = "Command to use for adjusting brightness";
};
calculatorCommand = lib.mkOption {
type = lib.types.str;
description = "Command to use for quick calculations";
};
toggleBarCommand = lib.mkOption {
type = lib.types.str;
description = "Command to hide and show the status bar.";

View File

@ -123,6 +123,8 @@ in {
"exec --no-startup-id ${config.powerCommand}";
"${modifier}+Shift+m" =
"exec --no-startup-id ${config.brightnessCommand}";
"${modifier}+c" =
"exec --no-startup-id ${config.calculatorCommand}";
"${modifier}+Shift+c" = "reload";
"${modifier}+Shift+r" = "restart";
"${modifier}+Shift+q" = ''

View File

@ -109,7 +109,7 @@
${pkgs.notmuch}/bin/notmuch new > /dev/null
UNREAD=$(${pkgs.notmuch}/bin/notmuch count is:inbox and is:unread)
if [ $UNREAD = "0" ]; then
echo "%{T3}%{T-} "
echo ""
else
echo "%{T2}%{T-} $UNREAD "
fi

View File

@ -165,6 +165,7 @@ in {
${rofi}/bin/rofi -modes drun -show drun -theme-str '@import "launcher.rasi"' '';
systemdSearch = "${pkgs.rofi-systemd}/bin/rofi-systemd";
altTabCommand = "${rofi}/bin/rofi -show window -modi window";
calculatorCommand = "${rofi}/bin/rofi -modes calc -show calc";
audioSwitchCommand = "${
(pkgs.extraLib.mkScript {
name = "switch-audio";