mirror of
https://gitea.blesmrt.net/mikaela/shell-things.git
synced 2026-03-21 08:27:58 +01:00
add foot-systemd-inhibit.desktop
This commit is contained in:
parent
4fe8693b95
commit
332dc3c4d5
3
install
3
install
@ -187,7 +187,7 @@ if [ "$(id -u)" == "0" ]; then
|
||||
# Desktop entries
|
||||
mkdir -vp /usr/local/share/applications/
|
||||
# These are bound to exist on my systems
|
||||
cp -v local/share/applications/{a-signal,a-syncplay,plasma-update,a-firefox-cups,a-firefox-gmail,a-firefox,foot-ncdu}.desktop /usr/local/share/applications/
|
||||
cp -v local/share/applications/{a-signal,a-syncplay,plasma-update,a-firefox-cups,a-firefox-gmail,a-firefox,foot-ncdu,foot-systemd-inhibit}.desktop /usr/local/share/applications/
|
||||
if [ -f "/usr/bin/vivaldi-stable" ]; then
|
||||
cp -v local/share/applications/{a-vivaldi,vivaldi-{apps,youtube-music,yle-areena,discord,gmail,gmessages,google-calendar,telegram,twitch,whatsapp,mtv-katsomo,radioplayer,ruutu}}.desktop /usr/local/share/applications/
|
||||
elif [ -f "/usr/bin/chromium-browser" ]; then
|
||||
@ -469,6 +469,7 @@ else
|
||||
ln -nsfv /usr/share/applications/footclient.desktop $DESKTOP/
|
||||
fi
|
||||
ln -nsfv /usr/share/applications/foot.desktop $DESKTOP/
|
||||
ln -nsfv /usr/share/applications/foot-systemd-inhibit.desktop $DESKTOP/
|
||||
|
||||
# Create desktop shortcuts/symlinks for apps
|
||||
ln -nsfv /usr/share/applications/org.kde.discover.desktop $DESKTOP/
|
||||
|
||||
9
local/share/applications/foot-systemd-inhibit.desktop
Executable file
9
local/share/applications/foot-systemd-inhibit.desktop
Executable file
@ -0,0 +1,9 @@
|
||||
#!/usr/bin/env xdg-open
|
||||
[Desktop Entry]
|
||||
Type=Application
|
||||
Exec=systemd-inhibit --what shutdown:sleep --who watch --why Terminal\ blocking\ shutdown\ sleep foot -T Staying\ running watch systemd-inhibit --list --no-pager
|
||||
Icon=foot
|
||||
Terminal=false
|
||||
Name=Block automatic shutdown/reboot/sleep
|
||||
Name[fi]=Automaattisen boottauksen esto
|
||||
Comment=as to not require firefox
|
||||
Loading…
x
Reference in New Issue
Block a user