update: slightly WIP update with cool features

This commit is contained in:
2026-05-12 19:50:46 +03:00
parent a304ecefcc
commit 9d23965acc
47 changed files with 244 additions and 278 deletions

View File

@@ -1,26 +1,17 @@
# editor # bash history
export EDITOR=nvim export HISTCONTROL=ignoreboth
export TERMINAL=kitty
# infinite bash history
# remove '-1' in both places if your bash version < 4.3
export HISTFILESIZE=-1 export HISTFILESIZE=-1
export HISTSIZE=-1 export HISTSIZE=-1
# writes bash history after every command
export PROMPT_COMMAND="history -a"
# GCM # GCM
export GCM_CREDENTIAL_STORE=cache export GCM_CREDENTIAL_STORE=cache
# zoxide # zoxide
if command -v zoxide >/dev/null 2>&1; then if command -v zoxide >/dev/null 2>&1; then
eval "$(zoxide init bash)" eval "$(zoxide init bash)"
fi fi
# pyenv # pyenv
if command -v pyenv >/dev/null 2>&1; then if command -v pyenv >/dev/null 2>&1; then
export PYENV_ROOT="$HOME/.pyenv" export PYENV_ROOT="$HOME/.pyenv"
@@ -28,7 +19,6 @@ if command -v pyenv >/dev/null 2>&1; then
eval "$(pyenv init - bash)" eval "$(pyenv init - bash)"
fi fi
# android-sdk # android-sdk
export ANDROID_SDK_ROOT=/opt/android-sdk export ANDROID_SDK_ROOT=/opt/android-sdk
export PATH=$PATH:$ANDROID_SDK_ROOT/cmdline-tools/latest/bin export PATH=$PATH:$ANDROID_SDK_ROOT/cmdline-tools/latest/bin

24
.bash_prompt Normal file
View File

@@ -0,0 +1,24 @@
# History append
shopt -s histappend
# Prompt
set_prompt() {
local EXIT_STATUS=$?
local SUCCESS="\[\e[32m\]"
local ERROR="\[\e[34m\]"
local RESET="\[\e[0m\]"
history -a
history -c
history -r
if [ $EXIT_STATUS -eq 0 ]; then
local COLOR=$SUCCESS
else
local COLOR=$ERROR
fi
# PS1="[\u@\h \W]${COLOR}\\\$${RESET} "
PS1="[\u@\h \! \W]${COLOR}\\\$${RESET} "
}
PROMPT_COMMAND=set_prompt

12
.bashrc
View File

@@ -107,6 +107,8 @@ alias download='aria2c -x16 -s16'
alias scrcpy-def='scrcpy -S --no-audio -K' alias scrcpy-def='scrcpy -S --no-audio -K'
alias share='python3 -m http.server' alias share='python3 -m http.server'
alias globalshare='(cd ~/Share && python3 -m http.server)' alias globalshare='(cd ~/Share && python3 -m http.server)'
alias agrep='ps aux | grep'
# fun aliases # fun aliases
alias mm='unimatrix -f -a -s 92 -l coo -c yellow' alias mm='unimatrix -f -a -s 92 -l coo -c yellow'
@@ -115,6 +117,13 @@ alias mmbeesquit='unimatrix -f -s 86 -u '\''beesquit'\'' -c yellow'
alias mmsnow='unimatrix -u ❄❆❅᪥𑁍⭒*❄❆❅᪥* -c white -a' alias mmsnow='unimatrix -u ❄❆❅᪥𑁍⭒*❄❆❅᪥* -c white -a'
# extra # extra
# functions
meomap() {
for net in "$@"; do
sudo nmap -sn "$net/24"
done
}
# additional aliases # additional aliases
if [ -f "$HOME/.bash_private" ]; then if [ -f "$HOME/.bash_private" ]; then
. "$HOME/.bash_private" . "$HOME/.bash_private"
@@ -122,3 +131,6 @@ fi
if [ -f "$HOME/.bash_aliases" ]; then if [ -f "$HOME/.bash_aliases" ]; then
. "$HOME/.bash_aliases" . "$HOME/.bash_aliases"
fi fi
if [ -f "$HOME/.bash_prompt" ]; then
. "$HOME/.bash_prompt"
fi

View File

@@ -17,6 +17,12 @@ progress_bar_height = 7
highlight = "#BD93F9" highlight = "#BD93F9"
origin = bottom-right origin = bottom-right
# Testing:
mouse_left_click = do_action, close_current
mouse_middle_click = do_action, close_current
mouse_right_click = close_all
[urgency_low] [urgency_low]
background = "#20212C6A" background = "#20212C6A"
foreground = "#C0CAF5" foreground = "#C0CAF5"

View File

@@ -1,57 +0,0 @@
#!/usr/bin/env python3
from dataclasses import dataclass
import subprocess
import sys
import os
import time
battery_state = {"Discharging": False, "Charging": True}
@dataclass(slots=True)
class Battery:
percent: int
power_plugged: bool
def sensors_battery(base_path: str) -> Battery:
with open(base_path + "capacity", "r") as c, open(base_path + "status", "r") as s:
return Battery(
percent=int(c.read().strip()), power_plugged=battery_state[s.read().strip()]
)
def main(sleep_time: int, base_path: str):
while True:
if sensors_battery(base_path).power_plugged:
os.system('notify-send -u normal -r "6896" "Battery" "Charging"')
while sensors_battery(base_path).power_plugged:
time.sleep(sleep_time)
os.system('notify-send -u normal -r "6896" "Battery" "Discharging"')
elif sensors_battery(base_path).percent <= 15:
os.system('notify-send -u critical -r "6896" "Battery" "Low battery alarm"')
while (
not sensors_battery(base_path).power_plugged
or sensors_battery(base_path).percent > 5
):
time.sleep(sleep_time)
if sensors_battery(base_path).percent <= 5:
os.system("systemctl suspend")
time.sleep(60)
time.sleep(sleep_time)
if __name__ == "__main__":
service_name = "BSC"
base_path = "/sys/class/power_supply/BAT0/"
if not os.path.exists(base_path):
sys.stdout.write("Can't get battery info\n")
sys.stdout.flush()
sys.exit(1)
if subprocess.run(["pgrep", service_name]).returncode != 1:
sys.stdout.write("Process alredy exists\n")
sys.stdout.flush()
sys.exit(1)
with open("/proc/self/comm", "w") as f:
f.write(service_name)
main(2, base_path)

View File

@@ -1,5 +0,0 @@
#!/bin/bash
asusctl profile -n
notify-send -i $HOME/.config/dunst/scripts/icons/performance.svg -u low -r "3378455" "$(asusctl profile -p | grep Active | sed 's/^.*is //')"

View File

