Latest updates to DE

This commit is contained in:
Alex Selimov 2025-05-26 22:27:48 -04:00
parent 4f621f9874
commit 41c39315b6
26 changed files with 60 additions and 65 deletions

View File

@ -1,10 +1,11 @@
#!/bin/bash #!/bin/bash
#First we get the capacity #First we get the capacity
charge=$(cat /sys/class/power_supply/BAT0/capacity) bat=$1
charge=$(cat /sys/class/power_supply/$bat/capacity)
#Now get the status #Now get the status
bstat=$(cat /sys/class/power_supply/BAT0/status) bstat=$(cat /sys/class/power_supply/$bat/status)
#Get the symbol for the capacity #Get the symbol for the capacity
if [ "$bstat" = "Charging" ]; then if [ "$bstat" = "Charging" ]; then
@ -14,49 +15,19 @@ else
fi fi
if [ "$charge" -gt 90 ]; then if [ "$charge" -gt 90 ]; then
bat="$cstat" bat="$cstat"
charge=""
elif [ "$charge" -gt 70 ]; then elif [ "$charge" -gt 70 ]; then
bat="$cstat" bat="$cstat"
charge=""
elif [ "$charge" -gt 50 ]; then elif [ "$charge" -gt 50 ]; then
bat="$cstat" bat="$cstat"
charge=""
elif [ "$charge" -gt 20 ]; then elif [ "$charge" -gt 20 ]; then
bat="$cstat" bat="$cstat"
charge=""
else else
bat=" $cstat" bat=" $cstat"
charge=" $charge%"
fi fi
echo "$bat$charge "
battery="$bat $charge%"
if [ -d /sys/class/power_supply/BAT1 ]; then
#First we get the capacity
charge=$(cat /sys/class/power_supply/BAT1/capacity)
#Now get the status
bstat=$(cat /sys/class/power_supply/BAT1/status)
if [ "$bstat" = "Charging" ]; then
cstat=""
else
cstat=""
fi
#Get the symbol for the capacity
if [ "$charge" -gt 90 ]; then
bat="$cstat"
elif [ "$charge" -gt 70 ]; then
bat="$cstat"
elif [ "$charge" -gt 50 ]; then
bat="$cstat"
elif [ "$charge" -gt 20 ]; then
bat="$cstat"
else
bat=" $cstat"
fi
echo "$bat $charge% $battery"
else
echo $battery
fi

View File

@ -6,10 +6,10 @@ total=$(grep -oP '^MemTotal: *\K[0-9]+' /proc/meminfo)
mem=" $(echo "scale=1; 100*($total-$available)/$total"| bc | cut -d '.' -f1 )" mem=" $(echo "scale=1; 100*($total-$available)/$total"| bc | cut -d '.' -f1 )"
if [ $mem -gt 80 ]; then if [ $mem -gt 80 ]; then
mem="$mem" mem="$mem %"
elif [ $mem -gt 50 ]; then elif [ $mem -gt 50 ]; then
mem="$mem" mem="$mem %"
else else
mem="$mem" mem=""
fi fi
echo "$mem%" echo "$mem"

View File

@ -3,12 +3,16 @@
vol="$(pamixer --get-volume)" vol="$(pamixer --get-volume)"
if [ "$vol" -gt "70" ]; then #if [ "$vol" -gt "70" ]; then
# icon="󰕾"
#elif [ "$vol" -gt "30" ]; then
# icon="󰖀"
#el
if [ "$vol" -gt "0" ]; then
icon="󰕾" icon="󰕾"
elif [ "$vol" -gt "30" ]; then
icon="󰖀"
else else
icon="󰕿" icon=""
fi fi
echo "$icon $vol%" echo "$icon "

View File

@ -4,5 +4,5 @@ case "$(cat /sys/class/net/w*/operstate 2>/dev/null)" in
down) echo " 󰖪 ";; down) echo " 󰖪 ";;
up) percentage="$(awk '/^\s*w/ { print int($3 * 100 / 70) "% " }' /proc/net/wireless)" up) percentage="$(awk '/^\s*w/ { print int($3 * 100 / 70) "% " }' /proc/net/wireless)"
ssid=$(iwgetid -r) ssid=$(iwgetid -r)
echo \ $ssid  echo ""
esac esac

