mirror of
https://github.com/CoolnsX/repos_scripts.git
synced 2025-12-20 07:15:20 +05:30
update
This commit is contained in:
19
bluetooth
19
bluetooth
@@ -1,19 +0,0 @@
|
||||
#!/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
|
||||
@@ -4,7 +4,7 @@
|
||||
static int topbar = 1; /* -b option; if 0, dmenu appears at bottom */
|
||||
/* -fn option overrides fonts[0]; default X11 font or font set */
|
||||
static const char *fonts[] = {
|
||||
"Comic Sans MS:size=10"
|
||||
"Comic Sans MS:size=12"
|
||||
};
|
||||
static const char *prompt = NULL; /* -p option; prompt to the left of input field */
|
||||
static const char *colors[SchemeLast][2] = {
|
||||
@@ -14,7 +14,7 @@ static const char *colors[SchemeLast][2] = {
|
||||
[SchemeOut] = { "#000000", "#3A72FE" },
|
||||
};
|
||||
/* -l option; if nonzero, dmenu uses vertical list with given number of lines */
|
||||
static unsigned int lines = 0;
|
||||
static unsigned int lines = 10;
|
||||
/* -h option; minimum height of a menu line */
|
||||
static unsigned int lineheight = 0;
|
||||
static unsigned int min_lineheight = 8;
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
static int topbar = 1; /* -b option; if 0, dmenu appears at bottom */
|
||||
/* -fn option overrides fonts[0]; default X11 font or font set */
|
||||
static const char *fonts[] = {
|
||||
"Comic Sans MS:size=10"
|
||||
"Comic Sans MS:size=12"
|
||||
};
|
||||
static const char *prompt = NULL; /* -p option; prompt to the left of input field */
|
||||
static const char *colors[SchemeLast][2] = {
|
||||
@@ -14,7 +14,7 @@ static const char *colors[SchemeLast][2] = {
|
||||
[SchemeOut] = { "#000000", "#3A72FE" },
|
||||
};
|
||||
/* -l option; if nonzero, dmenu uses vertical list with given number of lines */
|
||||
static unsigned int lines = 0;
|
||||
static unsigned int lines = 10;
|
||||
/* -h option; minimum height of a menu line */
|
||||
static unsigned int lineheight = 0;
|
||||
static unsigned int min_lineheight = 8;
|
||||
|
||||
BIN
dmenu-5.0/dmenu
BIN
dmenu-5.0/dmenu
Binary file not shown.
Binary file not shown.
17
launch.sh
17
launch.sh
@@ -1,17 +0,0 @@
|
||||
#!/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
13
pi.sh
@@ -1,13 +0,0 @@
|
||||
#!/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
|
||||
|
||||
@@ -1,8 +0,0 @@
|
||||
#!/bin/sh
|
||||
revert() {
|
||||
xset dpms 0 0 0
|
||||
}
|
||||
trap revert HUP INT TERM
|
||||
xset +dpms dpms 5 5 5
|
||||
slock
|
||||
revert
|
||||
@@ -1,7 +0,0 @@
|
||||
#!/usr/bin/env sh
|
||||
|
||||
sleep 5
|
||||
synclient TapButton1=1
|
||||
synclient HorizEdgeScroll=1
|
||||
synclient RBCornerButton=3
|
||||
|
||||
9
wifi
9
wifi
@@ -1,9 +0,0 @@
|
||||
#!/bin/bash
|
||||
if rfkill list wifi | grep -q 'yes$' ; then
|
||||
sudo rfkill unblock 0
|
||||
notify-send "wifi on"
|
||||
else
|
||||
sudo rfkill block 0
|
||||
notify-send "wifi off"
|
||||
fi
|
||||
|
||||
2
youtube
2
youtube
@@ -21,7 +21,7 @@ part_video()
|
||||
video=$1
|
||||
printf "${c_magenta}Enter Starting Point(hh:mm:ss)or(mm:ss)${c_reset}:"
|
||||
read start
|
||||
printf "${c_yellow}Enter Duration(seconds):${c_cyan}"
|
||||
printf "${c_yellow}Enter Upto Seconds:${c_cyan}"
|
||||
read dur
|
||||
ffmpeg -i $(youtube-dl -f best --get-url "$video") -ss $start -t $dur $HOME/Videos/$(date +%s).mp4
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user