mirror of
https://github.com/Swarsel/.dotfiles.git
synced 2025-12-06 00:57:22 +01:00
chore: remove updatechecker, lidChange apci script
This commit is contained in:
parent
faff8d9ee6
commit
1ae3be96fa
6 changed files with 32 additions and 145 deletions
|
|
@ -13,7 +13,6 @@
|
|||
waybarupdate
|
||||
opacitytoggle
|
||||
fs-diff
|
||||
update-checker
|
||||
github-notifications
|
||||
screenshare
|
||||
hm-specialisation
|
||||
|
|
|
|||
|
|
@ -47,19 +47,6 @@
|
|||
on-click = "xdg-open https://github.com/notifications";
|
||||
};
|
||||
|
||||
# "custom/nix-updates" = {
|
||||
# exec = "update-checker";
|
||||
# on-click = "update-checker && notify-send 'The system has been updated'";
|
||||
# interval = "once";
|
||||
# tooltip = true;
|
||||
# return-type = "json";
|
||||
# format = "{} {icon}";
|
||||
# format-icon = {
|
||||
# "has-updates" = "";
|
||||
# "updated" = " ";
|
||||
# };
|
||||
# };
|
||||
|
||||
idle_inhibitor = {
|
||||
format = "{icon}";
|
||||
format-icons = {
|
||||
|
|
|
|||
|
|
@ -30,21 +30,5 @@ _:
|
|||
fi
|
||||
'';
|
||||
};
|
||||
lidEventCommands =
|
||||
''
|
||||
export PATH=$PATH:/run/current-system/sw/bin
|
||||
export WAYLAND_DISPLAY=wayland-1
|
||||
export XDG_RUNTIME_DIR=/run/user/1000
|
||||
export SWAYSOCK=$(ls /run/user/1000/sway-ipc.* | head -n 1)
|
||||
|
||||
LID_STATE=$(cat /proc/acpi/button/lid/*/state | grep -q closed && echo "closed" || echo "open")
|
||||
DOCKED=$(swaymsg -t get_outputs | grep -q 'HDMI\|DP' && echo "docked" || echo "undocked")
|
||||
|
||||
if [ "$LID_STATE" == "closed" ] && [ "$DOCKED" == "docked" ]; then
|
||||
swaymsg output eDP-2 disable
|
||||
else
|
||||
swaymsg output eDP-2 enable
|
||||
fi
|
||||
'';
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue