updated... bruh
This commit is contained in:
parent
15be8a7412
commit
5614e7337d
19 changed files with 71 additions and 3195 deletions
|
@ -1,3 +0,0 @@
|
|||
# ~/.bash_logout
|
||||
clear
|
||||
|
22
user/.bashrc
22
user/.bashrc
|
@ -235,10 +235,10 @@ alias \
|
|||
|
||||
# get current branch in git repo
|
||||
function parse_git_branch() {
|
||||
BRANCH=`git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/\1/'`
|
||||
BRANCH=$(git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/\1/')
|
||||
if [ ! "${BRANCH}" == "" ]
|
||||
then
|
||||
STAT=`parse_git_dirty`
|
||||
STAT=$(parse_git_dirty)
|
||||
echo "[${BRANCH}${STAT}]"
|
||||
else
|
||||
echo ""
|
||||
|
@ -247,10 +247,10 @@ function parse_git_branch() {
|
|||
|
||||
# get current branch in git repo
|
||||
function parse_git_branch() {
|
||||
BRANCH=`git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/\1/'`
|
||||
BRANCH=$(git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/\1/')
|
||||
if [ ! "${BRANCH}" == "" ]
|
||||
then
|
||||
STAT=`parse_git_dirty`
|
||||
STAT=$(parse_git_dirty)
|
||||
echo "[${BRANCH}${STAT}]"
|
||||
else
|
||||
echo ""
|
||||
|
@ -259,13 +259,13 @@ function parse_git_branch() {
|
|||
|
||||
# get current status of git repo
|
||||
function parse_git_dirty {
|
||||
status=`git status 2>&1 | tee`
|
||||
dirty=`echo -n "${status}" 2> /dev/null | grep "modified:" &> /dev/null; echo "$?"`
|
||||
untracked=`echo -n "${status}" 2> /dev/null | grep "Untracked files" &> /dev/null; echo "$?"`
|
||||
ahead=`echo -n "${status}" 2> /dev/null | grep "Your branch is ahead of" &> /dev/null; echo "$?"`
|
||||
newfile=`echo -n "${status}" 2> /dev/null | grep "new file:" &> /dev/null; echo "$?"`
|
||||
renamed=`echo -n "${status}" 2> /dev/null | grep "renamed:" &> /dev/null; echo "$?"`
|
||||
deleted=`echo -n "${status}" 2> /dev/null | grep "deleted:" &> /dev/null; echo "$?"`
|
||||
status=$(git status 2>&1 | tee)
|
||||
dirty=$(echo -n "${status}" 2> /dev/null | grep "modified:" &> /dev/null; echo "$?")
|
||||
untracked=$(echo -n "${status}" 2> /dev/null | grep "Untracked files" &> /dev/null; echo "$?")
|
||||
ahead=$(echo -n "${status}" 2> /dev/null | grep "Your branch is ahead of" &> /dev/null; echo "$?")
|
||||
newfile=$(echo -n "${status}" 2> /dev/null | grep "new file:" &> /dev/null; echo "$?")
|
||||
renamed=$(echo -n "${status}" 2> /dev/null | grep "renamed:" &> /dev/null; echo "$?")
|
||||
deleted=$(echo -n "${status}" 2> /dev/null | grep "deleted:" &> /dev/null; echo "$?")
|
||||
bits=''
|
||||
if [ "${renamed}" == "0" ]; then
|
||||
bits=">${bits}"
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
gtk-theme-name="gruvbox-dark-gtk"
|
||||
gtk-icon-theme-name="gruvbox-dark-icons-gtk"
|
||||
gtk-font-name="mononoki Nerd Font 10"
|
||||
gtk-font-name="Cantarell 10"
|
||||
gtk-cursor-theme-name="Simp1e-Gruvbox-Dark"
|
||||
gtk-cursor-theme-size=0
|
||||
gtk-toolbar-style=GTK_TOOLBAR_BOTH
|
|
@ -1,7 +1,7 @@
|
|||
[Settings]
|
||||
gtk-theme-name=gruvbox-dark-gtk
|
||||
gtk-icon-theme-name=gruvbox-dark-icons-gtk
|
||||
gtk-font-name=mononoki Nerd Font 10
|
||||
gtk-font-name=Cantarell 10
|
||||
gtk-cursor-theme-name=Simp1e-Gruvbox-Dark
|
||||
gtk-cursor-theme-size=0
|
||||
gtk-toolbar-style=GTK_TOOLBAR_BOTH
|
||||
|
|
|
@ -3,9 +3,5 @@
|
|||
# ***This script was made by Clay Gomera (Drake)***
|
||||
# - Description: A simple desktop dmenu script
|
||||
# - Dependencies: dmenu, j4-dmenu-desktop
|
||||
|
||||
prompt="-p launch:"
|
||||
colors="-nb \#1d2021 -nf \#fbf1c7 -sb \#cc241d -sf \#fbf1c7"
|
||||
|
||||
DMENU="dmenu -i -l 10 $colors $prompt"
|
||||
j4-dmenu-desktop --dmenu "$DMENU" --no-generic
|
||||
#
|
||||
j4-dmenu-desktop --dmenu "dmenu -i -l 10 -p launch:" --no-generic
|
||||
|
|
|
@ -9,7 +9,7 @@ EDITOR="emacsclient -c -a emacs"
|
|||
cd "$HOME" || exit 0
|
||||
file=1
|
||||
while [ "$file" ]; do
|
||||
file=$(fd -LHpd 1 | dmenu -i -l 10 -fn "mononoki Nerd Font-10" -nb \#1d2021 -nf \#fbf1c7 -sb \#cc241d -sf \#fbf1c7 -p "file to edit: $(basename "$(pwd)")")
|
||||
file=$(fd -LHpd 1 | dmenu -i -l 10 -p "file to edit: $(basename "$(pwd)")")
|
||||
if [ -e "$file" ]; then
|
||||
owd=$(pwd)
|
||||
if [ -d "$file" ]; then
|
||||
|
|
File diff suppressed because it is too large
Load diff
|
@ -26,7 +26,7 @@ pwr4="cancel"
|
|||
pwrs="$pwr1\n$pwr2\n$pwr3\n$pwr4"
|
||||
|
||||
## MAIN ACTION COMMAND ##
|
||||
action=$(echo -e "$options" | dmenu -i -nb \#1d2021 -nf \#fbf1c7 -sb \#cc241d -sf \#fbf1c7 -p "power options:")
|
||||
action=$(echo -e "$options" | dmenu -i -p "power options:")
|
||||
case "$action" in
|
||||
$option1*)
|
||||
pkill X;;
|
||||
|
@ -40,7 +40,7 @@ case "$action" in
|
|||
slock;;
|
||||
$option6*)
|
||||
currentpwr=$(powerprofilesctl get)
|
||||
pwraction=$(echo -e "$pwrs" | dmenu -i -fn "mononoki Nerd Font-10" -nb \#1d2021 -nf \#fbf1c7 -sb \#cc241d -sf \#fbf1c7 -p "current profile is: ${currentpwr} | select profile:")
|
||||
pwraction=$(echo -e "$pwrs" | dmenu -i -p "current profile is: ${currentpwr} | select profile:")
|
||||
case "$pwraction" in
|
||||
$pwr1*)
|
||||
powerprofilesctl set performance && notify-send "power profile switched to performance";;
|
||||
|
|
|
@ -22,12 +22,12 @@ del3="10 sec delay"
|
|||
dels="$del1\n$del2\n$del3"
|
||||
|
||||
## MAIN ACTION ##
|
||||
choice=$(echo -e "$chos" | dmenu -i -nb \#1d2021 -nf \#fbf1c7 -sb \#cc241d -sf \#fbf1c7 -p "Select: ")
|
||||
choice=$(echo -e "$chos" | dmenu -i -p "Select: ")
|
||||
case $choice in
|
||||
$cho1)
|
||||
scrot && notify-send "screenshot saved";;
|
||||
$cho2)
|
||||
del=$(echo -e "$dels" | dmenu -i -fn "mononoki Nerd Font-10" -nb \#1d2021 -nf \#fbf1c7 -sb \#cc241d -sf \#fbf1c7 -p "Select: ");
|
||||
del=$(echo -e "$dels" | dmenu -i -p "Select: ");
|
||||
case $del in
|
||||
$del1)
|
||||
scrot -d 3 && notify-send "screenshot saved";;
|
||||
|
|
|
@ -10,7 +10,7 @@ cd "$walldir" || exit
|
|||
|
||||
## SELECT PICTURE FUNCTION ##
|
||||
selectpic() {
|
||||
wallpaper=$(fd -p "$walldir" | dmenu -i -l 10 -nb \#1d2021 -nf \#fbf1c7 -sb \#cc241d -sf \#fbf1c7 -p "select a wallpaper:")
|
||||
wallpaper=$(fd -p "$walldir" | dmenu -i -l 10 -p "select a wallpaper:")
|
||||
if [ "$wallpaper" ]; then
|
||||
chosenwall=$wallpaper
|
||||
else
|
||||
|
@ -28,7 +28,7 @@ option5="scale"
|
|||
options="$option1\n$option2\n$option3\n$option4\n$option5"
|
||||
|
||||
## MAIN ACTION ##
|
||||
action=$(echo -e "$options" | dmenu -i -l 5 -nb \#1d2021 -nf \#fbf1c7 -sb \#cc241d -sf \#fbf1c7 -p "chose the format:")
|
||||
action=$(echo -e "$options" | dmenu -i -l 5 -p "chose the format:")
|
||||
case "$action" in
|
||||
$option1*)
|
||||
feh --bg-fill "$chosenwall";;
|
||||
|
|
|
@ -40,12 +40,12 @@ disconnect() {
|
|||
connect() {
|
||||
notify-send "Scannig networks, please wait"
|
||||
sleep 1
|
||||
bssid=$(nmcli device wifi list | sed -n '1!p' | cut -b 9- | dmenu -i -l 10 -nb \#1d2021 -nf \#fbf1c7 -sb \#cc241d -sf \#fbf1c7 -p "select wifi:" | cut -d' ' -f1)
|
||||
bssid=$(nmcli device wifi list | sed -n '1!p' | cut -b 9- | dmenu -i -fn "mononoki Nerd Font-12" -l 10 -nb \#1d2021 -nf \#fbf1c7 -sb \#cc241d -sf \#fbf1c7 -p "select wifi:" | cut -d' ' -f1)
|
||||
}
|
||||
|
||||
## SELECT PASSWORD FUNCTION ##
|
||||
password() {
|
||||
pass=$(echo " " | dmenu -P -i -nb \#1d2021 -nf \#fbf1c7 -sb \#cc241d -sf \#fbf1c7 -p "enter password:")
|
||||
pass=$(echo " " | dmenu -P -i -p "enter password:")
|
||||
}
|
||||
|
||||
## MAIN CONNECTION COMMAND ##
|
||||
|
@ -66,7 +66,7 @@ check() {
|
|||
}
|
||||
|
||||
## MAIN ACTION COMMANDS ##
|
||||
cases=$(echo -e "$options" | dmenu -i -nb \#1d2021 -nf \#fbf1c7 -sb \#cc241d -sf \#fbf1c7 -p "wifi options:" )
|
||||
cases=$(echo -e "$options" | dmenu -i -p "wifi options:" )
|
||||
case "$cases" in
|
||||
$option1*)
|
||||
turnon;;
|
||||
|
|
|
@ -39,10 +39,9 @@ const char *spcmd6[] = {"st", "-n", "spamx", "-g", "140x35", "-e", "alsamixer",
|
|||
const char *spcmd7[] = {"st", "-n", "sppmx", "-g", "140x35", "-e", "pulsemixer", NULL };
|
||||
const char *spcmd8[] = {"st", "-n", "spmsc", "-g", "140x35", "-e", "musikcube", NULL };
|
||||
const char *spcmd9[] = {"st", "-n", "spflm", "-g", "140x35", "-e", ".config/vifm/scripts/vifmrun", NULL };
|
||||
const char *spcmd10[] = {"st", "-n", "sptot", "-g", "140x35", "-e", "tut", NULL };
|
||||
const char *spcmd11[] = {"st", "-n", "spytm", "-g", "140x35", "-e", "ytfzf", "-mlst", NULL };
|
||||
const char *spcmd12[] = {"st", "-n", "sprss", "-g", "140x35", "-e", "newsboat", NULL };
|
||||
const char *spcmd13[] = {"st", "-n", "spgkk", "-g", "140x35", "-e", "geek-life", NULL };
|
||||
const char *spcmd10[] = {"st", "-n", "spytm", "-g", "140x35", "-e", "ytfzf", "-mlst", NULL };
|
||||
const char *spcmd11[] = {"st", "-n", "sprss", "-g", "140x35", "-e", "newsboat", NULL };
|
||||
const char *spcmd12[] = {"st", "-n", "spgkk", "-g", "140x35", "-e", "geek-life", NULL };
|
||||
static Sp scratchpads[] = {
|
||||
/* name cmd */
|
||||
{"sptrm", spcmd1},
|
||||
|
@ -54,10 +53,9 @@ static Sp scratchpads[] = {
|
|||
{"sppmx", spcmd7},
|
||||
{"spmsc", spcmd8},
|
||||
{"spflm", spcmd9},
|
||||
{"sptot", spcmd10},
|
||||
{"spytm", spcmd11},
|
||||
{"sprss", spcmd12},
|
||||
{"spgkk", spcmd13},
|
||||
{"spytm", spcmd10},
|
||||
{"sprss", spcmd11},
|
||||
{"spgkk", spcmd12},
|
||||
};
|
||||
|
||||
/* tagging */
|
||||
|
@ -146,10 +144,9 @@ static const Rule rules[] = {
|
|||
{ NULL, "sppmx", NULL, SPTAG(6), 1, -1 },
|
||||
{ NULL, "spmsc", NULL, SPTAG(7), 1, -1 },
|
||||
{ NULL, "spflm", NULL, SPTAG(8), 1, -1 },
|
||||
{ NULL, "sptot", NULL, SPTAG(9), 1, -1 },
|
||||
{ NULL, "spytm", NULL, SPTAG(10), 1, -1 },
|
||||
{ NULL, "sprss", NULL, SPTAG(11), 1, -1 },
|
||||
{ NULL, "spgkk", NULL, SPTAG(12), 1, -1 },
|
||||
{ NULL, "spytm", NULL, SPTAG(9), 1, -1 },
|
||||
{ NULL, "sprss", NULL, SPTAG(10), 1, -1 },
|
||||
{ NULL, "spgkk", NULL, SPTAG(11), 1, -1 },
|
||||
};
|
||||
|
||||
// layout(s)
|
||||
|
@ -313,10 +310,9 @@ static const Key keys[] = {
|
|||
{ MODKEY|Mod1Mask, XK_p, togglescratch, {.ui = 6 } },
|
||||
{ MODKEY|Mod1Mask, XK_m, togglescratch, {.ui = 7 } },
|
||||
{ MODKEY|Mod1Mask, XK_v, togglescratch, {.ui = 8 } },
|
||||
{ MODKEY|Mod1Mask, XK_t, togglescratch, {.ui = 9 } },
|
||||
{ MODKEY|Mod1Mask, XK_n, togglescratch, {.ui = 10 } },
|
||||
{ MODKEY|Mod1Mask, XK_r, togglescratch, {.ui = 11 } },
|
||||
{ MODKEY|Mod1Mask, XK_g, togglescratch, {.ui = 12 } },
|
||||
{ MODKEY|Mod1Mask, XK_n, togglescratch, {.ui = 9 } },
|
||||
{ MODKEY|Mod1Mask, XK_r, togglescratch, {.ui = 10 } },
|
||||
{ MODKEY|Mod1Mask, XK_g, togglescratch, {.ui = 11 } },
|
||||
|
||||
/* misc */
|
||||
// logout
|
||||
|
|
|
@ -21,7 +21,6 @@ ani-cli # watch anime
|
|||
flix-cli # watch movies
|
||||
ytfzf # watch/listen to youtube
|
||||
vifm # file manager
|
||||
tut # tui mastodon client
|
||||
btop # process viewer
|
||||
pulsemixer # audio mixer 1
|
||||
alsamixer # audio mixer 2
|
||||
|
|
|
@ -11,7 +11,7 @@ static const Block blocks[] = {
|
|||
|
||||
{"", "$HOME/.config/suckless/dwmblocks/scripts/block_clock", 60, 1},
|
||||
|
||||
{"", "$HOME/.config/suckless/dwmblocks/scripts/block_wifi", 5, 4},
|
||||
{"", "$HOME/.config/suckless/dwmblocks/scripts/block_wifi", 20, 1},
|
||||
};
|
||||
|
||||
//sets delimeter between status commands. NULL character ('\0') means no delimeter.
|
||||
|
|
|
@ -22,61 +22,63 @@ for battery in /sys/class/power_supply/BAT?*; do
|
|||
# Calculates the percentage of remaining charge
|
||||
percentage="$(cat "$battery/capacity" 2>&1)"
|
||||
# Updates the status icon based on the battery percentage
|
||||
if [ "$percentage" -lt 20 ]
|
||||
if [ "$percentage" -le 20 ]
|
||||
then
|
||||
status=" "
|
||||
elif [ "$percentage" -lt 30 ]
|
||||
elif [ "$percentage" -le 30 ]
|
||||
then
|
||||
status=" "
|
||||
elif [ "$percentage" -lt 40 ]
|
||||
elif [ "$percentage" -le 40 ]
|
||||
then
|
||||
status=" "
|
||||
elif [ "$percentage" -lt 50 ]
|
||||
elif [ "$percentage" -le 50 ]
|
||||
then
|
||||
status=" "
|
||||
elif [ "$percentage" -lt 60 ]
|
||||
elif [ "$percentage" -le 60 ]
|
||||
then
|
||||
status=" "
|
||||
elif [ "$percentage" -lt 70 ]
|
||||
elif [ "$percentage" -le 70 ]
|
||||
then
|
||||
status=" "
|
||||
elif [ "$percentage" -lt 80 ]
|
||||
elif [ "$percentage" -le 80 ]
|
||||
then
|
||||
status=" "
|
||||
elif [ "$percentage" -lt 90 ]
|
||||
elif [ "$percentage" -le 90 ]
|
||||
then
|
||||
status=" "
|
||||
else
|
||||
status=" "
|
||||
fi
|
||||
;;
|
||||
"Charging")
|
||||
# Calculates the percentage of remaining charge
|
||||
percentage="$(cat "$battery/capacity" 2>&1)"
|
||||
# Updates the status icon based on the battery percentage while charging
|
||||
if [ "$percentage" -lt 10 ]
|
||||
if [ "$percentage" -le 10 ]
|
||||
then
|
||||
status=" "
|
||||
elif [ "$percentage" -lt 20 ]
|
||||
elif [ "$percentage" -le 20 ]
|
||||
then
|
||||
status=" "
|
||||
elif [ "$percentage" -lt 30 ]
|
||||
elif [ "$percentage" -le 30 ]
|
||||
then
|
||||
status=" "
|
||||
elif [ "$percentage" -lt 40 ]
|
||||
elif [ "$percentage" -le 40 ]
|
||||
then
|
||||
status=" "
|
||||
elif [ "$percentage" -lt 50 ]
|
||||
elif [ "$percentage" -le 50 ]
|
||||
then
|
||||
status=" "
|
||||
elif [ "$percentage" -lt 60 ]
|
||||
elif [ "$percentage" -le 60 ]
|
||||
then
|
||||
status=" "
|
||||
elif [ "$percentage" -lt 70 ]
|
||||
elif [ "$percentage" -le 70 ]
|
||||
then
|
||||
status=" "
|
||||
elif [ "$percentage" -lt 80 ]
|
||||
elif [ "$percentage" -le 80 ]
|
||||
then
|
||||
status=" "
|
||||
elif [ "$percentage" -lt 90 ]
|
||||
elif [ "$percentage" -le 90 ]
|
||||
then
|
||||
status=" "
|
||||
else
|
||||
|
|
|
@ -19,7 +19,7 @@ static const char * message = "";
|
|||
static const char * text_color = "#1d2021";
|
||||
|
||||
/* text size (must be a valid size) */
|
||||
static const char * font_name = "mtx";
|
||||
static const char * font_name = "6x13";
|
||||
|
||||
/* Background image path, should be available to the user above */
|
||||
static const char* background_image = ".config/suckless/slock/lockscreen.jpg";
|
||||
|
|
File diff suppressed because it is too large
Load diff
|
@ -6,8 +6,8 @@
|
|||
## /_____/_/ \__,_/_/|_|\___/ My custom xinitrc
|
||||
##
|
||||
|
||||
userresources=$HOME/.Xresources
|
||||
usermodmap=$HOME/.Xmodmap
|
||||
userresources=$HOME/.config/Xresources
|
||||
usermodmap=$HOME/.config/Xmodmap
|
||||
sysresources=/etc/X11/xinit/.Xresources
|
||||
sysmodmap=/etc/X11/xinit/.Xmodmap
|
||||
|
||||
|
@ -31,10 +31,18 @@ fi
|
|||
|
||||
### ENVIRONMENT VARIABLES
|
||||
export BROWSER="brave"
|
||||
export TERMINAL="st"
|
||||
export EDITOR="$HOME/.local/bin/lvim"
|
||||
|
||||
export MOZ_USE_XINPUT2=1
|
||||
export XDG_DATA_HOME="${XDG_DATA_HOME:="$HOME/.local/share"}"
|
||||
export XDG_CACHE_HOME="${XDG_CACHE_HOME:="$HOME/.cache"}"
|
||||
export XDG_CONFIG_HOME="${XDG_CONFIG_HOME:="$HOME/.config"}"
|
||||
export XDG_DATA_HOME="$HOME/.local/share"
|
||||
export XDG_CACHE_HOME="$HOME/.cache"
|
||||
export XDG_CONFIG_HOME="$HOME/.config"
|
||||
export GTK2_RC_FILES="$HOME/.config/gtk-2.0/gtkrc-2.0"
|
||||
export WGETRC="$HOME/.config/wget/wgetrc"
|
||||
export INPUTRC="$HOME/.config/inputrc"
|
||||
export GNUPGHOME="$HOME/.local/share/gnupg"
|
||||
export LESSHISTFILE="-"
|
||||
|
||||
# start window manager / desktop environment
|
||||
exec dwm
|
||||
|
|
Loading…
Reference in a new issue