mirror of
https://github.com/anotherhadi/nixy.git
synced 2026-04-02 19:12:11 +02:00
change for waybar
Signed-off-by: Hadi <112569860+anotherhadi@users.noreply.github.com>
This commit is contained in:
@@ -17,14 +17,10 @@
|
||||
caffeine = pkgs.writeShellScriptBin "caffeine" ''
|
||||
if [[ $(pidof "hypridle") ]]; then
|
||||
systemctl --user stop hypridle.service
|
||||
title=" Caffeine Activated"
|
||||
description="Caffeine is now active! Your screen will not turn off automatically."
|
||||
${pkgs.swayosd}/bin/swayosd-client --custom-message="Caffeine On" --custom-icon="emblem-default"
|
||||
else
|
||||
systemctl --user start hypridle.service
|
||||
title=" Caffeine Deactivated"
|
||||
description="Caffeine is now deactivated! Your screen will turn off automatically."
|
||||
${pkgs.swayosd}/bin/swayosd-client --custom-message="Caffeine Off" --custom-icon="emblem-default"
|
||||
fi
|
||||
|
||||
notif "caffeine" "$title" "$description"
|
||||
'';
|
||||
in {home.packages = [caffeine-status caffeine caffeine-status-icon];}
|
||||
|
||||
@@ -25,6 +25,7 @@
|
||||
keyword decoration:active_opacity 1"
|
||||
|
||||
echo "1" > /tmp/hyprfocus
|
||||
${pkgs.swayosd}/bin/swayosd-client --custom-message="Hyprfocus On" --custom-icon="emblem-default"
|
||||
'';
|
||||
|
||||
hyprfocus-off =
|
||||
@@ -34,6 +35,8 @@
|
||||
hyprctl reload
|
||||
hyprpanel-show
|
||||
rm /tmp/hyprfocus
|
||||
|
||||
${pkgs.swayosd}/bin/swayosd-client --custom-message="Hyprfocus Off" --custom-icon="emblem-default"
|
||||
'';
|
||||
|
||||
hyprfocus-toggle =
|
||||
|
||||
@@ -16,10 +16,7 @@
|
||||
# bash
|
||||
''
|
||||
${pkgs.hyprsunset}/bin/hyprsunset -t ${value} &
|
||||
title=" Night-Shift Activated"
|
||||
description="Night-Shift is now activated! Your screen will be warmer and easier on the eyes."
|
||||
|
||||
notif "night-shift" "$title" "$description"
|
||||
${pkgs.swayosd}/bin/swayosd-client --custom-message="Night-Shift On" --custom-icon="emblem-default"
|
||||
'';
|
||||
|
||||
night-shift-off =
|
||||
@@ -27,10 +24,7 @@
|
||||
# bash
|
||||
''
|
||||
pkill hyprsunset
|
||||
title=" Night-Shift Deactivated"
|
||||
description="Night-Shift is now deactivated! Your screen will return to normal."
|
||||
|
||||
notif "night-shift" "$title" "$description"
|
||||
${pkgs.swayosd}/bin/swayosd-client --custom-message="Night-Shift Off" --custom-icon="emblem-default"
|
||||
'';
|
||||
|
||||
night-shift =
|
||||
|
||||
@@ -121,10 +121,10 @@
|
||||
current_profile=$(powerprofilesctl get)
|
||||
if [ "$current_profile" = "performance" ]; then
|
||||
powerprofilesctl set balanced
|
||||
notif "powermode" " Balanced Mode Activated" "Enjoy the balance!"
|
||||
${pkgs.swayosd}/bin/swayosd-client --custom-message="Powermode set to balanced" --custom-icon="emblem-default"
|
||||
else
|
||||
powerprofilesctl set performance
|
||||
notif "powermode" " Performance Mode Activated" "Enjoy the power!"
|
||||
${pkgs.swayosd}/bin/swayosd-client --custom-message="Powermode set to performance" --custom-icon="emblem-default"
|
||||
fi
|
||||
'';
|
||||
in {home.packages = [menu powermenu lock quickmenu powermode-toggle];}
|
||||
|
||||
Reference in New Issue
Block a user