diff options
Diffstat (limited to 'sd/bin')
| -rwxr-xr-x | sd/bin/brighter | 4 | ||||
| -rwxr-xr-x | sd/bin/darker | 7 | ||||
| -rwxr-xr-x | sd/bin/fehbg | 3 | ||||
| -rwxr-xr-x | sd/bin/mute | 4 | ||||
| -rwxr-xr-x | sd/bin/ns | 39 | ||||
| -rwxr-xr-x | sd/bin/picom_run | 3 | ||||
| -rwxr-xr-x | sd/bin/sarc_compile | 41 | ||||
| -rwxr-xr-x | sd/bin/sarc_install | 30 | ||||
| -rwxr-xr-x | sd/bin/sarc_pkgbuild | 30 | ||||
| -rwxr-xr-x | sd/bin/ss | 4 | ||||
| -rwxr-xr-x | sd/bin/surf_run | 3 | ||||
| -rwxr-xr-x | sd/bin/update-grub | 3 | ||||
| -rwxr-xr-x | sd/bin/vol_down | 4 | ||||
| -rwxr-xr-x | sd/bin/vol_up | 5 |
14 files changed, 180 insertions, 0 deletions
diff --git a/sd/bin/brighter b/sd/bin/brighter new file mode 100755 index 0000000..b495a84 --- /dev/null +++ b/sd/bin/brighter @@ -0,0 +1,4 @@ +#!/bin/sh + + +sudo light -A 6 diff --git a/sd/bin/darker b/sd/bin/darker new file mode 100755 index 0000000..f7530e7 --- /dev/null +++ b/sd/bin/darker @@ -0,0 +1,7 @@ +#!/bin/sh + +# +# A script that lowers and ups the brightness +# + +sudo light -U 6 diff --git a/sd/bin/fehbg b/sd/bin/fehbg new file mode 100755 index 0000000..71860f0 --- /dev/null +++ b/sd/bin/fehbg @@ -0,0 +1,3 @@ +#!/bin/sh + +feh --bg-fill /etc/wallpaper.jpg diff --git a/sd/bin/mute b/sd/bin/mute new file mode 100755 index 0000000..7941e5d --- /dev/null +++ b/sd/bin/mute @@ -0,0 +1,4 @@ +#!/bin/sh + +pactl set-sink-mute @DEFAULT_SINK@ toggle & +dunstify "Toggled mute" & diff --git a/sd/bin/ns b/sd/bin/ns new file mode 100755 index 0000000..5755699 --- /dev/null +++ b/sd/bin/ns @@ -0,0 +1,39 @@ +#!/usr/bin/bash +# ns - A script that starts wifi +# Uses wpa_supplicant & dhcpcd +# Made wpa_supplicant & dhcpcd silent + +source /etc/ns.conf + +case $1 in + + -k) + + killall wpa_supplicant + killall dhcpcd + + ;; + -r) + killall wpa_supplicant + killall dhcpcd + + wpa_supplicant -c $CONFIG -B -i $INTERFACE + dhcpcd $INTERFACE + echo "Done" + + ;; + -s) + wpa_supplicant -s -c $CONFIG -B -i $INTERFACE & + dhcpcd -q $INTERFACE & + + ;; + *) + echo "ns" + echo + echo " -s: Starts the wifi" + echo " -r: Restarts wpa_supplicant and dhcpcd" + echo " -k: Kills the network" + echo + ;; +esac + diff --git a/sd/bin/picom_run b/sd/bin/picom_run new file mode 100755 index 0000000..e2fb4d7 --- /dev/null +++ b/sd/bin/picom_run @@ -0,0 +1,3 @@ +#!/bin/sh +# This script will have more options later on +picom --experimental-backends diff --git a/sd/bin/sarc_compile b/sd/bin/sarc_compile new file mode 100755 index 0000000..5c1a541 --- /dev/null +++ b/sd/bin/sarc_compile @@ -0,0 +1,41 @@ +#!/bin/sh +# A script to compile sarc + +dwm="dwm-6.2" +st="st" +dmenu="dmenu-5.0" + +echo "Welcome to the sarc installation!" +echo + +echo "What theme do you want to use?" +echo +ls themes/ +echo +echo "Enter what theme you would like to use:" && read theme +echo +echo "Theme is $theme" +echo +echo $theme >> /tmp/theme +pwd + +cp themes/$theme theme.h + +cd $dwm +make clean +make -s + +cd ../dwmblocks +make -s + +cd ../$st +make clean +make -s + +cd ../$dmenu +make -s + +cd .. + +rm theme.h +echo "Compilation is complete! Run sarc_install to install it" diff --git a/sd/bin/sarc_install b/sd/bin/sarc_install new file mode 100755 index 0000000..07e1ec3 --- /dev/null +++ b/sd/bin/sarc_install @@ -0,0 +1,30 @@ +#!/bin/sh +# A script that installs sarc. Run this as root + +dwm="dwm-6.2" +dmenu="dmenu-5.0" +st="st" + +echo "What theme did you choose?" +echo +ls themes/ && read theme +pwd +echo +echo $theme + +cd $dwm +make install + +cd ../$dmenu +make install + +cd ../$st +make install + +cd ../dwmblocks +make install + +cd .. +cp bin/* /usr/local/bin +cp etc/wallpaper/$theme.wallpaper.jpg /etc/wallpaper.jpg +rm /tmp/theme diff --git a/sd/bin/sarc_pkgbuild b/sd/bin/sarc_pkgbuild new file mode 100755 index 0000000..07e1ec3 --- /dev/null +++ b/sd/bin/sarc_pkgbuild @@ -0,0 +1,30 @@ +#!/bin/sh +# A script that installs sarc. Run this as root + +dwm="dwm-6.2" +dmenu="dmenu-5.0" +st="st" + +echo "What theme did you choose?" +echo +ls themes/ && read theme +pwd +echo +echo $theme + +cd $dwm +make install + +cd ../$dmenu +make install + +cd ../$st +make install + +cd ../dwmblocks +make install + +cd .. +cp bin/* /usr/local/bin +cp etc/wallpaper/$theme.wallpaper.jpg /etc/wallpaper.jpg +rm /tmp/theme diff --git a/sd/bin/ss b/sd/bin/ss new file mode 100755 index 0000000..f8f1468 --- /dev/null +++ b/sd/bin/ss @@ -0,0 +1,4 @@ +#!/bin/sh +# A script to start sarc +sx dwm +# That's it diff --git a/sd/bin/surf_run b/sd/bin/surf_run new file mode 100755 index 0000000..29c7b02 --- /dev/null +++ b/sd/bin/surf_run @@ -0,0 +1,3 @@ +#!/bin/sh + +tabbed surf -e diff --git a/sd/bin/update-grub b/sd/bin/update-grub new file mode 100755 index 0000000..0c43327 --- /dev/null +++ b/sd/bin/update-grub @@ -0,0 +1,3 @@ +#!/bin/sh +set -e +exec grub-mkconfig -o /boot/grub/grub.cfg "$@" diff --git a/sd/bin/vol_down b/sd/bin/vol_down new file mode 100755 index 0000000..9a01c42 --- /dev/null +++ b/sd/bin/vol_down @@ -0,0 +1,4 @@ +#!/bin/sh + +pactl set-sink-volume @DEFAULT_SINK@ -5% & +dunstify "Turned the volume down 5%" diff --git a/sd/bin/vol_up b/sd/bin/vol_up new file mode 100755 index 0000000..5107cd5 --- /dev/null +++ b/sd/bin/vol_up @@ -0,0 +1,5 @@ +#!/bin/sh + +pactl set-sink-volume @DEFAULT_SINK@ +5% & +dunstify "Turned the volume up +5" & + |