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 la='ls -A'
alias l='ls -CF' alias l='ls -CF'
alias p3='python3' alias p3='python3'
alias apk='sudo apk'
# Add an "alert" alias for long running commands. Use like so: # Add an "alert" alias for long running commands. Use like so:
# sleep 10; alert # 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$//'\'')"' 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 fi
source ~/.git-prompt.sh source ~/.git-prompt.sh
PATH="$PATH:~/.local/bin"

View File

@ -34,21 +34,20 @@ rounded-corners-exclude = [
"window_type = 'desktop'" "window_type = 'desktop'"
]; ];
################################# #################################
# Background-Blurring # # Background-Blurring #
################################# #################################
blur-method = "dual_kawase"; blur-method = "dual_kawase"
blur-size = 12; blur-size = 12
blur-strength = 8; blur-strength = 8
blur-kern = "3x3box"; blur-kern = "3x3box";
blur-background-exclude = [ blur-background-exclude = [
"window_type = 'dock'", "window_type = 'dock'",
"window_type = 'desktop'", "window_type = 'desktop'",
"class_g = 'firefoxdeveloperedition' && window_type = 'popup_menu'", "class_g = 'firefoxdeveloperedition' && window_type = 'popup_menu'",
"class_g = 'firefoxdeveloperedition' && window_type = 'utility'", "class_g = 'firefoxdeveloperedition' && window_type = 'utility'",
"_GTK_FRAME_EXTENTS@:c" "_GTK_FRAME_EXTENTS@:c"
]; ];
@ -59,14 +58,13 @@ blur-background-exclude = [
backend = "glx"; backend = "glx";
vsync = true; vsync = true;
mark-wmwin-focused = true; mark-wmwin-focused = true;
mark-ovredir-focused = false mark-ovredir-focused = false
#mark-ovredir-focused = true;
detect-rounded-corners = true; detect-rounded-corners = true;
detect-client-opacity = true; detect-client-opacity = true;
detect-transient = true; detect-transient = true;
use-damage = true; use-damage = true;
log-level = "warn"; log-level = "warn";
wintypes: 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 #!/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 export _JAVA_AWT_WM_NONREPARENTING=1
xscreensaver & xscreensaver &
dwmbar &
setxkbmap "us,ru" "" "grp:win_space_toggle" & setxkbmap "us,ru" "" "grp:win_space_toggle" &
sh ~/wallpapers/cyber1.sh &
picom --experimental-backend & picom --experimental-backend &
exec dwm exec dwm