@@ -1,10 +0,0 @@
#!/bin/bash
msgId="3378455"
brightnessctl "$@" >/dev/null
brightpercent=$(ddcutil -d 1 getvcp 10 | sed 's/^.*current value = //' | sed 's/, max.*//')
notify-send -i $HOME/.config/dunst/scripts/icons/brightness.svg -a "changeBrightness" -u low -r "$msgId" \
-h int:value:"$brightpercent" "Яркость экрана: $brightpercent%"

View File

@@ -1,8 +0,0 @@
#!/bin/bash
msgId="3378455"
brightpercent=$(brightnessctl -m --class='backlight' | awk -F, '{print substr($4, 0, length($4)-1)}')
notify-send -i $HOME/.config/dunst/scripts/icons/brightness.svg -a "changeBrightness" -u low -r "$msgId" \
-h int:value:"$brightpercent" "Яркость экрана: $brightpercent%"

View File

@@ -1,11 +0,0 @@
#!/bin/bash
msgId="3378455"
station=$(wpctl get-volume @DEFAULT_AUDIO_SOURCE@ | sed 's/Volume://' | tr -d [:digit:] | tr -d ' .[]')
if [ $station = 'MUTED' ]; then
notify-send -i "$HOME/.config/dunst/scripts/icons/mic off.svg" -u low -r "$msgId" "Микрофон выключен"
else
notify-send -i "$HOME/.config/dunst/scripts/icons/mic on.svg" -u low -r "$msgId" "Микрофон включен"
fi

View File

@@ -1,11 +0,0 @@
#!/bin/bash
sleep 0.7
msgId="3378455"
artist=$(playerctl metadata artist)
title=$(playerctl metadata title)
image=$(playerctl metadata mpris:artUrl)
notify-send -u low -r "$msgId" "$artist" "$title" -i "$image"

View File

@@ -1,11 +0,0 @@
#!/bin/bash
msgId="3378455"
wpctl set-mute @DEFAULT_AUDIO_SINK@ 0
volume=$(wpctl get-volume @DEFAULT_AUDIO_SINK@ | sed 's/Volume://' |
sed 's/ 0.//' | tr -d ' .')
notify-send -i $HOME/.config/dunst/scripts/icons/volume.svg -a "changevolume" -u low -r "$msgId" \
-h int:value:"$volume" "Громкость: $volume%"

View File

@@ -1,11 +0,0 @@
#!/bin/bash
msgId="3378455"
station=$(wpctl get-volume @DEFAULT_AUDIO_SINK@ | sed 's/Volume://' | tr -d [:digit:] | tr -d ' .[]')
if [ $station = 'MUTED' ]; then
notify-send -i "$HOME/.config/dunst/scripts/icons/volume mute.svg" -u low -r "$msgId" "Звук выключен"
else
notify-send -i "$HOME/.config/dunst/scripts/icons/volume.svg" -u low -r "$msgId" "Звук включен"
fi

View File

@@ -1,4 +0,0 @@
<svg width="96" height="96" viewBox="0 0 96 96" fill="none" xmlns="http://www.w3.org/2000/svg">
<circle cx="48" cy="48" r="46" stroke="#DADAFF" stroke-width="4"/>
<path fill-rule="evenodd" clip-rule="evenodd" d="M77.4659 56.4963C72.3197 61.1593 65.4916 64 58 64C41.9837 64 29 51.0163 29 35C29 30.4645 30.0412 26.1723 31.8975 22.3491C24.1027 27.7673 19 36.7877 19 47C19 63.5685 32.4315 77 49 77C62.2497 77 73.4931 68.4106 77.4659 56.4963Z" fill="#DADAFF"/>
</svg>

Before

Width:  |  Height:  |  Size: 463 B

View File

@@ -1,5 +0,0 @@
<svg width="96" height="96" viewBox="0 0 96 96" fill="none" xmlns="http://www.w3.org/2000/svg">
<circle cx="48" cy="48" r="46" stroke="#DADAFF" stroke-width="4"/>
<path fill-rule="evenodd" clip-rule="evenodd" d="M52.7369 24.4674L48 16L43.2631 24.4674C44.7944 24.1608 46.3784 24 48 24C49.6216 24 51.2056 24.1608 52.7369 24.4674ZM55.6661 25.2504C58.7219 26.2798 61.5025 27.9075 63.8685 29.9943L64 20.2872L55.6661 25.2504ZM66.0057 32.1315C68.0925 34.4975 69.7202 37.2781 70.7496 40.3339L75.7128 32L66.0057 32.1315ZM71.5326 43.2631C71.8392 44.7944 72 46.3784 72 48C72 49.6216 71.8392 51.2056 71.5326 52.7369L80 48L71.5326 43.2631ZM70.7496 55.6661C69.7202 58.7219 68.0925 61.5025 66.0057 63.8685L75.7128 64L70.7496 55.6661ZM63.8685 66.0057C61.5025 68.0925 58.7219 69.7202 55.6661 70.7496L64 75.7128L63.8685 66.0057ZM52.7369 71.5326C51.2056 71.8392 49.6216 72 48 72C46.3784 72 44.7944 71.8392 43.2631 71.5326L48 80L52.7369 71.5326ZM40.3339 70.7496C37.2781 69.7202 34.4975 68.0925 32.1315 66.0057L32 75.7128L40.3339 70.7496ZM29.9943 63.8685C27.9075 61.5025 26.2798 58.7219 25.2504 55.6661L20.2872 64L29.9943 63.8685ZM24.4674 52.7369C24.1608 51.2056 24 49.6216 24 48C24 46.3784 24.1608 44.7944 24.4674 43.2631L16 48L24.4674 52.7369ZM25.2504 40.3339C26.2798 37.2781 27.9075 34.4975 29.9943 32.1315L20.2872 32L25.2504 40.3339ZM32.1315 29.9943C34.4975 27.9075 37.2781 26.2798 40.3339 25.2504L32 20.2872L32.1315 29.9943Z" fill="#DADAFF"/>
<circle cx="48" cy="48" r="20" fill="#DADAFF"/>
</svg>

Before

Width:  |  Height:  |  Size: 1.4 KiB

View File

