add timeshift snapshot boot detection
This commit is contained in:
parent
368a5dc8ab
commit
6687f67fef
3 changed files with 12 additions and 1 deletions
2
PKGBUILD
2
PKGBUILD
|
@ -2,7 +2,7 @@
|
|||
# Maintainer: Librewish <librewish@gmail.com>
|
||||
|
||||
pkgname=garuda-common-settings
|
||||
pkgver=1.2.5
|
||||
pkgver=1.2.6
|
||||
pkgrel=1
|
||||
arch=('any')
|
||||
url="https://gitlab.com/garuda-linux/themes-and-settings/settings/$pkgname"
|
||||
|
|
6
etc/xdg/autostart/snapshot-detect.desktop
Normal file
6
etc/xdg/autostart/snapshot-detect.desktop
Normal file
|
@ -0,0 +1,6 @@
|
|||
[Desktop Entry]
|
||||
Name=Snapshot Detect
|
||||
Icon=timeshift
|
||||
Exec=snapshot-detect
|
||||
Terminal=false
|
||||
Type=Application
|
5
usr/bin/snapshot-detect.sh
Executable file
5
usr/bin/snapshot-detect.sh
Executable file
|
@ -0,0 +1,5 @@
|
|||
#!/bin/bash
|
||||
if grep -q timeshift /proc/cmdline; then
|
||||
notify-send -u critical -i timeshift 'Detected!' 'Booted into Timeshift Snapshot, please restore the snapshot.'
|
||||
timeshift-launcher
|
||||
fi
|
Loading…
Reference in a new issue