mirror of
https://github.com/CoolnsX/repos_scripts.git
synced 2025-12-20 07:15:20 +05:30
added scripts
This commit is contained in:
19
bluetooth
Executable file
19
bluetooth
Executable file
@@ -0,0 +1,19 @@
|
||||
#!/bin/bash
|
||||
if rfkill list bluetooth | grep -q 'yes$' ; then
|
||||
sudo rfkill unblock 1
|
||||
sudo rfkill unblock bluetooth
|
||||
notify-send "bluetooth on"
|
||||
sleep 3
|
||||
notify-send "bluetooth connecting"
|
||||
bluetoothctl power on
|
||||
sleep 1
|
||||
bluetoothctl connect FC:58:FA:C8:40:46
|
||||
notify-send "bluetooth connected : Infinity Glide 120"
|
||||
else
|
||||
bluetoothctl disconnect FC:58:FA:C8:40:46
|
||||
notify-send "bluetooth disconnected : Infinity Glide 120"
|
||||
sleep 1
|
||||
bluetoothctl power off
|
||||
sudo rfkill block 1
|
||||
notify-send "bluetooth off"
|
||||
fi
|
||||
17
launch.sh
Executable file
17
launch.sh
Executable file
@@ -0,0 +1,17 @@
|
||||
#!/usr/bin/env sh
|
||||
|
||||
# Terminate already running bar instances
|
||||
killall -q polybar
|
||||
|
||||
# custom script
|
||||
rm $HOME/wallpapers/x.png
|
||||
conky -c "/home/tanveer/.conky/Rock and Roll/Rock/Hermoso_Rc" &
|
||||
conky -c "/home/tanveer/.conky/Rock and Roll/Rock 1/.conkyrc" &
|
||||
sleep 2
|
||||
maim --hidecursor -d 1 $HOME/wallpapers/x.png #screenshot of wallpaper with conky running
|
||||
killall -q conky &
|
||||
xwallpaper --stretch $HOME/wallpapers/x.png & #apply that screenshot as wallpaper
|
||||
|
||||
# Launch polybar
|
||||
polybar example &
|
||||
|
||||
13
pi.sh
Executable file
13
pi.sh
Executable file
@@ -0,0 +1,13 @@
|
||||
#!/bin/bash
|
||||
if ps aux | grep "picom$" ; then
|
||||
killall -q picom
|
||||
sleep 1
|
||||
notify-send "picom vsync on"
|
||||
picom --vsync &
|
||||
else
|
||||
killall -q picom
|
||||
sleep 1
|
||||
picom &
|
||||
notify-send "picom vsync off"
|
||||
fi
|
||||
|
||||
8
screenlock.sh
Executable file
8
screenlock.sh
Executable file
@@ -0,0 +1,8 @@
|
||||
#!/bin/sh
|
||||
revert() {
|
||||
xset dpms 0 0 0
|
||||
}
|
||||
trap revert HUP INT TERM
|
||||
xset +dpms dpms 5 5 5
|
||||
slock
|
||||
revert
|
||||
7
startup.sh
Executable file
7
startup.sh
Executable file
@@ -0,0 +1,7 @@
|
||||
#!/usr/bin/env sh
|
||||
|
||||
sleep 5
|
||||
synclient TapButton1=1
|
||||
synclient HorizEdgeScroll=1
|
||||
synclient RBCornerButton=3
|
||||
|
||||
Reference in New Issue
Block a user