@@ -1,5 +0,0 @@
<svg width="96" height="96" viewBox="0 0 96 96" fill="none" xmlns="http://www.w3.org/2000/svg">
<circle cx="48" cy="48" r="46" stroke="#DADAFF" stroke-width="4"/>
<path fill-rule="evenodd" clip-rule="evenodd" d="M41 42.7846V50C41 53.866 44.134 57 48 57C48.3926 57 48.7777 56.9677 49.1527 56.9055L41 42.7846ZM50.2049 58.7279C49.4993 58.9056 48.7607 59 48 59C43.0294 59 39 54.9706 39 50V41H35V50C35 56.1472 39.2666 61.2978 45 62.6521V69H41C39.8954 69 39 69.8954 39 71V72C39 73.1046 39.8954 74 41 74H55C56.1046 74 57 73.1046 57 72V71C57 70.729 56.9461 70.4706 56.8484 70.2349L56.5884 69.7845C56.2229 69.3076 55.6474 69 55 69H51V62.6521C51.4283 62.551 51.8485 62.4286 52.2593 62.2862L50.2049 58.7279ZM58.6821 57.411L56.3483 53.3687C56.7686 52.3282 57 51.1911 57 50V41H61V50C61 52.7543 60.1434 55.3086 58.6821 57.411ZM54.9391 50.9278L41.4412 27.5488C42.4346 24.8917 44.9964 23 48 23C51.866 23 55 26.134 55 30V50C55 50.3145 54.9793 50.6242 54.9391 50.9278Z" fill="#DADAFF"/>
<rect x="31.7321" y="22.7321" width="4" height="60" rx="2" transform="rotate(-30 31.7321 22.7321)" fill="#DADAFF"/>
</svg>

Before

Width:  |  Height:  |  Size: 1.1 KiB

View File

@@ -1,6 +0,0 @@
<svg width="96" height="96" viewBox="0 0 96 96" fill="none" xmlns="http://www.w3.org/2000/svg">
<circle cx="48" cy="48" r="46" stroke="#DADAFF" stroke-width="4"/>
<path fill-rule="evenodd" clip-rule="evenodd" d="M35 41V50C35 57.1797 40.8203 63 48 63C55.1797 63 61 57.1797 61 50V41H57V50C57 54.9706 52.9706 59 48 59C43.0294 59 39 54.9706 39 50V41H35Z" fill="#DADAFF"/>
<rect x="41" y="23" width="14" height="34" rx="7" fill="#DADAFF"/>
<path d="M45 62C45 60.3431 46.3431 59 48 59C49.6569 59 51 60.3431 51 62V69H55C56.1046 69 57 69.8954 57 71V72C57 73.1046 56.1046 74 55 74H41C39.8954 74 39 73.1046 39 72V71C39 69.8954 39.8954 69 41 69H45V62Z" fill="#DADAFF"/>
</svg>

Before

Width:  |  Height:  |  Size: 666 B

View File

@@ -1,5 +0,0 @@
<svg width="96" height="96" viewBox="0 0 96 96" fill="none" xmlns="http://www.w3.org/2000/svg">
<circle cx="48" cy="48" r="46" stroke="#DADAFF" stroke-width="4"/>
<rect x="27" y="26" width="14" height="44" rx="5" fill="#DADAFF"/>
<rect x="55" y="26" width="14" height="44" rx="5" fill="#DADAFF"/>
</svg>

Before

Width:  |  Height:  |  Size: 304 B

View File

@@ -1,7 +0,0 @@
<svg width="96" height="96" viewBox="0 0 96 96" fill="none" xmlns="http://www.w3.org/2000/svg">
<circle cx="48" cy="48" r="46" stroke="#DADAFF" stroke-width="4"/>
<path fill-rule="evenodd" clip-rule="evenodd" d="M45.6067 29.1493C37.8559 30.1233 31.5581 35.7664 29.6184 43.1731C33.2686 38.3283 38.7898 34.9726 45.1082 34.18L45.6067 29.1493Z" fill="#DADAFF"/>
<path d="M47.4074 28.241C47.4675 27.5068 48.5422 27.506 48.6033 28.2401L49.9458 44.3502C49.975 44.7 49.6989 45 49.3479 45H46.687C46.3363 45 46.0604 44.7006 46.089 44.3511L47.4074 28.241Z" fill="#DADAFF"/>
<circle cx="48" cy="48" r="4" fill="#DADAFF"/>
<path fill-rule="evenodd" clip-rule="evenodd" d="M71.4823 52.0165C70.4916 51.7527 69.849 50.7882 69.9301 49.7662C69.9764 49.1835 70 48.5945 70 48C70 35.8497 60.1503 26 48 26C35.8497 26 26 35.8497 26 48C26 50.5505 26.434 52.9996 27.2322 55.2776C27.5714 56.2457 27.1989 57.3416 26.308 57.85V57.85C25.293 58.4291 23.9814 58.0417 23.5794 56.9444C22.5577 54.1556 22 51.1429 22 48C22 33.6406 33.6406 22 48 22C62.3594 22 74 33.6406 74 48C74 48.8239 73.9617 49.6388 73.8867 50.4431C73.7783 51.6068 72.6116 52.3173 71.4823 52.0165V52.0165Z" fill="#DADAFF"/>
</svg>

Before

Width:  |  Height:  |  Size: 1.1 KiB

View File

@@ -1,4 +0,0 @@
<svg width="96" height="96" viewBox="0 0 96 96" fill="none" xmlns="http://www.w3.org/2000/svg">
<circle cx="48" cy="48" r="46" stroke="#DADAFF" stroke-width="4"/>
<path d="M68.177 43.6339C71.5947 45.5414 71.5947 50.4586 68.177 52.3661L38.4367 68.9643C35.1039 70.8243 31 68.4149 31 64.5982V31.4018C31 27.5851 35.1039 25.1757 38.4367 27.0357L68.177 43.6339Z" fill="#DADAFF"/>
</svg>

Before

Width:  |  Height:  |  Size: 381 B

View File

@@ -1,5 +0,0 @@
<svg width="96" height="96" viewBox="0 0 96 96" fill="none" xmlns="http://www.w3.org/2000/svg">
<circle cx="48" cy="48" r="46" stroke="#DADAFF" stroke-width="4"/>
<path d="M22 48L22 42C22 39.2386 24.2386 37 27 37H32.0292C33.2956 37 34.5149 36.5194 35.4408 35.6553L45.6354 26.1403C46.9138 24.9471 49 25.8537 49 27.6024V68.3976C49 70.1463 46.9138 71.0529 45.6354 69.8597L35.4408 60.3447C34.5149 59.4806 33.2956 59 32.0292 59H27C24.2386 59 22 56.7614 22 54V48Z" fill="#DADAFF"/>
<path fill-rule="evenodd" clip-rule="evenodd" d="M52.0442 43.1462C51.2482 43.9121 51.2741 45.178 51.6698 46.2094C51.8831 46.7653 52 47.369 52 48C52 48.631 51.8831 49.2347 51.6698 49.7906C51.2741 50.822 51.2482 52.0879 52.0442 52.8538V52.8538C52.8401 53.6196 54.1295 53.6031 54.7021 52.6586C55.5258 51.2996 56 49.7052 56 48C56 46.2948 55.5258 44.7004 54.7021 43.3414C54.1295 42.3969 52.8401 42.3804 52.0442 43.1462V43.1462Z" fill="#DADAFF"/>
</svg>

Before

Width:  |  Height:  |  Size: 924 B

View File

