This commit is contained in:
Linux User 2022-08-13 18:10:53 +00:00
parent c3bb83fe14
commit 2db42127d0
11 changed files with 71 additions and 12 deletions

View File

@ -168,7 +168,7 @@ alias ll='ls -alF'
alias la='ls -A'
alias l='ls -CF'
alias p3='python3'
alias apk='sudo apk'
# Add an "alert" alias for long running commands. Use like so:
# sleep 10; alert
alias alert='notify-send --urgency=low -i "$([ $? = 0 ] && echo terminal || echo error)" "$(history|tail -n1|sed -e '\''s/^\s*[0-9]\+\s*//;s/[;&|]\s*alert$//'\'')"'
@ -194,3 +194,5 @@ if ! shopt -oq posix; then
fi
source ~/.git-prompt.sh
PATH="$PATH:~/.local/bin"

View File

@ -34,14 +34,13 @@ rounded-corners-exclude = [
"window_type = 'desktop'"
];
#################################
# Background-Blurring #
#################################
blur-method = "dual_kawase";
blur-size = 12;
blur-strength = 8;
blur-method = "dual_kawase"
blur-size = 12
blur-strength = 8
blur-kern = "3x3box";
blur-background-exclude = [
@ -59,14 +58,13 @@ blur-background-exclude = [
backend = "glx";
vsync = true;
mark-wmwin-focused = true;
mark-ovredir-focused = false
#mark-ovredir-focused = true;
detect-rounded-corners = true;
detect-client-opacity = true;
detect-transient = true;
use-damage = true;
log-level = "warn";
wintypes:

23
.local/bin/dwmbar Executable file
View File

@ -0,0 +1,23 @@
#!/bin/bash
DELIM=" | "
status() {
for FILE in $(ls ~/.local/scripts)
do
echo $DELIM
sh ~/.local/scripts/$FILE
done
}
time=$(date +"%s")
while true
do
if [ $(($time - $(date +"%s"))) -lt 0 ]
then
[ $(($time - $(date +"%s"))) -ge 0 ] && echo $(($time - $(date +"%s")))
xprop -root -set WM_NAME "$(status | tr '\n' ' ')"
time=$(date +"%s")
fi
done

5
.local/scripts/9994_ram Executable file
View File

@ -0,0 +1,5 @@
#!/bin/bash
mem="$(free -h | awk '/Mem:/ {print $3 "/" $2}')"
echo " $mem"

5
.local/scripts/9995_cpu Normal file
View File

@ -0,0 +1,5 @@
#!/bin/bash
usage=$(cat <(grep 'cpu ' /proc/stat) <(sleep 0.3 && grep 'cpu ' /proc/stat) | awk -v RS="" '{print ($13-$2+$15-$4)*100/($13-$2+$15-$4+$16-$5)}' | cut -d'.' -f1)"%"
echo " $usage"

6
.local/scripts/9996_wifi Normal file
View File

@ -0,0 +1,6 @@
#!/bin/bash
power=$(nmcli -f IN-USE,SIGNAL,SSID device wifi | grep "*" | cut -d' ' -f8)
name=$(nmcli -f IN-USE,SIGNAL,SSID device wifi | grep "*" | cut -d' ' -f14)
echo " $name $power"

6
.local/scripts/9997_disk Normal file
View File

@ -0,0 +1,6 @@
#!/bin/bash
used=$(df -h / | sed -n '1!p' | cut -d' ' -f22)
total=$(df -h / | sed -n '1!p' | cut -d' ' -f16)
echo " $used/$total"

5
.local/scripts/9998_lang Normal file
View File

@ -0,0 +1,5 @@
#!/bin/bash
lang=$(xkblayout-state print %s)
echo " $lang"

6
.local/scripts/9999_date Normal file
View File

@ -0,0 +1,6 @@
#!/bin/bash
date=$(date +"%d.%m.%y")
time=$(date +"%H:%M:%S")
echo " $date  $time"

2
.xinitrc Normal file → Executable file
View File

@ -1,3 +1,3 @@
#!/bin/bash
[ -f ~/.xprofile ] && . ~/.xprofile
[ -f ~/.xprofile ] && sh ~/.xprofile

5
.xprofile Normal file → Executable file
View File

@ -1,8 +1,11 @@
#!/bin/bash
export _JAVA_AWT_WM_NONREPARENTING=1
xscreensaver &
dwmbar &
setxkbmap "us,ru" "" "grp:win_space_toggle" &
sh ~/wallpapers/cyber1.sh &
picom --experimental-backend &
exec dwm