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
|
# get current branch in git repo
|
||||||
function parse_git_branch() {
|
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}" == "" ]
|
if [ ! "${BRANCH}" == "" ]
|
||||||
then
|
then
|
||||||
STAT=`parse_git_dirty`
|
STAT=$(parse_git_dirty)
|
||||||
echo "[${BRANCH}${STAT}]"
|
echo "[${BRANCH}${STAT}]"
|
||||||
else
|
else
|
||||||
echo ""
|
echo ""
|
||||||
|
@ -247,10 +247,10 @@ function parse_git_branch() {
|
||||||
|
|
||||||
# get current branch in git repo
|
# get current branch in git repo
|
||||||
function parse_git_branch() {
|
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}" == "" ]
|
if [ ! "${BRANCH}" == "" ]
|
||||||
then
|
then
|
||||||
STAT=`parse_git_dirty`
|
STAT=$(parse_git_dirty)
|
||||||
echo "[${BRANCH}${STAT}]"
|
echo "[${BRANCH}${STAT}]"
|
||||||
else
|
else
|
||||||
echo ""
|
echo ""
|
||||||
|
@ -259,13 +259,13 @@ function parse_git_branch() {
|
||||||
|
|
||||||
# get current status of git repo
|
# get current status of git repo
|
||||||
function parse_git_dirty {
|
function parse_git_dirty {
|
||||||
status=`git status 2>&1 | tee`
|
status=$(git status 2>&1 | tee)
|
||||||
dirty=`echo -n "${status}" 2> /dev/null | grep "modified:" &> /dev/null; echo "$?"`
|
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 "$?"`
|
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 "$?"`
|
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 "$?"`
|
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 "$?"`
|
renamed=$(echo -n "${status}" 2> /dev/null | grep "renamed:" &> /dev/null; echo "$?")
|
||||||
deleted=`echo -n "${status}" 2> /dev/null | grep "deleted:" &> /dev/null; echo "$?"`
|
deleted=$(echo -n "${status}" 2> /dev/null | grep "deleted:" &> /dev/null; echo "$?")
|
||||||
bits=''
|
bits=''
|
||||||
if [ "${renamed}" == "0" ]; then
|
if [ "${renamed}" == "0" ]; then
|
||||||
bits=">${bits}"
|
bits=">${bits}"
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
gtk-theme-name="gruvbox-dark-gtk"
|
gtk-theme-name="gruvbox-dark-gtk"
|
||||||
gtk-icon-theme-name="gruvbox-dark-icons-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-name="Simp1e-Gruvbox-Dark"
|
||||||
gtk-cursor-theme-size=0
|
gtk-cursor-theme-size=0
|
||||||
gtk-toolbar-style=GTK_TOOLBAR_BOTH
|
gtk-toolbar-style=GTK_TOOLBAR_BOTH
|
|
@ -1,7 +1,7 @@
|
||||||
[Settings]
|
[Settings]
|
||||||
gtk-theme-name=gruvbox-dark-gtk
|
gtk-theme-name=gruvbox-dark-gtk
|
||||||
gtk-icon-theme-name=gruvbox-dark-icons-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-name=Simp1e-Gruvbox-Dark
|
||||||
gtk-cursor-theme-size=0
|
gtk-cursor-theme-size=0
|
||||||
gtk-toolbar-style=GTK_TOOLBAR_BOTH
|
gtk-toolbar-style=GTK_TOOLBAR_BOTH
|
||||||
|
|
|
@ -3,9 +3,5 @@
|
||||||
# ***This script was made by Clay Gomera (Drake)***
|
# ***This script was made by Clay Gomera (Drake)***
|
||||||
# - Description: A simple desktop dmenu script
|
# - Description: A simple desktop dmenu script
|
||||||
# - Dependencies: dmenu, j4-dmenu-desktop
|
# - Dependencies: dmenu, j4-dmenu-desktop
|
||||||
|
#
|
||||||
prompt="-p launch:"
|
j4-dmenu-desktop --dmenu "dmenu -i -l 10 -p launch:" --no-generic
|
||||||
colors="-nb \#1d2021 -nf \#fbf1c7 -sb \#cc241d -sf \#fbf1c7"
|
|
||||||
|
|
||||||
DMENU="dmenu -i -l 10 $colors $prompt"
|
|
||||||
j4-dmenu-desktop --dmenu "$DMENU" --no-generic
|
|
||||||
|
|
|
@ -9,7 +9,7 @@ EDITOR="emacsclient -c -a emacs"
|
||||||
cd "$HOME" || exit 0
|
cd "$HOME" || exit 0
|
||||||
file=1
|
file=1
|
||||||
while [ "$file" ]; do
|
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
|
if [ -e "$file" ]; then
|
||||||
owd=$(pwd)
|
owd=$(pwd)
|
||||||
if [ -d "$file" ]; then
|
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"
|
pwrs="$pwr1\n$pwr2\n$pwr3\n$pwr4"
|
||||||
|
|
||||||
## MAIN ACTION COMMAND ##
|
## 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
|
case "$action" in
|
||||||
$option1*)
|
$option1*)
|
||||||
pkill X;;
|
pkill X;;
|
||||||
|
@ -40,7 +40,7 @@ case "$action" in
|
||||||
slock;;
|
slock;;
|
||||||
$option6*)
|
$option6*)
|
||||||
currentpwr=$(powerprofilesctl get)
|
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
|
case "$pwraction" in
|
||||||
$pwr1*)
|
$pwr1*)
|
||||||
powerprofilesctl set performance && notify-send "power profile switched to performance";;
|
powerprofilesctl set performance && notify-send "power profile switched to performance";;
|
||||||
|
|
|
@ -22,12 +22,12 @@ del3="10 sec delay"
|
||||||
dels="$del1\n$del2\n$del3"
|
dels="$del1\n$del2\n$del3"
|
||||||
|
|
||||||
## MAIN ACTION ##
|
## 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
|
case $choice in
|
||||||
$cho1)
|
$cho1)
|
||||||
scrot && notify-send "screenshot saved";;
|
scrot && notify-send "screenshot saved";;
|
||||||
$cho2)
|
$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
|
case $del in
|
||||||
$del1)
|
$del1)
|
||||||
scrot -d 3 && notify-send "screenshot saved";;
|
scrot -d 3 && notify-send "screenshot saved";;
|
||||||
|
|
|
@ -10,7 +10,7 @@ cd "$walldir" || exit
|
||||||
|
|
||||||
## SELECT PICTURE FUNCTION ##
|
## SELECT PICTURE FUNCTION ##
|
||||||
selectpic() {
|
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
|
if [ "$wallpaper" ]; then
|
||||||
chosenwall=$wallpaper
|
chosenwall=$wallpaper
|
||||||
else
|
else
|
||||||
|
@ -28,7 +28,7 @@ option5="scale"
|
||||||
options="$option1\n$option2\n$option3\n$option4\n$option5"
|
options="$option1\n$option2\n$option3\n$option4\n$option5"
|
||||||
|
|
||||||
## MAIN ACTION ##
|
## 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
|
case "$action" in
|
||||||
$option1*)
|
$option1*)
|
||||||
feh --bg-fill "$chosenwall";;
|
feh --bg-fill "$chosenwall";;
|
||||||
|
|
|
@ -40,12 +40,12 @@ disconnect() {
|
||||||
connect() {
|
connect() {
|
||||||
notify-send "Scannig networks, please wait"
|
notify-send "Scannig networks, please wait"
|
||||||
sleep 1
|
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 ##
|
## SELECT PASSWORD FUNCTION ##
|
||||||
password() {
|
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 ##
|
## MAIN CONNECTION COMMAND ##
|
||||||
|
@ -66,7 +66,7 @@ check() {
|
||||||
}
|
}
|
||||||
|
|
||||||
## MAIN ACTION COMMANDS ##
|
## 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
|
case "$cases" in
|
||||||
$option1*)
|
$option1*)
|
||||||
turnon;;
|
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 *spcmd7[] = {"st", "-n", "sppmx", "-g", "140x35", "-e", "pulsemixer", NULL };
|
||||||
const char *spcmd8[] = {"st", "-n", "spmsc", "-g", "140x35", "-e", "musikcube", 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 *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 *spcmd10[] = {"st", "-n", "spytm", "-g", "140x35", "-e", "ytfzf", "-mlst", NULL };
|
||||||
const char *spcmd11[] = {"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", "sprss", "-g", "140x35", "-e", "newsboat", NULL };
|
const char *spcmd12[] = {"st", "-n", "spgkk", "-g", "140x35", "-e", "geek-life", NULL };
|
||||||
const char *spcmd13[] = {"st", "-n", "spgkk", "-g", "140x35", "-e", "geek-life", NULL };
|
|
||||||
static Sp scratchpads[] = {
|
static Sp scratchpads[] = {
|
||||||
/* name cmd */
|
/* name cmd */
|
||||||
{"sptrm", spcmd1},
|
{"sptrm", spcmd1},
|
||||||
|
@ -54,10 +53,9 @@ static Sp scratchpads[] = {
|
||||||
{"sppmx", spcmd7},
|
{"sppmx", spcmd7},
|
||||||
{"spmsc", spcmd8},
|
{"spmsc", spcmd8},
|
||||||
{"spflm", spcmd9},
|
{"spflm", spcmd9},
|
||||||
{"sptot", spcmd10},
|
{"spytm", spcmd10},
|
||||||
{"spytm", spcmd11},
|
{"sprss", spcmd11},
|
||||||
{"sprss", spcmd12},
|
{"spgkk", spcmd12},
|
||||||
{"spgkk", spcmd13},
|
|
||||||
};
|
};
|
||||||
|
|
||||||
/* tagging */
|
/* tagging */
|
||||||
|
@ -146,10 +144,9 @@ static const Rule rules[] = {
|
||||||
{ NULL, "sppmx", NULL, SPTAG(6), 1, -1 },
|
{ NULL, "sppmx", NULL, SPTAG(6), 1, -1 },
|
||||||
{ NULL, "spmsc", NULL, SPTAG(7), 1, -1 },
|
{ NULL, "spmsc", NULL, SPTAG(7), 1, -1 },
|
||||||
{ NULL, "spflm", NULL, SPTAG(8), 1, -1 },
|
{ NULL, "spflm", NULL, SPTAG(8), 1, -1 },
|
||||||
{ NULL, "sptot", NULL, SPTAG(9), 1, -1 },
|
{ NULL, "spytm", NULL, SPTAG(9), 1, -1 },
|
||||||
{ NULL, "spytm", NULL, SPTAG(10), 1, -1 },
|
{ NULL, "sprss", NULL, SPTAG(10), 1, -1 },
|
||||||
{ NULL, "sprss", NULL, SPTAG(11), 1, -1 },
|
{ NULL, "spgkk", NULL, SPTAG(11), 1, -1 },
|
||||||
{ NULL, "spgkk", NULL, SPTAG(12), 1, -1 },
|
|
||||||
};
|
};
|
||||||
|
|
||||||
// layout(s)
|
// layout(s)
|
||||||
|
@ -313,10 +310,9 @@ static const Key keys[] = {
|
||||||
{ MODKEY|Mod1Mask, XK_p, togglescratch, {.ui = 6 } },
|
{ MODKEY|Mod1Mask, XK_p, togglescratch, {.ui = 6 } },
|
||||||
{ MODKEY|Mod1Mask, XK_m, togglescratch, {.ui = 7 } },
|
{ MODKEY|Mod1Mask, XK_m, togglescratch, {.ui = 7 } },
|
||||||
{ MODKEY|Mod1Mask, XK_v, togglescratch, {.ui = 8 } },
|
{ MODKEY|Mod1Mask, XK_v, togglescratch, {.ui = 8 } },
|
||||||
{ MODKEY|Mod1Mask, XK_t, togglescratch, {.ui = 9 } },
|
{ MODKEY|Mod1Mask, XK_n, togglescratch, {.ui = 9 } },
|
||||||
{ MODKEY|Mod1Mask, XK_n, togglescratch, {.ui = 10 } },
|
{ MODKEY|Mod1Mask, XK_r, togglescratch, {.ui = 10 } },
|
||||||
{ MODKEY|Mod1Mask, XK_r, togglescratch, {.ui = 11 } },
|
{ MODKEY|Mod1Mask, XK_g, togglescratch, {.ui = 11 } },
|
||||||
{ MODKEY|Mod1Mask, XK_g, togglescratch, {.ui = 12 } },
|
|
||||||
|
|
||||||
/* misc */
|
/* misc */
|
||||||
// logout
|
// logout
|
||||||
|
|
|
@ -21,7 +21,6 @@ ani-cli # watch anime
|
||||||
flix-cli # watch movies
|
flix-cli # watch movies
|
||||||
ytfzf # watch/listen to youtube
|
ytfzf # watch/listen to youtube
|
||||||
vifm # file manager
|
vifm # file manager
|
||||||
tut # tui mastodon client
|
|
||||||
btop # process viewer
|
btop # process viewer
|
||||||
pulsemixer # audio mixer 1
|
pulsemixer # audio mixer 1
|
||||||
alsamixer # audio mixer 2
|
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_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.
|
//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
|
# Calculates the percentage of remaining charge
|
||||||
percentage="$(cat "$battery/capacity" 2>&1)"
|
percentage="$(cat "$battery/capacity" 2>&1)"
|
||||||
# Updates the status icon based on the battery percentage
|
# Updates the status icon based on the battery percentage
|
||||||
if [ "$percentage" -lt 20 ]
|
if [ "$percentage" -le 20 ]
|
||||||
then
|
then
|
||||||
status=" "
|
status=" "
|
||||||
elif [ "$percentage" -lt 30 ]
|
elif [ "$percentage" -le 30 ]
|
||||||
then
|
then
|
||||||
status=" "
|
status=" "
|
||||||
elif [ "$percentage" -lt 40 ]
|
elif [ "$percentage" -le 40 ]
|
||||||
then
|
then
|
||||||
status=" "
|
status=" "
|
||||||
elif [ "$percentage" -lt 50 ]
|
elif [ "$percentage" -le 50 ]
|
||||||
then
|
then
|
||||||
status=" "
|
status=" "
|
||||||
elif [ "$percentage" -lt 60 ]
|
elif [ "$percentage" -le 60 ]
|
||||||
then
|
then
|
||||||
status=" "
|
status=" "
|
||||||
elif [ "$percentage" -lt 70 ]
|
elif [ "$percentage" -le 70 ]
|
||||||
then
|
then
|
||||||
status=" "
|
status=" "
|
||||||
elif [ "$percentage" -lt 80 ]
|
elif [ "$percentage" -le 80 ]
|
||||||
then
|
then
|
||||||
status=" "
|
status=" "
|
||||||
elif [ "$percentage" -lt 90 ]
|
elif [ "$percentage" -le 90 ]
|
||||||
then
|
then
|
||||||
status=" "
|
status=" "
|
||||||
|
else
|
||||||
|
status=" "
|
||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
"Charging")
|
"Charging")
|
||||||
# Calculates the percentage of remaining charge
|
# Calculates the percentage of remaining charge
|
||||||
percentage="$(cat "$battery/capacity" 2>&1)"
|
percentage="$(cat "$battery/capacity" 2>&1)"
|
||||||
# Updates the status icon based on the battery percentage while charging
|
# Updates the status icon based on the battery percentage while charging
|
||||||
if [ "$percentage" -lt 10 ]
|
if [ "$percentage" -le 10 ]
|
||||||
then
|
then
|
||||||
status=" "
|
status=" "
|
||||||
elif [ "$percentage" -lt 20 ]
|
elif [ "$percentage" -le 20 ]
|
||||||
then
|
then
|
||||||
status=" "
|
status=" "
|
||||||
elif [ "$percentage" -lt 30 ]
|
elif [ "$percentage" -le 30 ]
|
||||||
then
|
then
|
||||||
status=" "
|
status=" "
|
||||||
elif [ "$percentage" -lt 40 ]
|
elif [ "$percentage" -le 40 ]
|
||||||
then
|
then
|
||||||
status=" "
|
status=" "
|
||||||
elif [ "$percentage" -lt 50 ]
|
elif [ "$percentage" -le 50 ]
|
||||||
then
|
then
|
||||||
status=" "
|
status=" "
|
||||||
elif [ "$percentage" -lt 60 ]
|
elif [ "$percentage" -le 60 ]
|
||||||
then
|
then
|
||||||
status=" "
|
status=" "
|
||||||
elif [ "$percentage" -lt 70 ]
|
elif [ "$percentage" -le 70 ]
|
||||||
then
|
then
|
||||||
status=" "
|
status=" "
|
||||||
elif [ "$percentage" -lt 80 ]
|
elif [ "$percentage" -le 80 ]
|
||||||
then
|
then
|
||||||
status=" "
|
status=" "
|
||||||
elif [ "$percentage" -lt 90 ]
|
elif [ "$percentage" -le 90 ]
|
||||||
then
|
then
|
||||||
status=" "
|
status=" "
|
||||||
else
|
else
|
||||||
|
|
|
@ -19,7 +19,7 @@ static const char * message = "";
|
||||||
static const char * text_color = "#1d2021";
|
static const char * text_color = "#1d2021";
|
||||||
|
|
||||||
/* text size (must be a valid size) */
|
/* 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 */
|
/* Background image path, should be available to the user above */
|
||||||
static const char* background_image = ".config/suckless/slock/lockscreen.jpg";
|
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
|
## /_____/_/ \__,_/_/|_|\___/ My custom xinitrc
|
||||||
##
|
##
|
||||||
|
|
||||||
userresources=$HOME/.Xresources
|
userresources=$HOME/.config/Xresources
|
||||||
usermodmap=$HOME/.Xmodmap
|
usermodmap=$HOME/.config/Xmodmap
|
||||||
sysresources=/etc/X11/xinit/.Xresources
|
sysresources=/etc/X11/xinit/.Xresources
|
||||||
sysmodmap=/etc/X11/xinit/.Xmodmap
|
sysmodmap=/etc/X11/xinit/.Xmodmap
|
||||||
|
|
||||||
|
@ -31,10 +31,18 @@ fi
|
||||||
|
|
||||||
### ENVIRONMENT VARIABLES
|
### ENVIRONMENT VARIABLES
|
||||||
export BROWSER="brave"
|
export BROWSER="brave"
|
||||||
|
export TERMINAL="st"
|
||||||
|
export EDITOR="$HOME/.local/bin/lvim"
|
||||||
|
|
||||||
export MOZ_USE_XINPUT2=1
|
export MOZ_USE_XINPUT2=1
|
||||||
export XDG_DATA_HOME="${XDG_DATA_HOME:="$HOME/.local/share"}"
|
export XDG_DATA_HOME="$HOME/.local/share"
|
||||||
export XDG_CACHE_HOME="${XDG_CACHE_HOME:="$HOME/.cache"}"
|
export XDG_CACHE_HOME="$HOME/.cache"
|
||||||
export XDG_CONFIG_HOME="${XDG_CONFIG_HOME:="$HOME/.config"}"
|
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
|
# start window manager / desktop environment
|
||||||
exec dwm
|
exec dwm
|
||||||
|
|
Loading…
Reference in a new issue