@@ -1,6 +0,0 @@
<svg width="96" height="96" viewBox="0 0 96 96" fill="none" xmlns="http://www.w3.org/2000/svg">
<circle cx="48" cy="48" r="46" stroke="#DADAFF" stroke-width="4"/>
<path d="M22 48L22 42C22 39.2386 24.2386 37 27 37H32.0292C33.2956 37 34.5149 36.5194 35.4408 35.6553L45.6354 26.1403C46.9138 24.9471 49 25.8537 49 27.6024V68.3976C49 70.1463 46.9138 71.0529 45.6354 69.8597L35.4408 60.3447C34.5149 59.4806 33.2956 59 32.0292 59H27C24.2386 59 22 56.7614 22 54V48Z" fill="#DADAFF"/>
<path fill-rule="evenodd" clip-rule="evenodd" d="M60.5359 50L54.2679 60.8564C53.7156 61.813 54.0434 63.0362 55 63.5885C55.9566 64.1407 57.1797 63.813 57.732 62.8564L62.8453 54L60.5359 50ZM67.4641 46L73.732 35.1436C74.2843 34.187 73.9566 32.9638 73 32.4115C72.0434 31.8593 70.8202 32.187 70.2679 33.1436L65.1547 42L67.4641 46Z" fill="#DADAFF"/>
<rect x="53.2679" y="33.4115" width="4" height="36" rx="2" transform="rotate(-30 53.2679 33.4115)" fill="#DADAFF"/>
</svg>

Before

Width:  |  Height:  |  Size: 943 B

View File

@@ -1,7 +0,0 @@
<svg width="96" height="96" viewBox="0 0 96 96" fill="none" xmlns="http://www.w3.org/2000/svg">
<circle cx="48" cy="48" r="46" stroke="#DADAFF" stroke-width="4"/>
<path d="M22 48L22 42C22 39.2386 24.2386 37 27 37H32.0292C33.2956 37 34.5149 36.5194 35.4408 35.6553L45.6354 26.1403C46.9138 24.9471 49 25.8537 49 27.6024V68.3976C49 70.1463 46.9138 71.0529 45.6354 69.8597L35.4408 60.3447C34.5149 59.4806 33.2956 59 32.0292 59H27C24.2386 59 22 56.7614 22 54V48Z" fill="#DADAFF"/>
<path fill-rule="evenodd" clip-rule="evenodd" d="M52.0442 43.1462C51.2482 43.9121 51.2741 45.178 51.6698 46.2094C51.8831 46.7653 52 47.369 52 48C52 48.631 51.8831 49.2347 51.6698 49.7906C51.2741 50.822 51.2482 52.0879 52.0442 52.8538V52.8538C52.8401 53.6196 54.1295 53.6031 54.7021 52.6586C55.5258 51.2996 56 49.7052 56 48C56 46.2948 55.5258 44.7004 54.7021 43.3414C54.1295 42.3969 52.8401 42.3804 52.0442 43.1462V43.1462Z" fill="#DADAFF"/>
<path fill-rule="evenodd" clip-rule="evenodd" d="M57.8089 37.5992C57.0129 38.3651 57.0035 39.6242 57.6392 40.5276C59.1267 42.6415 60.0001 45.2188 60.0001 48C60.0001 50.7812 59.1267 53.3585 57.6392 55.4724C57.0035 56.3758 57.0129 57.6349 57.8089 58.4008V58.4008C58.6047 59.1666 59.8816 59.1486 60.5493 58.2688C62.7149 55.4159 64.0001 51.858 64.0001 48C64.0001 44.142 62.7149 40.5841 60.5493 37.7312C59.8816 36.8514 58.6047 36.8334 57.8089 37.5992V37.5992Z" fill="#DADAFF"/>
<path fill-rule="evenodd" clip-rule="evenodd" d="M63.5735 32.0522C62.7775 32.8181 62.7617 34.079 63.449 34.9438C66.298 38.5283 68 43.0654 68 48C68 52.9346 66.298 57.4717 63.449 61.0562C62.7617 61.921 62.7775 63.1819 63.5735 63.9478V63.9478C64.3693 64.7136 65.6422 64.6941 66.3425 63.84C69.8781 59.5276 72 54.0116 72 48C72 41.9884 69.8781 36.4724 66.3425 32.16C65.6422 31.3059 64.3693 31.2864 63.5735 32.0522V32.0522Z" fill="#DADAFF"/>
</svg>

Before

Width:  |  Height:  |  Size: 1.8 KiB

View File

@@ -1,5 +1,6 @@
# Wallpaper # Wallpaper
env = WALLPAPER,$HOME/Pictures/Wallpapers/Arcane/Jinx/jinx-fog.png # env = WALLPAPER,$HOME/Pictures/Wallpapers/Arcane/Jinx/jinx-fog.png
env = WALLPAPER,$HOME/Pictures/Wallpapers/Scapes/Deserts/desert-night.jpg
# Lockscreen wallpaper # Lockscreen wallpaper
env = LOCK_WALLPAPER,$HOME/Pictures/Wallpapers/Arcane/Scenes/arcane-airship.png env = LOCK_WALLPAPER,$HOME/Pictures/Wallpapers/Arcane/Scenes/arcane-airship.png

View File

@@ -1,8 +1,9 @@
# System # System
# Initialize dbus # Initialize dbus
exec-once = dbus-update-activation-environment --systemd WAYLAND_DISPLAY XDG_CURRENT_DESKTOP exec-once = dbus-update-activation-environment --systemd WAYLAND_DISPLAY XDG_CURRENT_DESKTOP
# Set workspace 100 for the scroll-left support # Set workspaces to hundreds for the scroll-to-left support
exec-once = bash -c "sleep 1 && for monitor in $(hyprctl monitors -j | jq -r '.[].name'); do hyprctl dispatch workspace 100 && hyprctl dispatch focusworkspaceoncurrentmonitor 100; done" # exec-once = bash -c "sleep 1 && for monitor in $(hyprctl monitors -j | jq -r '.[].name'); do hyprctl dispatch workspace 100 && hyprctl dispatch focusworkspaceoncurrentmonitor 100; done"
exec-once = ~/.config/hypr/scripts/set-workspaces.sh
# Initialize sleep # Initialize sleep
exec-once = uwsm app -- systemd-inhibit --who="Hyprland config" --why="wlogout keybind" --what=handle-power-key --mode=block sleep infinity exec-once = uwsm app -- systemd-inhibit --who="Hyprland config" --why="wlogout keybind" --what=handle-power-key --mode=block sleep infinity
@@ -26,6 +27,6 @@ exec-once = uwsm app -- waybar
# Extra # Extra
# Color correction # Color correction
exec-once = uwsm app -- ~/.config/hypr/scripts/color-correction.sh exec-once = ~/.config/hypr/scripts/color-correction.sh
# Apply GTK themes # Apply GTK themes
exec-once = nwg-look -a exec-once = nwg-look -a

