Complete system rework feat. Niri, Noctalia, Helix, Vicinae, Zellij, & Kanshi
This commit is contained in:
@@ -1,27 +0,0 @@
|
||||
############ Variables ############
|
||||
enable_battery=false
|
||||
battery_charging=false
|
||||
|
||||
####### Check availability ########
|
||||
for battery in /sys/class/power_supply/*BAT*; do
|
||||
if [[ -f "$battery/uevent" ]]; then
|
||||
enable_battery=true
|
||||
if [[ $(cat /sys/class/power_supply/*/status | head -1) == "Charging" ]]; then
|
||||
battery_charging=true
|
||||
fi
|
||||
break
|
||||
fi
|
||||
done
|
||||
|
||||
############# Output #############
|
||||
if [[ $enable_battery == true ]]; then
|
||||
if [[ $battery_charging == true ]]; then
|
||||
echo -n "(+) "
|
||||
fi
|
||||
echo -n "$(cat /sys/class/power_supply/*/capacity | head -1)"%
|
||||
if [[ $battery_charging == false ]]; then
|
||||
echo -n " remaining"
|
||||
fi
|
||||
fi
|
||||
|
||||
echo ""
|
||||
@@ -1,7 +0,0 @@
|
||||
MAIN_KB_CAPS=$(hyprctl devices | grep -B 6 "main: yes" | grep "capsLock" | head -1 | awk '{print $2}')
|
||||
|
||||
if [ "$MAIN_KB_CAPS" = "yes" ]; then
|
||||
echo "Caps Lock active"
|
||||
else
|
||||
echo ""
|
||||
fi
|
||||
@@ -4,16 +4,6 @@
|
||||
{
|
||||
nixpkgs.overlays = [
|
||||
(import ./heybrochecklog.nix)
|
||||
|
||||
(self: super: {
|
||||
# battery-status = prev.writeShellApplication {
|
||||
# name = "battery-status";
|
||||
# text = builtins.readFile ./battery-status.sh;
|
||||
# };
|
||||
check-capslock = super.writeShellApplication {
|
||||
name = "check-capslock";
|
||||
text = builtins.readFile ./check-capslock.sh;
|
||||
};
|
||||
})
|
||||
(import ./pywalfox-native.nix)
|
||||
];
|
||||
}
|
||||
|
||||
16
modules/overlays/pywalfox-native.nix
Normal file
16
modules/overlays/pywalfox-native.nix
Normal file
@@ -0,0 +1,16 @@
|
||||
self: super: with super.python3Packages; {
|
||||
heybrochecklog = buildPythonApplication rec {
|
||||
pname = "pywalfox-native";
|
||||
version = "2.8.0rc1";
|
||||
pyproject = true;
|
||||
|
||||
src = super.fetchurl {
|
||||
url = "https://test-files.pythonhosted.org/packages/89/a1/8e011e2d325de8e987f7c0a67222448b252fc894634bfa0d3b3728ec6dbf/pywalfox-${version}.tar.gz";
|
||||
sha256 = "89e0d7a441eb600933440c713cddbfaecda236bde7f3f655db0ec20b0ae12845";
|
||||
};
|
||||
|
||||
build-system = [ setuptools ];
|
||||
|
||||
pythonImportsCheck = [ "pywalfox" ];
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user