View File

@ -5,5 +5,5 @@ query=$(eval "$dmenu")
if [ -n "$query" ]; then if [ -n "$query" ]; then
query=${query//+/%2B} query=${query//+/%2B}
query=${query// /+} query=${query// /+}
~/.local/bin/zen-x86_64.AppImage --new-window "https://search.brave.com/search?q=$query" zen-browser --new-window "https://search.brave.com/search?q=$query"
fi fi

View File

@ -68,3 +68,5 @@ case $1 in
fi fi
;; ;;
esac esac
kill -44 $(pidof dwmblocks)

View File

@ -69,7 +69,9 @@
# The width can be negative. In this case the actual width is the # The width can be negative. In this case the actual width is the
# screen width minus the width defined in within the geometry option. # screen width minus the width defined in within the geometry option.
origin="top-right" origin="top-right"
geometry=350x200-25+25 width=300
height=250
offset=+10x+25
# Shrink window if it's smaller than the width. Will be ignored if # Shrink window if it's smaller than the width. Will be ignored if
# width is 0. # width is 0.

View File

@ -18,7 +18,14 @@ animation-clamping = true;
animations =({ animations =({
triggers = ["open"]; triggers = ["open"];
preset = "appear"; preset = "appear";
scale = 0.5;
duration = 0.3
}, },
{
triggers = ["geometry"];
preset = "geometry-change";
duration = 0.2
}
) )
@ -300,4 +307,8 @@ rules = (
triggers = ["close", "hide"]; triggers = ["close", "hide"];
preset = "disappear"; preset = "disappear";
})}, })},
{match = "name = 'slop'"; blur-background =false; animations = ()}) {match = "name = 'slop'"; blur-background =false; animations = ()},
{match = "class_g = 'dwm'"; corner-radius=0},
{ match = "fullscreen"; corner-radius = 0; },
)

View File