View File

@@ -2,7 +2,8 @@
$mainMod = SUPER $mainMod = SUPER
# change layout that supports no shift retapping # change layout that supports no shift retapping
bindl = ALT, Shift_L, exec, hyprctl switchxkblayout main next bindln = Shift_L, ALT_L, exec, hyprctl switchxkblayout main next
bindln = ALT_L, Shift_L, exec, hyprctl switchxkblayout main next
# Toggle performance mode # Toggle performance mode
@@ -30,12 +31,19 @@ bind = $mainMod, Q, exec, kitty
bind = $mainMod, E, exec, thunar bind = $mainMod, E, exec, thunar
bind = $mainMod, R, exec, rofi -show drun -terminal kitty -no-history -matching prefix -drun-match-fields name -no-tokenize bind = $mainMod, R, exec, rofi -show drun -terminal kitty -no-history -matching prefix -drun-match-fields name -no-tokenize
bind = $mainMod SHIFT, R, exec, ~/.config/rofi/network-manager/run-manager.sh bind = $mainMod SHIFT, R, exec, ~/.config/rofi/network-manager/run-manager.sh
bind = $mainMod, C, exec, hyprpicker -a bind = $mainMod, S, exec, hyprpicker -a
bind = $mainMod, C, exec, dunstctl close-all
# copy binds # clipboard binds
bind = $mainMod, V, exec, rofi -modi clipboard:/$HOME/.config/rofi/clipboard/cliphist-rofi-img.sh -show clipboard -show-icon -config ~/.config/rofi/clipboard-config.rasi bind = $mainMod, V, exec, rofi -modi clipboard:/$HOME/.config/rofi/clipboard/cliphist-rofi-img.sh -show clipboard -show-icon -config ~/.config/rofi/clipboard-config.rasi
bind = $mainMod SHIFT, S, exec, IMG=~/Pictures/Screenshots/$(date +%Y-%m-%d_%H-%m-%s).png && grim -g "$(slurp)" $IMG && wl-copy < $IMG
# screenshot binds
# no screen freeze
# bind = $mainMod SHIFT, S, exec, IMG=~/Pictures/Screenshots/$(date +%Y-%m-%d_%H-%m-%s).png && grim -g "$(slurp)" $IMG && wl-copy < $IMG
# screen freeze
bind = $mainMod SHIFT, S, exec, hyprpicker -r -z & sleep 0.2; IMG=~/Pictures/Screenshots/$(date +%Y-%m-%d_%H-%m-%s).png && grim -g "$(slurp)" $IMG && wl-copy < $IMG; kill $!
bind = , PRINT, exec, grim - | wl-copy bind = , PRINT, exec, grim - | wl-copy
@@ -115,6 +123,10 @@ binde = $mainMod CTRL, j, resizeactive, 0 30
binde = $mainMod CTRL, k, resizeactive, 0 -30 binde = $mainMod CTRL, k, resizeactive, 0 -30
# Focus on initial workspace (TODO: different for monitors)
bind = $mainMod, 0, focusworkspaceoncurrentmonitor, 100
# Switch workspaces # Switch workspaces
binde = $mainMod, A, exec, .config/hypr/scripts/workspace-handler.sh change previous binde = $mainMod, A, exec, .config/hypr/scripts/workspace-handler.sh change previous
binde = $mainMod, D, exec, .config/hypr/scripts/workspace-handler.sh change next binde = $mainMod, D, exec, .config/hypr/scripts/workspace-handler.sh change next
@@ -129,5 +141,5 @@ binde = $mainMod CTRL SHIFT, A, movetoworkspace, r-1
binde = $mainMod CTRL SHIFT, D, movetoworkspace, r+1 binde = $mainMod CTRL SHIFT, D, movetoworkspace, r+1
# Swap worlspaces between monitors # Swap workspaces between monitors
bind = $mainMod, TAB, swapactiveworkspaces, 1 0 bind = $mainMod, TAB, swapactiveworkspaces, 1 0

View File

