mirror of
https://github.com/yusufipk/i3-config.git
synced 2026-09-11 19:06:12 +00:00
First commit
This commit is contained in:
Executable
+2
@@ -0,0 +1,2 @@
|
||||
#!/bin/sh
|
||||
xprop | grep WM_CLASS | awk '{ print $4 }' | xclip
|
||||
Executable
+29
@@ -0,0 +1,29 @@
|
||||
#!/bin/sh
|
||||
case "$1" in
|
||||
lock)
|
||||
i3lock -c 090000
|
||||
;;
|
||||
switch)
|
||||
dm-tool switch-to-greeter
|
||||
;;
|
||||
logout)
|
||||
i3-msg exit
|
||||
;;
|
||||
suspend)
|
||||
systemctl suspend
|
||||
;;
|
||||
hibernate)
|
||||
systemctl hibernate
|
||||
;;
|
||||
reboot)
|
||||
systemctl reboot
|
||||
;;
|
||||
shutdown)
|
||||
shutdown 0
|
||||
;;
|
||||
*)
|
||||
echo "Usage: $0 {lock|switch|logout|suspend|hibernate|reboot|shutdown}"
|
||||
exit 2
|
||||
esac
|
||||
|
||||
exit 0
|
||||
Executable
+7
@@ -0,0 +1,7 @@
|
||||
#!/bin/bash
|
||||
if pgrep -x "picom" > /dev/null
|
||||
then
|
||||
killall picom
|
||||
else
|
||||
picom -b --config ~/.config/i3/picom.conf
|
||||
fi
|
||||
Reference in New Issue
Block a user