From c1075fa96496aac2905bbdfcce8816a525b2f6bd Mon Sep 17 00:00:00 2001 From: Chris Cochrun Date: Tue, 22 Aug 2023 10:05:57 -0500 Subject: [PATCH] fixes to lots of little things --- home/modules/hyprland.nix | 2 +- modules/emacs.nix | 1 + pkgs/desktop-packages.nix | 4 ++-- scripts/bar.sh | 9 +++++++++ 4 files changed, 13 insertions(+), 3 deletions(-) create mode 100755 scripts/bar.sh diff --git a/home/modules/hyprland.nix b/home/modules/hyprland.nix index 0ecd4dc..20e17d3 100644 --- a/home/modules/hyprland.nix +++ b/home/modules/hyprland.nix @@ -210,7 +210,7 @@ in binde = , XF86MonBrightnessUp, exec, brightnessctl s +10% binde = , XF86MonBrightnessDown, exec, brightnessctl s 10%- - bind=SUPERCTRL,b,exec,eww.sh + bind=SUPERSHIFT,g,exec,bar.sh bind=SUPERALT,n,exec,eww update rightside=true bindm=SUPER,mouse:272,movewindow diff --git a/modules/emacs.nix b/modules/emacs.nix index b7f0141..4e1a1f3 100644 --- a/modules/emacs.nix +++ b/modules/emacs.nix @@ -142,6 +142,7 @@ with lib; esh-autosuggest melpaPackages.org-ai melpaPackages.gptel + pkgs.ispell pkgs.mu pkgs.openjdk pkgs.languagetool diff --git a/pkgs/desktop-packages.nix b/pkgs/desktop-packages.nix index 8ecaaab..ca13c0b 100644 --- a/pkgs/desktop-packages.nix +++ b/pkgs/desktop-packages.nix @@ -7,9 +7,9 @@ with lib; lightly-qt pinentry pinentry-qt - hunspell caffeine-ng - hunspellDicts.en_US + hunspell + hunspellDicts.en_US-large transmission openssh openssl diff --git a/scripts/bar.sh b/scripts/bar.sh new file mode 100755 index 0000000..a4b144c --- /dev/null +++ b/scripts/bar.sh @@ -0,0 +1,9 @@ +#!/bin/sh + +wb=$(pgrep waybar) + +if [[ "$wb" -gt 1 ]]; then + kill $wb +else + exec waybar & +fi