1
0
Fork 0
mirror of synced 2024-12-28 02:43:23 -05:00

add timeshift snapshot boot detection

This commit is contained in:
Shrinivas Vishnu Kumbhar 2021-04-19 16:50:25 +05:30
parent 368a5dc8ab
commit 6687f67fef
3 changed files with 12 additions and 1 deletions

View file

@ -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"

View 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
View 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