@@ -147,3 +147,4 @@ imap <c-x><c-k> <plug>(fzf-complete-word) | |||||
imap <c-x><c-f> <plug>(fzf-complete-path) | imap <c-x><c-f> <plug>(fzf-complete-path) | ||||
imap <c-x><c-l> <plug>(fzf-complete-line) | imap <c-x><c-l> <plug>(fzf-complete-line) | ||||
vnoremap <C-c> "+y | vnoremap <C-c> "+y | ||||
@@ -1,4 +1,5 @@ | |||||
export PATH=$PATH:/home/rinri/scripts | |||||
export PATH=$PATH:/home/rinri/scripts:/home/rinri/scripts/Discord | |||||
~/scripts/automount.sh & | |||||
while true; do | while true; do | ||||
# Log stderror to a file | # Log stderror to a file | ||||
dwm 2> ~/.dwm.log | dwm 2> ~/.dwm.log | ||||
@@ -0,0 +1 @@ | |||||
[[ -z $DISPLAY && $XDG_VTNR -eq 1 ]] && startx |
@@ -0,0 +1,2 @@ | |||||
[[ -z $DISPLAY && $XDG_VTNR -eq 1 ]] && exec startx | |||||
@@ -5,11 +5,22 @@ if [[ -r "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" ]] | |||||
source "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" | source "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" | ||||
fi | fi | ||||
export QT_QPA_PLATFORMTHEME=qt5ct | |||||
export EDITOR="nvim" | export EDITOR="nvim" | ||||
export TERMINAL="st" | export TERMINAL="st" | ||||
export BROWSER="firefox" | export BROWSER="firefox" | ||||
export LC_CTYPE=ru_RU.UTF-8 | export LC_CTYPE=ru_RU.UTF-8 | ||||
# less + man | |||||
export LESS_TERMCAP_mb=$'\e[1;32m' | |||||
export LESS_TERMCAP_md=$'\e[1;32m' | |||||
export LESS_TERMCAP_me=$'\e[0m' | |||||
export LESS_TERMCAP_se=$'\e[0m' | |||||
export LESS_TERMCAP_so=$'\e[01;33m' | |||||
export LESS_TERMCAP_ue=$'\e[0m' | |||||
export LESS_TERMCAP_us=$'\e[1;4;31m' | |||||
export PAGER="less" | |||||
fzfcd () { | fzfcd () { | ||||
cd "$(fd --type d --follow --exclude .git --exclude node_modules | fzf)" | cd "$(fd --type d --follow --exclude .git --exclude node_modules | fzf)" | ||||
} | } | ||||
@@ -18,12 +29,8 @@ alias ls="ls --color" | |||||
alias ll="ls -l --color" | alias ll="ls -l --color" | ||||
alias la="ls -a --color" | alias la="ls -a --color" | ||||
alias lal="ls -al --color" | alias lal="ls -al --color" | ||||
alias huion="xsetwacom set 'HUION Huion Tablet Pen stylus' Area 4384 3990 24384 15240" | |||||
alias dxyz="ssh root@rinri-d.xyz" | alias dxyz="ssh root@rinri-d.xyz" | ||||
alias mrcon="mcrcon -H rinri-d.xyz -p -t" | |||||
alias vim="nvim" | alias vim="nvim" | ||||
alias minemus="mpv --no-video https://youtu.be/Dg0IjOzopYU" | |||||
alias weebcabin="~/scripts/anime.sh" | |||||
alias cal="cal -m" | alias cal="cal -m" | ||||
# Lines configured by zsh-newuser-install | # Lines configured by zsh-newuser-install | ||||
@@ -1,6 +1,6 @@ | |||||
# My configuration | # My configuration | ||||
- OS: [Artix Linux](https://www.artixlinux.org/) | |||||
- OS: [Arch Linux](https://archlinux.org) | |||||
- WM: [dwm](https://dwm.suckless.org/) | - WM: [dwm](https://dwm.suckless.org/) | ||||
- Terminal: [st](https://st.suckless.org/) | - Terminal: [st](https://st.suckless.org/) | ||||
- Editor: [neovim](https://neovim.io/) | - Editor: [neovim](https://neovim.io/) | ||||
@@ -10,27 +10,27 @@ | |||||
- Notifications: [Dunst](https://github.com/dunst-project/dunst) | - Notifications: [Dunst](https://github.com/dunst-project/dunst) | ||||
- Status bar: [slstatus](https://tools.suckless.org/slstatus/) | - Status bar: [slstatus](https://tools.suckless.org/slstatus/) | ||||
- Email client: [neomutt](https://neomutt.org/) + [thunderbird](https://www.thunderbird.net) | - Email client: [neomutt](https://neomutt.org/) + [thunderbird](https://www.thunderbird.net) | ||||
- Wallpaper: [wallhaven](https://wallhaven.cc/w/pk3kde) | |||||
- Wallpaper: [wallhaven](https://wallhaven.cc/w/p8q1x3) (konachan is better) | |||||
## Screenshots | ## Screenshots | ||||
### Clear: | ### Clear: | ||||
![clear](clear.png) | |||||
![clear](clear.jpg) | |||||
### Neofetch: | ### Neofetch: | ||||
![neofetch](neofetch.png) | |||||
![neofetch](neofetch.jpg) | |||||
### Music player and mixer(cmus + pulsemixer): | ### Music player and mixer(cmus + pulsemixer): | ||||
![cmus](cmus.png) | |||||
![cmus](cmus.jpg) | |||||
### Text editor(neovim): | ### Text editor(neovim): | ||||
![neovim](vim.png) | |||||
![neovim](vim.jpg) | |||||
### Notifications(dunst): | ### Notifications(dunst): | ||||
![dunst](dunst.png) | |||||
![dunst](dunst.jpg) | |||||
### Browser(firefox): | ### Browser(firefox): | ||||
![firefox](firefox.png) | |||||
![firefox](firefox.jpg) | |||||
### Wallpaper: | ### Wallpaper: | ||||
![wall](newwall.jpg) | ![wall](newwall.jpg) |
@@ -1,3 +0,0 @@ | |||||
anime.sh | |||||
upload.sh | |||||
download.sh |
@@ -1,2 +0,0 @@ | |||||
sudo mount /dev/disk/by-uuid/EA9A8F6E9A8F365B /mnt/win | |||||
sudo mount /dev/disk/by-uuid/7A54DAE754DAA563 /mnt/rec |
@@ -0,0 +1,3 @@ | |||||
#!/bin/sh | |||||
notify-send "Daily Fortune" "$(fortune|cowsay)" |
@@ -1,6 +1,6 @@ | |||||
#!/bin/bash | #!/bin/bash | ||||
while read -u 10 p; do | |||||
while read -r p; do | |||||
echo "Copying $p..." | echo "Copying $p..." | ||||
cp "$p" send | |||||
done 10<$1 | |||||
cp "$p" fav | |||||
done |
@@ -0,0 +1,3 @@ | |||||
#!/bin/sh | |||||
pactl set-source-volume alsa_input.pci-0000_04_00.6.analog-stereo 400% |
@@ -0,0 +1,3 @@ | |||||
#!/bin/sh | |||||
pactl set-source-volume alsa_input.pci-0000_04_00.6.analog-stereo 25% |
@@ -0,0 +1 @@ | |||||
screenkey --opacity 0.3 -p fixed -g 350x70-10-100 |
@@ -2,9 +2,9 @@ | |||||
if [ $# -eq 0 ] | if [ $# -eq 0 ] | ||||
then | then | ||||
magick import ~/Screenshots/$(date +%e.%m.%y-%T).png | |||||
magick import -window root ~/Screenshots/"$(date +%Y.%m.%d-%T)".jpg | |||||
else | else | ||||
magick import temp.png | |||||
xclip -selection clipboard -t image/png temp.png | |||||
magick import temp.jpg | |||||
xclip -selection clipboard -t image/png temp.jpg | |||||
rm temp.png | rm temp.png | ||||
fi | fi |
@@ -0,0 +1,2 @@ | |||||
killall screenkey & | |||||
slock |
@@ -0,0 +1,32 @@ | |||||
#!/bin/sh | |||||
# Prints all batteries, their percentage remaining and an emoji corresponding | |||||
# to charge status (🔌 for plugged up, 🔋 for discharging on battery, etc.). | |||||
case $BUTTON in | |||||
3) notify-send "🔋 Battery module" "🔋: discharging | |||||
🛑: not charging | |||||
♻: stagnant charge | |||||
🔌: charging | |||||
⚡: charged | |||||
❗: battery very low! | |||||
- Scroll to change adjust xbacklight." ;; | |||||
6) "$TERMINAL" -e "$EDITOR" "$0" ;; | |||||
esac | |||||
# acpi alternative | |||||
# acpi | sed "s/Battery [0-9]: //;s/[Dd]ischarging, /🔋/;s/[Nn]ot charging, /🛑/;s/[Cc]harging, /🔌/;s/[Uu]nknown, /♻️/;s/[Ff]ull, /⚡/;s/ \(remaining\|until charged\)//"; exit | |||||
# Loop through all attached batteries. | |||||
for battery in /sys/class/power_supply/BAT? | |||||
do | |||||
# Get its remaining capacity and charge status. | |||||
capacity=$(cat "$battery"/capacity 2>/dev/null) || break | |||||
status=$(sed "s/[Dd]ischarging/🔋/;s/[Nn]ot charging/🛑/;s/[Cc]harging/🔌/;s/[Uu]nknown/♻️/;s/[Ff]ull/⚡/" "$battery"/status) | |||||
# If it is discharging and 25% or less, we will add a ❗ as a warning. | |||||
[ "$capacity" -le 25 ] && [ "$status" = "🔋" ] && warn="❗" | |||||
printf "%s%s%s%% " "$status" "$warn" "$capacity" | |||||
unset warn | |||||
done | sed 's/ *$//' |
@@ -0,0 +1,3 @@ | |||||
#!/bin/sh | |||||
echo "$(brightnessctl g)/$(brightnessctl m)*100" | bc -l | awk '{printf("%d\n",$1 + 0.5)}' |
@@ -0,0 +1,29 @@ | |||||
#!/bin/sh | |||||
clock=$(date '+%I') | |||||
case "$clock" in | |||||
"00") icon="🕛" ;; | |||||
"01") icon="🕐" ;; | |||||
"02") icon="🕑" ;; | |||||
"03") icon="🕒" ;; | |||||
"04") icon="🕓" ;; | |||||
"05") icon="🕔" ;; | |||||
"06") icon="🕕" ;; | |||||
"07") icon="🕖" ;; | |||||
"08") icon="🕗" ;; | |||||
"09") icon="🕘" ;; | |||||
"10") icon="🕙" ;; | |||||
"11") icon="🕚" ;; | |||||
"12") icon="🕛" ;; | |||||
esac | |||||
case $BUTTON in | |||||
1) notify-send "This Month" "$(cal --color=always | sed "s/..7m/<b><span color=\"red\">/;s/..27m/<\/span><\/b>/")" && notify-send "Appointments" "$(calcurse -d3)" ;; | |||||
2) setsid -f st -e calcurse ;; | |||||
3) notify-send "📅 Time/date module" "\- Left click to show upcoming appointments for the next three days via \`calcurse -d3\` and show the month via \`cal\` | |||||
- Middle click opens calcurse if installed" ;; | |||||
6) st -e nvim "$0" ;; | |||||
esac | |||||
date "+%Y %b %d (%a) $icon%I:%M%p" |
@@ -0,0 +1,20 @@ | |||||
#!/bin/sh | |||||
case $BUTTON in | |||||
1) st -e nmtui;; | |||||
3) notify-send "Internet module" "\- Click to connect | |||||
n: no wifi connection | |||||
w: wifi connection with quality | |||||
n: no ethernet | |||||
e: ethernet working | |||||
🔒: vpn is active | |||||
" ;; | |||||
6) st -e nvim "$0" ;; | |||||
esac | |||||
case "$(cat /sys/class/net/w*/operstate 2>/dev/null)" in | |||||
down) wifiicon="" ;; | |||||
up) wifiicon="$(awk '/^\s*w/ { print "", int($3 * 100 / 70) "% " }' /proc/net/wireless)" ;; | |||||
esac | |||||
printf "%s%s%s\n" "$wifiicon" "$(sed "s/down//;s/up//" /sys/class/net/e*/operstate 2>/dev/null)" "$(sed "s/.*/🔒/" /sys/class/net/tun*/operstate 2>/dev/null)" |
@@ -0,0 +1,29 @@ | |||||
#!/bin/sh | |||||
# Prints the current volume or 🔇 if muted. | |||||
case $BUTTON in | |||||
1) setsid -f st -e pulsemixer ;; | |||||
2) pamixer -t ;; | |||||
4) pamixer --allow-boost -i 1 ;; | |||||
5) pamixer --allow-boost -d 1 ;; | |||||
3) notify-send "📢 Volume module" "\- Shows volume 🔊, 🔇 if muted. | |||||
- Middle click to mute. | |||||
- Scroll to change." ;; | |||||
6) st -e nvim "$0" ;; | |||||
esac | |||||
[ $(pamixer --get-mute) = true ] && echo 🔇 && exit | |||||
vol="$(pamixer --get-volume)" | |||||
if [ "$vol" -gt "70" ]; then | |||||
icon="🔊" | |||||
elif [ "$vol" -lt "30" ]; then | |||||
icon="🔈" | |||||
else | |||||
icon="🔉" | |||||
fi | |||||
echo "$icon$vol%" | |||||
@@ -7,7 +7,5 @@ xbanish & | |||||
xrdb ~/.Xresources & | xrdb ~/.Xresources & | ||||
feh --bg-scale ~/walls/collections/wallhaven-wyrqg7.png & | feh --bg-scale ~/walls/collections/wallhaven-wyrqg7.png & | ||||
picom --experimental-backends & | picom --experimental-backends & | ||||
pulseaudio -D & | |||||
xautolock -time 5 -locker slock & | |||||
cadence & | |||||
brightnessctl set 100% | |||||
xautolock -time 5 -locker slock.sh & | |||||
brightnessctl set 100% & |