Remove lolcate configs & Update toggle_picom script
- Remove config files for lolcate, no longer using it - Add command line arguments/flags to toggle_picom.sh
This commit is contained in:
parent
afcc05527a
commit
d5dee8fb71
@ -1,8 +0,0 @@
|
|||||||
[types]
|
|
||||||
# Definition of custom path name types
|
|
||||||
# Examples:
|
|
||||||
img = ".*\\.(jp.?g|png|gif|JP.?G)$"
|
|
||||||
video = ".*\\.(flv|mp4|mp.?g|avi|wmv|mkv|3gp|m4v|asf|webm)$"
|
|
||||||
doc = ".*\\.(pdf|chm|epub|djvu?|mobi|azw3|odf|ods|md|tex|txt|adoc)$"
|
|
||||||
audio = ".*\\.(mp3|m4a|flac|ogg)$"
|
|
||||||
|
|
@ -1,23 +0,0 @@
|
|||||||
|
|
||||||
description = "Default"
|
|
||||||
|
|
||||||
# Directories to index.
|
|
||||||
dirs = [
|
|
||||||
# "~/first/dir",
|
|
||||||
# "/second/dir"
|
|
||||||
"/"
|
|
||||||
]
|
|
||||||
|
|
||||||
# Set to "Dirs" or "Files" to skip directories or files.
|
|
||||||
# If unset, or set to "None", both files and directories will be included.
|
|
||||||
# skip = "Dirs"
|
|
||||||
|
|
||||||
# Set to true if you want skip symbolic links
|
|
||||||
ignore_symlinks = false
|
|
||||||
|
|
||||||
# Set to true if you want to ignore hidden files and directories
|
|
||||||
ignore_hidden = false
|
|
||||||
|
|
||||||
# Set to true to read .gitignore files and ignore matching files
|
|
||||||
gitignore = false
|
|
||||||
|
|
@ -1,11 +0,0 @@
|
|||||||
# Dirs / files to ignore.
|
|
||||||
# Use the same syntax as gitignore(5).
|
|
||||||
# Common patterns:
|
|
||||||
#
|
|
||||||
# .git
|
|
||||||
# *~
|
|
||||||
.git
|
|
||||||
proc/*
|
|
||||||
dev/*
|
|
||||||
sys/*
|
|
||||||
var/*
|
|
@ -1,11 +1,66 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
if pgrep picom &>/dev/null; then
|
helpmenu() {
|
||||||
notify-send "Turning Picom OFF"
|
echo "Script to toggle picom ON/OFF. Use only one argument at a time."
|
||||||
pkill picom &
|
echo "Usage: toggle_picom.sh [--toggle | -t] [--on] [--off] [--help | -h]"
|
||||||
|
echo " - Toggle: toggle_picom.sh OR toggle_picom.sh --toggle OR toggle_picom.sh -t"
|
||||||
|
echo " - Turn On: toggle_picom.sh --on"
|
||||||
|
echo " - Turn Off: toggle_picom.sh --off"
|
||||||
|
echo " - Help: toggle_picom.sh --help OR toggle_picom.sh -h"
|
||||||
|
}
|
||||||
|
|
||||||
|
check_running() {
|
||||||
|
if pgrep -x picom >/dev/null; then
|
||||||
|
echo 1
|
||||||
else
|
else
|
||||||
|
echo 0
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
turn_on() {
|
||||||
notify-send "Turning Picom ON"
|
notify-send "Turning Picom ON"
|
||||||
|
|
||||||
|
if [ $(check_running) -eq '0' ]; then
|
||||||
picom --experimental-backend --config /home/sravan/.config/picom/picom.conf &
|
picom --experimental-backend --config /home/sravan/.config/picom/picom.conf &
|
||||||
fi
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
exit 0
|
turn_off() {
|
||||||
|
notify-send "Turning Picom OFF"
|
||||||
|
|
||||||
|
if [ $(check_running) -eq '1' ]; then
|
||||||
|
killall picom
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
toggle() {
|
||||||
|
if [ $(check_running) -eq '1' ]; then
|
||||||
|
turn_off
|
||||||
|
else
|
||||||
|
turn_on
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
main() {
|
||||||
|
if [ $# -eq 0 ]; then
|
||||||
|
# No arguments
|
||||||
|
toggle
|
||||||
|
else
|
||||||
|
case $1 in
|
||||||
|
--help | -h)
|
||||||
|
helpmenu
|
||||||
|
;;
|
||||||
|
--toggle | -t)
|
||||||
|
toggle
|
||||||
|
;;
|
||||||
|
--on)
|
||||||
|
turn_on
|
||||||
|
;;
|
||||||
|
--off)
|
||||||
|
turn_off
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
main $@
|
||||||
|
Loading…
x
Reference in New Issue
Block a user