@@ -1,3 +1,8 @@
# Apps
env = EDITOR,nvim
env = TERMINAL,kitty
# GTK theme # GTK theme
env = GTK_THEME,Colloid-Transparent-Dracula env = GTK_THEME,Colloid-Transparent-Dracula
@@ -21,6 +26,7 @@ env = MOZ_ENABLE_WAYLAND,1
# chrome --enable-features=TouchpadOverscrollHistoryNavigation # chrome --enable-features=TouchpadOverscrollHistoryNavigation
# Scaling # Scaling
env = GDK_SCALE,1 env = GDK_SCALE,1
xwayland { xwayland {

View File

@@ -6,3 +6,4 @@ monitor = eDP-1, prefered, auto, 1
# custom # custom
monitor = desc:Communications Supply Corporation (A division of WESCO) P120ZDG-BF4, 2160x1440@60, auto, 1.33333334 monitor = desc:Communications Supply Corporation (A division of WESCO) P120ZDG-BF4, 2160x1440@60, auto, 1.33333334
monitor = desc:AU Optronics 0x243D, 1920x1080@60, 0x0, 1, bitdepth, 10 monitor = desc:AU Optronics 0x243D, 1920x1080@60, 0x0, 1, bitdepth, 10
monitor = desc:Samsung Electric Company Q85A 0x01000E00, 2560x1440@59.95, auto, 1

View File

@@ -0,0 +1,20 @@
# Splashes
ecosystem {
no_update_news = true
no_donation_nag = true
}
# render
render {
direct_scanout = 2 # maybe change it to 0 (default)
}
# Misc
misc {
disable_hyprland_logo = true
disable_splash_rendering = true
mouse_move_enables_dpms = true
key_press_enables_dpms = true
initial_workspace_tracking = 2
session_lock_xray = false
}

View File

@@ -1,16 +1,3 @@
# Splashes
ecosystem {
no_update_news = true
no_donation_nag = true
}
misc {
disable_hyprland_logo = true
disable_splash_rendering = true
key_press_enables_dpms = true
}
# General config # General config
general { general {
gaps_in = 3 gaps_in = 3
@@ -22,13 +9,15 @@ general {
} }
dwindle { dwindle {
pseudotile = yes # pseudotile = yes
preserve_split = yes preserve_split = yes
# smart_split = no # smart_split = no
} }
cursor { cursor {
inactive_timeout = 2 inactive_timeout = 2
hide_on_key_press = true
hide_on_touch = true
} }

View File

View File

@@ -5,4 +5,4 @@ msgId="3378455"
volume=$(pactl get-sink-volume @DEFAULT_SINK@ | grep -Eo [0-9]+% | head -1) volume=$(pactl get-sink-volume @DEFAULT_SINK@ | grep -Eo [0-9]+% | head -1)
notify-send -i $HOME/.config/hypr/scripts/dunst/icons/volume-down.svg -a "changevolume" -u low -r "$msgId" \ notify-send -i $HOME/.config/hypr/scripts/dunst/icons/volume-down.svg -a "changevolume" -u low -r "$msgId" \
-h int:value:"$volume" "Громкость: $volume%" -h int:value:"$volume" "Громкость: $volume"

View File

@@ -8,4 +8,4 @@ msgId="3378455"
volume=$(pactl get-sink-volume @DEFAULT_SINK@ | grep -Eo [0-9]+% | head -1) volume=$(pactl get-sink-volume @DEFAULT_SINK@ | grep -Eo [0-9]+% | head -1)
notify-send -i $HOME/.config/hypr/scripts/dunst/icons/volume.svg -a "changevolume" -u low -r "$msgId" \ notify-send -i $HOME/.config/hypr/scripts/dunst/icons/volume.svg -a "changevolume" -u low -r "$msgId" \
-h int:value:"$volume" "Громкость: $volume%" -h int:value:"$volume" "Громкость: $volume"

View File

@@ -0,0 +1,19 @@
#!/bin/bash
# Get current monitor
current_monitor=$(hyprctl monitors -j | jq -r '.[] | select(.focused == true) | .name')
# Fallback
if [ -z "$current_monitor" ]; then
current_monitor=$(hyprctl monitors -j | jq -r '.[0].name')
fi
# Set workspaces
count=1
while IFS= read -r mon; do
ws=$((count * 100))
hyprctl --batch "dispatch focusmonitor $mon; dispatch workspace $ws"
count=$((count + 1))
done < <(hyprctl monitors -j | jq -r '.[].name')
# Return focus
hyprctl dispatch focusmonitor "$current_monitor"

View File

@@ -0,0 +1,12 @@
#!/bin/bash
msgId="3378455"
if pgrep -f "systemd-inhibit --what=handle-lid-switch" > /dev/null; then
pkill -f "systemd-inhibit --what=handle-lid-switch"
# notify-send -u low -r "$msgId" "Lid Sleep" "Do Not Sleep on lid close DISABLED"
else
systemd-inhibit --what=handle-lid-switch --who="Lid Toggle Script" --why="User toggled lid sleep off" --mode=block sleep infinity &
# notify-send -u low -r "$msgId" "Lid Sleep" "Do Not Sleep on lid close ENABLED"
fi
pkill -RTMIN+10 waybar

View File

@@ -1,5 +1,4 @@
require("config.lazy") require("config.lazy")
require("config.config") require("config.config")
require("config.options")
require("config.key_binds") require("config.key_binds")
require("config.clipboard") require("config.clipboard")

View File

@@ -3,15 +3,15 @@
"catppuccin": { "branch": "main", "commit": "426dbebe06b5c69fd846ceb17b42e12f890aedf1" }, "catppuccin": { "branch": "main", "commit": "426dbebe06b5c69fd846ceb17b42e12f890aedf1" },
"cmp-buffer": { "branch": "main", "commit": "b74fab3656eea9de20a9b8116afa3cfc4ec09657" }, "cmp-buffer": { "branch": "main", "commit": "b74fab3656eea9de20a9b8116afa3cfc4ec09657" },
"cmp-nvim-lsp": { "branch": "main", "commit": "cbc7b02bb99fae35cb42f514762b89b5126651ef" }, "cmp-nvim-lsp": { "branch": "main", "commit": "cbc7b02bb99fae35cb42f514762b89b5126651ef" },
"conform.nvim": { "branch": "master", "commit": "086a40dc7ed8242c03be9f47fbcee68699cc2395" }, "conform.nvim": { "branch": "master", "commit": "dca1a190aa85f9065979ef35802fb77131911106" },
"dressing.nvim": { "branch": "master", "commit": "2d7c2db2507fa3c4956142ee607431ddb2828639" }, "dressing.nvim": { "branch": "master", "commit": "2d7c2db2507fa3c4956142ee607431ddb2828639" },
"flutter-tools.nvim": { "branch": "main", "commit": "677cc07c16e8b89999108d2ebeefcfc5f539b73c" }, "flutter-tools.nvim": { "branch": "main", "commit": "7fc434e99297af83cba10deff008be53a008a6d5" },
"harpoon": { "branch": "harpoon2", "commit": "87b1a3506211538f460786c23f98ec63ad9af4e5" }, "harpoon": { "branch": "harpoon2", "commit": "87b1a3506211538f460786c23f98ec63ad9af4e5" },
"harpoon-lualine": { "branch": "master", "commit": "215c0847dfb787b19268f7b42eed83bdcf06b966" }, "harpoon-lualine": { "branch": "master", "commit": "215c0847dfb787b19268f7b42eed83bdcf06b966" },
"indent-blankline.nvim": { "branch": "master", "commit": "d28a3f70721c79e3c5f6693057ae929f3d9c0a03" }, "indent-blankline.nvim": { "branch": "master", "commit": "d28a3f70721c79e3c5f6693057ae929f3d9c0a03" },
"lazy.nvim": { "branch": "main", "commit": "306a05526ada86a7b30af95c5cc81ffba93fef97" }, "lazy.nvim": { "branch": "main", "commit": "306a05526ada86a7b30af95c5cc81ffba93fef97" },
"lualine.nvim": { "branch": "master", "commit": "a905eeebc4e63fdc48b5135d3bf8aea5618fb21c" }, "lualine.nvim": { "branch": "master", "commit": "a905eeebc4e63fdc48b5135d3bf8aea5618fb21c" },
"mini.nvim": { "branch": "main", "commit": "5849ef04c32a6a8e55957b946c0a275801d87530" }, "mini.nvim": { "branch": "main", "commit": "4f6f84a96b076747b736d100388a8d7844771d7d" },
"neo-tree.nvim": { "branch": "main", "commit": "4d0828d95adaf4250c1373d2cd9318d3509712b7" }, "neo-tree.nvim": { "branch": "main", "commit": "4d0828d95adaf4250c1373d2cd9318d3509712b7" },
"nui.nvim": { "branch": "main", "commit": "de740991c12411b663994b2860f1a4fd0937c130" }, "nui.nvim": { "branch": "main", "commit": "de740991c12411b663994b2860f1a4fd0937c130" },
"nvim-autopairs": { "branch": "master", "commit": "59bce2eef357189c3305e25bc6dd2d138c1683f5" }, "nvim-autopairs": { "branch": "master", "commit": "59bce2eef357189c3305e25bc6dd2d138c1683f5" },
@@ -19,7 +19,7 @@
"nvim-dap": { "branch": "master", "commit": "45a69eba683a2c448dd9ecfc4de89511f0646b5f" }, "nvim-dap": { "branch": "master", "commit": "45a69eba683a2c448dd9ecfc4de89511f0646b5f" },
"nvim-dap-python": { "branch": "master", "commit": "1808458eba2b18f178f990e01376941a42c7f93b" }, "nvim-dap-python": { "branch": "master", "commit": "1808458eba2b18f178f990e01376941a42c7f93b" },
"nvim-dap-ui": { "branch": "master", "commit": "1a66cabaa4a4da0be107d5eda6d57242f0fe7e49" }, "nvim-dap-ui": { "branch": "master", "commit": "1a66cabaa4a4da0be107d5eda6d57242f0fe7e49" },
"nvim-lspconfig": { "branch": "master", "commit": "e146efacbafed3789ac568abcc5a981c5decaa58" }, "nvim-lspconfig": { "branch": "master", "commit": "8fde495949782bb61c2605174e231d145a048d8c" },
"nvim-nio": { "branch": "master", "commit": "21f5324bfac14e22ba26553caf69ec76ae8a7662" }, "nvim-nio": { "branch": "master", "commit": "21f5324bfac14e22ba26553caf69ec76ae8a7662" },
"nvim-treesitter": { "branch": "main", "commit": "4916d6592ede8c07973490d9322f187e07dfefac" }, "nvim-treesitter": { "branch": "main", "commit": "4916d6592ede8c07973490d9322f187e07dfefac" },
"nvim-web-devicons": { "branch": "master", "commit": "c72328a5494b4502947a022fe69c0c47e53b6aa6" }, "nvim-web-devicons": { "branch": "master", "commit": "c72328a5494b4502947a022fe69c0c47e53b6aa6" },

View File

@@ -1,9 +1,3 @@
-- clipboard.lua will be edited by the bash command
-- it will be replaced with one of the files from templates/clipboard/ directory
vim.o.clipboard = "unnamedplus" vim.o.clipboard = "unnamedplus"
-- vim.api.nvim_create_autocmd("TextYankPost", {
-- callback = function()
-- local copy_to_unnamedplus = require("vim.ui.clipboard.osc52").copy("+")
-- copy_to_unnamedplus(vim.v.event.regcontents)
-- local copy_to_unnamed = require("vim.ui.clipboard.osc52").copy("*")
-- copy_to_unnamed(vim.v.event.regcontents)
-- end,
-- })

View File

@@ -12,3 +12,17 @@ do
vim.opt[k] = v vim.opt[k] = v
end end
end end
-- More
vim.opt.fixeol = true
vim.opt.list = true
vim.opt.listchars = {
trail = "·",
tab = " ",
}
-- Additional commands for typos
vim.api.nvim_create_user_command("Qa", "qa", {})
vim.api.nvim_create_user_command("QA", "qa", {})
vim.api.nvim_create_user_command("WQa", "qa", {})
vim.api.nvim_create_user_command("Wqa", "qa", {})

View File

@@ -1,6 +0,0 @@
vim.opt.fixeol = true
vim.opt.list = true
vim.opt.listchars = {
trail = "·",
tab = " ",
}

View File

@@ -1,5 +1,5 @@
return { return {
"MeanderingProgrammer/render-markdown.nvim", -- "MeanderingProgrammer/render-markdown.nvim",
dependencies = { "nvim-treesitter/nvim-treesitter", "echasnovski/mini.nvim" }, -- dependencies = { "nvim-treesitter/nvim-treesitter", "echasnovski/mini.nvim" },
opts = {}, -- opts = {},
} }

View File

@@ -1,7 +1,7 @@
{ {
"group/power-group": { "group/power-group": {
"orientation": "horizontal", "orientation": "horizontal",
"modules": ["backlight", "battery"], "modules": ["backlight", "battery", "idle_inhibitor", "custom/lid_sleep"],
}, },
"battery": { "battery": {
@@ -21,4 +21,19 @@
"on-click": "python $HOME/.config/hypr/scripts/awww.py", "on-click": "python $HOME/.config/hypr/scripts/awww.py",
"tooltip-format": "{percent}%", "tooltip-format": "{percent}%",
}, },
"idle_inhibitor": {
"format": "{icon}",
"format-icons": {
"activated": "󰐂",
"deactivated": "󱩜",
},
},
"custom/lid_sleep": {
"format": "{}",
"exec": "pgrep -f 'systemd-inhibit --what=[h]andle-lid-switch' > /dev/null && echo '󱜤' || echo '󱠎'",
"on-click": "~/.config/hypr/scripts/toggle-lid-sleep.sh",
"tooltip": true,
"tooltip-format": "Toggle Lid Sleep",
"signal": 10,
},
} }

View File

@@ -118,6 +118,14 @@ tooltip label {
padding-left: 6px; padding-left: 6px;
} }
#idle_inhibitor {
padding-right: 12px;
}
#custom-lid_sleep {
padding-right: 16px;
}
#bluetooth { #bluetooth {
padding-left: 12px; padding-left: 12px;

