Initial commit
This commit is contained in:
11
home/.config/i3/scripts/compositor.sh
Executable file
11
home/.config/i3/scripts/compositor.sh
Executable file
@ -0,0 +1,11 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
start="al-compositor --start"
|
||||
restart="al-compositor --restart"
|
||||
if [ -e "${HOME}/.config/.composite_enabled" ]; then
|
||||
if pgrep "compton" > /dev/null; then
|
||||
$restart
|
||||
else
|
||||
$start
|
||||
fi
|
||||
fi
|
26
home/.config/i3/scripts/i3exit.sh
Executable file
26
home/.config/i3/scripts/i3exit.sh
Executable file
@ -0,0 +1,26 @@
|
||||
#!/bin/sh
|
||||
case "$1" in
|
||||
lock)
|
||||
i3lock-fancy -p
|
||||
;;
|
||||
logout)
|
||||
i3-msg exit
|
||||
;;
|
||||
suspend)
|
||||
systemctl suspend
|
||||
;;
|
||||
hibernate)
|
||||
systemctl hibernate
|
||||
;;
|
||||
reboot)
|
||||
systemctl reboot
|
||||
;;
|
||||
shutdown)
|
||||
systemctl poweroff
|
||||
;;
|
||||
*)
|
||||
echo "Usage: $0 {lock|logout|suspend|hibernate|reboot|shutdown}"
|
||||
exit 2
|
||||
esac
|
||||
|
||||
exit 0
|
Reference in New Issue
Block a user