@ -11,6 +11,7 @@
configuration { configuration {
modi: "drun,run"; modi: "drun,run";
show-icons: false; show-icons: false;
font: "CaskaydiaMono Nerd Font 12";
display-drun: ""; display-drun: "";
display-run: ""; display-run: "";
display-filebrowser: ""; display-filebrowser: "";

View File

@ -50,3 +50,6 @@ ctrl+shift+d
shift+super+i shift+super+i
rofi-connman rofi-connman
super+e
emojis

5
home/.xinitrc Normal file → Executable file
View File

@ -36,7 +36,7 @@ fi
export PATH="$PATH:/home/aselimov/bin:/home/aselimov/.local/bin:/home/aselimov/scripts" export PATH="$PATH:/home/aselimov/bin:/home/aselimov/.local/bin:/home/aselimov/scripts"
xinput set-prop "DualPoint Stick" "libinput Accel Speed" 0.8 xinput set-prop "DualPoint Stick" "libinput Accel Speed" 0.8
export BROWSER=/usr/bin/firefox export BROWSER=/home/aselimov/bin/zen-browser
export EDITOR=/usr/bin/nvim export EDITOR=/usr/bin/nvim
export XDG_RUNTIME_DIR=/tmp/aselimov export XDG_RUNTIME_DIR=/tmp/aselimov
@ -51,10 +51,11 @@ xrandr | grep "2560x1440" && dock.sh || mobile.sh
xinput --set-prop "TPPS/2 IBM TrackPoint" "libinput Accel Speed" 1.0 xinput --set-prop "TPPS/2 IBM TrackPoint" "libinput Accel Speed" 1.0
xinput --set-prop "TPPS/2 IBM TrackPoint" "libinput Accel Profile Enabled" 0 1 xinput --set-prop "TPPS/2 IBM TrackPoint" "libinput Accel Profile Enabled" 0 1
exec bato &
exec sync_mail.sh &
exec xsettingsd & exec xsettingsd &
exec sxhkd & exec sxhkd &
exec mpd & exec mpd &
exec mpdnotif.sh &
exec picom -b & exec picom -b &
exec wallpaper_randomizer.sh & exec wallpaper_randomizer.sh &
exec dwmblocks & exec dwmblocks &

View File

@ -12,7 +12,7 @@ zstyle :compinstall filename '/home/aselimov/.zshrc'
export LS_COLORS='di=1;37:ln=35:so=32:pi=33:ex=1;32:bd=34;46:cd=34;43:su=30;41:sg=30;46:tw=30;42:ow=30;43' export LS_COLORS='di=1;37:ln=35:so=32:pi=33:ex=1;32:bd=34;46:cd=34;43:su=30;41:sg=30;46:tw=30;42:ow=30;43'
alias ls="ls --classify --group-directories-first --color" alias ls="ls --classify --group-directories-first --color"
~/bin/daily_scripture.sh #~/bin/daily_scripture.sh
autoload -Uz compinit autoload -Uz compinit
compinit compinit
# End of lines added by compinstall # End of lines added by compinstall
@ -31,7 +31,7 @@ function addbin(){
} }
eval "$(starship init zsh)" eval "$(starship init zsh)"
zstyle -e ':completion:*:hosts' hosts 'reply=( zstyle -e ':completion:*:hosts' hosts 'reply=(
${=${${(f)"$(cat {/etc/ssh_,~/.ssh/known_}hosts(|2)(N) 2>/dev/null)"}%%[#| ]*}//,/ } ${=${${(f)"$(cat {/etc/ssh_,~/ar.ssh/known_}hosts(|2)(N) 2>/dev/null)"}%%[#| ]*}//,/ }
${=${${${${(@M)${(f)"$(cat ~/.ssh/config 2>/dev/null)"}:#Host *}#Host }:#*\**}:#*\?*}} ${=${${${${(@M)${(f)"$(cat ~/.ssh/config 2>/dev/null)"}:#Host *}#Host }:#*\**}:#*\?*}}
)' )'
@ -42,17 +42,17 @@ source "/home/aselimov/.config/zsh/zsh-history-substring-search/zsh-history-subs
bindkey '^[[A' history-substring-search-up bindkey '^[[A' history-substring-search-up
bindkey '^[[B' history-substring-search-down bindkey '^[[B' history-substring-search-down
export XKB_DEFAULT_OPTIONS="caps:escape" export XKB_DEFAULT_OPTIONS="caps:escape"
export PASSWORD_STORE_CHARACTER_SET='a-zA-Z0-9+\-$!*_='
XDEB_PKGROOT=${HOME}/.config/xdeb
function panbeamer (){
pandoc --pdf-engine=xelatex -o "${1/md/pdf}" -t beamer "$1"
}
export panbeamer
export NVM_DIR="$HOME/.nvm" export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm [ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion [ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion
# Add cuda to path
export PATH="$PATH:/usr/local/cuda-12.8/bin"
export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:/usr/local/cuda-12.8/lib64"
[ -f "/home/aselimov/.ghcup/env" ] && . "/home/aselimov/.ghcup/env" # ghcup-env [ -f "/home/aselimov/.ghcup/env" ] && . "/home/aselimov/.ghcup/env" # ghcup-env

View File

@ -0,0 +1 @@
/home/aselimov/projects/SelimovDE/wallpapers/real-pics/daniel-leone-v7daTKlZzaw.jpg

View File

@ -0,0 +1 @@
/home/aselimov/projects/SelimovDE/wallpapers/real-pics/fuji.jpg

View File

@ -0,0 +1 @@
/home/aselimov/projects/SelimovDE/wallpapers/real-pics/sequoia.png

View File

@ -1 +0,0 @@
/home/aselimov/media/wallpapers/misc/thinkpad.png

View File

@ -1 +0,0 @@
/home/aselimov/media/wallpapers/linux/void-linux-minimal.png

View File

@ -1 +0,0 @@
/home/aselimov/media/wallpapers/minimalist/zen-maze.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 18 KiB

BIN
wallpapers/minimalist/_ Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.3 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1008 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 7.1 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 433 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 363 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 10 MiB