View File

@@ -27,6 +27,7 @@ cp -r ~/.bash_profile "$CONFIG_SAVE_DIR/.bash_profile"
cp -r ~/.bashrc "$CONFIG_SAVE_DIR/.bashrc" cp -r ~/.bashrc "$CONFIG_SAVE_DIR/.bashrc"
cp -r ~/.bash_exports "$CONFIG_SAVE_DIR/.bash_exports" cp -r ~/.bash_exports "$CONFIG_SAVE_DIR/.bash_exports"
cp -r ~/.bash_aliases "$CONFIG_SAVE_DIR/.bash_aliases" cp -r ~/.bash_aliases "$CONFIG_SAVE_DIR/.bash_aliases"
cp -r ~/.bash_prompt "$CONFIG_SAVE_DIR/.bash_prompt"
cp -r ~/.ideavimrc "$CONFIG_SAVE_DIR/.ideavimrc" cp -r ~/.ideavimrc "$CONFIG_SAVE_DIR/.ideavimrc"
echo 'Copied configs' echo 'Copied configs'

View File

@@ -1,61 +1,82 @@
#!/bin/bash #!/bin/bash
set -uo pipefail
GREEN='\033[0;32m'
YELLOW='\033[0;33m'
RED='\033[0;31m'
NC='\033[0m'
# ---- Preparing for setup ----
# Testing for sudo access
if ! sudo -v; then
echo -e "${RED}Error: Failed to use sudo.${NC}" >&2
exit 1
fi
# ---- Initial setup ---- # ---- Initial setup ----
# Creating all the directories # Creating all the directories
echo "Creating all the directories...." echo -e "${YELLOW}Creating all the directories....${NC}"
mkdir -p ~/.config/bash mkdir -p "$HOME/.config/bash"
mkdir -p ~/Documents/obsidian/Notes mkdir -p "$HOME/Documents/obsidian/Notes"
mkdir -p ~/Pictures/Screenshots mkdir -p "$HOME/Pictures/Screenshots"
mkdir -p ~/Pictures/Wallpapers mkdir -p "$HOME/Pictures/Wallpapers"
mkdir ~/Downloads mkdir -p "$HOME/Downloads"
mkdir ~/Programming mkdir -p "$HOME/Programming"
mkdir ~/Public mkdir -p "$HOME/Public"
mkdir ~/Music mkdir -p "$HOME/Music"
mkdir ~/Videos mkdir -p "$HOME/Videos"
mkdir ~/config-scripts mkdir -p "$HOME/config-scripts"
mkdir ~/scripts mkdir -p "$HOME/scripts"
mkdir -p ~/tmp/daily mkdir -p "$HOME/tmp/daily"
# Creating extra files # Creating extra files
echo "Creating extra files...." echo -e "${YELLOW}Creating extra files....${NC}"
touch ~/.bash_profile touch "$HOME/.bash_profile"
touch ~/.bash_exports touch "$HOME/.bash_exports"
touch ~/.inputrc touch "$HOME/.inputrc"
touch ~/.bashrc touch "$HOME/.bashrc"
touch ~/.bash_aliases touch "$HOME/.bash_aliases"
touch ~/.bash_private touch "$HOME/.bash_private"
touch "$HOME/.bash_prompt"
# Creating extra links # Creating extra links
echo "Creating extra links...." echo -e "${YELLOW}Creating extra links....${NC}"
ln -s ~/.bash_profile ~/.config/bash/bash_profile ln -sf "$HOME/.bash_profile" "$HOME/.config/bash/bash_profile"
ln -s ~/.bash_exports ~/.config/bash/bash_exports ln -sf "$HOME/.bash_exports" "$HOME/.config/bash/bash_exports"
ln -s ~/.inputrc ~/.config/bash/inputrc ln -sf "$HOME/.inputrc" "$HOME/.config/bash/inputrc"
ln -s ~/.bashrc ~/.config/bash/bashrc ln -sf "$HOME/.bashrc" "$HOME/.config/bash/bashrc"
ln -s ~/.bash_aliases ~/.config/bash/bash_aliases ln -sf "$HOME/.bash_aliases" "$HOME/.config/bash/bash_aliases"
ln -s ~/.bash_private ~/.config/bash/bash_private ln -sf "$HOME/.bash_private" "$HOME/.config/bash/bash_private"
ln -sf "$HOME/.bash_prompt" "$HOME/.config/bash/bash_prompt"
# ---- Packages setup ---- # ---- Packages setup ----
# Updating package databases & installed packages # Updating package databases
echo "Updating package databases & installed packages...." echo -e "${YELLOW}Updating package databases....${NC}"
sudo pacman -Syu --noconfirm sudo pacman -Sy
# Installing the base packages # Installing the base packages
echo "Installing the base packages...." echo -e "${YELLOW}Installing the base packages....${NC}"
sudo pacman -S --needed git base-devel less jq inetutils sudo pacman -S --needed --noconfirm git base-devel less jq inetutils
# Installing extra packages # Installing extra packages
echo "Installing extra packages...." echo -e "${YELLOW}Installing extra packages....${NC}"
sudo pacman -S --noconfirm yadm wl-clipboard hyprland uwsm hypridle hyprlock brightnessctl sudo pacman -S --needed --noconfirm \
sudo pacman -S --noconfirm xdg-desktop-portal-hyprland xdg-desktop-portal xdg-desktop-portal-gtk yadm wl-clipboard hyprland uwsm hypridle hyprlock brightnessctl \
sudo pacman -S --noconfirm rofi waybar dunst awww kitty neovim nwg-look grim slurp xdg-desktop-portal-hyprland xdg-desktop-portal xdg-desktop-portal-gtk \
sudo pacman -S --noconfirm thunar thunar-shares-plugin thunar-archive-plugin thunar-volman rofi waybar dunst awww kitty neovim yazi nwg-look grim slurp \
sudo pacman -S --niconfirm gvfs gvfs-mtp gvfs-afc gvfs-nfs gvfs-smb gvfs-goa gvfs-wsdd gvfs-dnssd gvfs-gphoto2 thunar thunar-shares-plugin thunar-archive-plugin thunar-volman \
gvfs gvfs-mtp gvfs-afc gvfs-nfs gvfs-smb gvfs-goa gvfs-wsdd gvfs-dnssd gvfs-gphoto2
# ---- Config setup ---- # ---- Config setup ----
# This will delete all current dotfiles. Please be careful! # This will delete all current dotfiles. Please be careful!
# Cloning config from git # Cloning config from git
echo "Cloning config from git...." echo -e "${YELLOW}Cloning config from git....${NC}"
yadm clone https://git.frik.su/Beesquit/dotfiles.git yadm clone https://git.frik.su/Beesquit/dotfiles.git
yadm reset --hard origin/main yadm reset --hard origin/main
ya pkg upgrade ya pkg upgrade
# ---- Finished ----
echo -e "${GREEN}The setup is finished!${NC}"

View File

@@ -1,4 +1,6 @@
#!/bin/bash #!/bin/bash
# Installing needed packages
sudo pacman -S --noconfirm --needed git base-devel
# Installing yay # Installing yay
echo "Checking if yay is installed...." echo "Checking if yay is installed...."
if ! command -v yay >/dev/null 2>&1; then if ! command -v yay >/dev/null 2>&1; then

View File

@@ -7,6 +7,7 @@ touch ~/.bashrc
touch ~/.bash_aliases touch ~/.bash_aliases
touch ~/.bash_private touch ~/.bash_private
touch ~/.bash_exports touch ~/.bash_exports
touch ~/.bash_prompt
mkdir -p "$bash_cfg_path" mkdir -p "$bash_cfg_path"
ln -s ~/.inputrc "$bash_cfg_path/inputrc" ln -s ~/.inputrc "$bash_cfg_path/inputrc"
@@ -15,3 +16,4 @@ ln -s ~/.bashrc "$bash_cfg_path/bashrc"
ln -s ~/.bash_aliases "$bash_cfg_path/bash_aliases" ln -s ~/.bash_aliases "$bash_cfg_path/bash_aliases"
ln -s ~/.bash_private "$bash_cfg_path/bash_private" ln -s ~/.bash_private "$bash_cfg_path/bash_private"
ln -s ~/.bash_exports "$bash_cfg_path/bash_exports" ln -s ~/.bash_exports "$bash_cfg_path/bash_exports"
ln -s ~/.bash_prompt "$bash_cfg_path/bash_prompt"

View File

@@ -18,5 +18,6 @@ yadm add ~/.bash_profile
yadm add ~/.bashrc yadm add ~/.bashrc
yadm add ~/.bash_exports yadm add ~/.bash_exports
yadm add ~/.bash_aliases yadm add ~/.bash_aliases
yadm add ~/.bash_prompt
yadm add ~/.ideavimrc yadm add ~/.ideavimrc