who knows lmao

This commit is contained in:
Bryson Steck 2023-09-03 00:13:21 -06:00
parent 3991ac66a5
commit 564505447e
14 changed files with 101 additions and 104 deletions

View file

@ -28,7 +28,7 @@ font:
# family: Scientifica # family: Scientifica
style: Bold Italic style: Bold Italic
size: 11 size: 13.5
offset: offset:
x: 0 x: 0
@ -36,7 +36,7 @@ font:
window: window:
padding: padding:
x: 7 x: 10
y: 7 y: 7
opacity: 0.70 opacity: 0.70
@ -100,7 +100,7 @@ mouse:
# Gruvbox dark # Gruvbox dark
colors: colors:
primary: primary:
background: '#282828' background: '#202020'
# background: '#3c3836' # background: '#3c3836'
# background: '#32302f' # background: '#32302f'
# background: '#000000' # background: '#000000'

View file

@ -61,7 +61,7 @@ alias keys='xset r rate 300 50'
alias gits='git status' alias gits='git status'
alias mac="rm -rf __MACOSX/; rm \$(find . -name '.DS_Store')" alias mac="rm -rf __MACOSX/; rm \$(find . -name '.DS_Store')"
alias super='xmodmap -e "remove mod1 = Alt_L"; xmodmap -e "remove mod4 = Super_L"; xmodmap -e "add mod1 = Super_L"; xmodmap -e "add mod4 = Alt_L"' alias super='xmodmap -e "remove mod1 = Alt_L"; xmodmap -e "remove mod4 = Super_L"; xmodmap -e "add mod1 = Super_L"; xmodmap -e "add mod4 = Alt_L"'
alias make-kernel='sudo genkernel --kernel-config=/proc/config.gz all && sudo grub-mkconfig -o /boot/grub/grub.cfg' alias make-kernel='sudo genkernel --luks --lvm --install --kernel-config=/proc/config.gz --microcode=intel all && sudo grub-mkconfig -o /boot/grub/grub.cfg'
# bash navigation # bash navigation
alias aa='vim ~/.bash/01-aliases.bash; . ~/.bash_profile' alias aa='vim ~/.bash/01-aliases.bash; . ~/.bash_profile'

View file

@ -48,8 +48,10 @@ color4='\e[38;5;226m'
function exit_code() { function exit_code() {
local ERROR="$?" local ERROR="$?"
if [[ ERROR -ne 0 ]]; then if [[ ERROR -ne 0 ]]; then
echo -n '\['"$RED"'\]'"$ERROR"'\['"$dgray"'\]!' echo -n ''"$dgray"'\]/\['"$RED"'\]'"$ERROR"'\['"$dgray"'\]\\'
# echo -n '\['"$RED"'\]'"$ERROR"' ' # echo -n '\['"$RED"'\]'"$ERROR"' '
else
echo -n ''"$dgray"'\]/\['"$LCYAN"'\]'"$ERROR"'\['"$dgray"'\]\\'
fi fi
} }
@ -77,7 +79,7 @@ function _git_prompt() {
fi fi
if ! [[ "$branch" =~ local ]]; then if ! [[ "$branch" =~ local ]]; then
# echo -n '\['"$color"'\] ('"$ansi"''"$branch"') ' # echo -n '\['"$color"'\] ('"$ansi"''"$branch"') '
echo -n '\['"$dgray"'\]#\['"$color"'\]'"$branch"''"$ansi"'' echo -n '\['"$dgray"'\](\['"$color"'\]'"$branch"''"$ansi"'\['"$dgray"'\])'
fi fi
fi fi
} }
@ -116,15 +118,18 @@ export -f _git_prompt
# export _PS1="\[$lgray\][ \[$LMAGENTA\]\h\[$lgray\] ] \[$LYELLOW\]\d, \[$LRED\]\T" # export _PS1="\[$lgray\][ \[$LMAGENTA\]\h\[$lgray\] ] \[$LYELLOW\]\d, \[$LRED\]\T"
# export _PS2="\[$lgray\]{ \[$CYAN\]\w\[$lgray\] }" # export _PS2="\[$lgray\]{ \[$CYAN\]\w\[$lgray\] }"
# bryson@dingo:/current/path:master # bryson@hostname:/current/path:master
# $ # $
# # export _PS1="\[$LBLUE\]\u\[$dgray\]@\[$LGREEN\]\h\[$dgray\]:\[$LYELLOW\]\w"
export _PS1="\[$LBLUE\]\u\[$dgray\]@\[$LGREEN\]\h\[$dgray\]:\[$LYELLOW\]\w"
# hostname[/current/path]<bryson>{12:00:00}[255](master)
# $
export _PS1="\[$LGREEN\]\h\[$dgray\][\[$LYELLOW\]\w\[$dgray\]]<\[$LBLUE\]\u\[$dgray\]>{\[$LMAGENTA\]\@\[$dgray\]}"
# define x titlebar # define x titlebar
TITLEBAR='\[\033]0;\u@\h:\w ($(history 1 | cut -c 8-))\]' TITLEBAR='\[\033]0;\u@\h:\w ($(history 1 | cut -c 8-))\]'
# apply prompt and functions # apply prompt and functions
# export PROMPT_COMMAND='export PS1="$TITLEBAR$(exit_code)${_PS1}\n${_PS2}$(_git_prompt)\n\[$NC\]\$ ";history -a' # export PROMPT_COMMAND='export PS1="$TITLEBAR$(exit_code)${_PS1}\n${_PS2}$(_git_prompt)\n\[$NC\]\$ ";history -a'
export PROMPT_COMMAND='export PS1="$TITLEBAR$(exit_code)${_PS1}$(_git_prompt)\n\[$NC\]\$ ";history -a' export PROMPT_COMMAND='export PS1="$TITLEBAR${_PS1}$(exit_code)$(_git_prompt)\n\[$NC\]\$ ";history -a'

View file

@ -3,37 +3,18 @@
# 03-boot.bash # 03-boot.bash
# startup scripts for systems # startup scripts for systems
bat_check() {
TEST=$(acpi | grep "Discharging" | grep -v "rate information")
if [[ $? -eq 0 ]]; then
echo "***********************************************************"
echo " WARNING"
echo "***********************************************************"
echo "Power supply is not plugged in."
echo "Make sure it is plugged in to avoid a random shutdown."
read -rs -N 1 -p "Press [Enter] to continue, any other key to return..." input;
if grep -q "$input" <<< ""; then
echo ""
else
return 1
fi
fi
}
# run startup script if tty # run startup script if tty
# for dingo # for dingo
if [[ $TERM == 'linux' && $(hostname) == 'dingo' ]]; then if [[ $TERM == 'linux' && $(hostname) == 'landseer' ]]; then
cat ~/bin/house.txt cat ~/bin/house.txt
printf "\n${CYAN}Welcome back Bryson :)\n\n" printf "\n${CYAN}Welcome back Bryson :)\n\n"
printf "${LGREEN}What should dingo do?\n${magenta}" printf "${LGREEN}What should landseer do?\n${magenta}"
echo -e '\td: start docked\n\tn: start not docked\n\tq: shutdown\n\tr: reboot\n\tl: logout\n\tb: bash\n\n' echo -e "\tn: start x\n\tq: shutdown\n\tr: reboot\n\tl: logout\n\tb: bash\n\n"
while read -rs -N 1 key; do while read -rs -N 1 key; do
printf "${NC}" printf "${NC}"
case $key in case $key in
d) bat_check && startx ;; n) startx ;;
n) nstartx.sh ;;
q) echo "Are you sure you want to shutdown? (y/n)"; q) echo "Are you sure you want to shutdown? (y/n)";
read -rs -N 1 key2; case $key2 in y) doas shutdown -Ph now ;; esac; ;; read -rs -N 1 key2; case $key2 in y) doas shutdown -Ph now ;; esac; ;;
r) echo "Are you sure you want to reboot? (y/n)"; r) echo "Are you sure you want to reboot? (y/n)";
@ -44,8 +25,8 @@ if [[ $TERM == 'linux' && $(hostname) == 'dingo' ]]; then
esac esac
clear clear
cat ~/bin/house.txt cat ~/bin/house.txt
printf "\n${LGREEN}What should dingo do now?\n${magenta}" printf "\n${LGREEN}What should landseer do?\n${magenta}"
echo -e '\td: start docked\n\tn: start not docked\n\tq: shutdown\n\tr: reboot\n\tl: logout\n\tb: bash\n\n' echo -e "\tn: start x\n\tq: shutdown\n\tr: reboot\n\tl: logout\n\tb: bash\n\n"
done done
fi fi

View file

@ -12,6 +12,7 @@ fi
export EDITOR=/usr/bin/vim export EDITOR=/usr/bin/vim
export TERMINAL=/usr/bin/alacritty export TERMINAL=/usr/bin/alacritty
export BROWSER=/usr/bin/librewolf-bin export BROWSER=/usr/bin/librewolf-bin
export XZ_OPT='-9 -T0 -M 32000000000'
export PATH export PATH
complete -cf doas complete -cf doas

View file

@ -1,15 +1,17 @@
# Beware! This file is rewritten by htop when settings are changed in the interface. # Beware! This file is rewritten by htop when settings are changed in the interface.
# The parser is also very primitive, and not human-friendly. # The parser is also very primitive, and not human-friendly.
htop_version=3.2.1 htop_version=3.2.2
config_reader_min_version=3 config_reader_min_version=3
fields=0 48 17 18 38 39 40 2 46 47 49 1 fields=0 48 17 18 38 39 40 2 46 47 49 1
hide_kernel_threads=1 hide_kernel_threads=1
hide_userland_threads=0 hide_userland_threads=0
hide_running_in_container=0
shadow_other_users=0 shadow_other_users=0
show_thread_names=0 show_thread_names=0
show_program_path=1 show_program_path=1
highlight_base_name=1 highlight_base_name=1
highlight_deleted_exe=1 highlight_deleted_exe=1
shadow_distribution_path_prefix=0
highlight_megabytes=1 highlight_megabytes=1
highlight_threads=1 highlight_threads=1
highlight_changes=0 highlight_changes=0
@ -19,7 +21,7 @@ strip_exe_from_cmdline=1
show_merged_command=0 show_merged_command=0
header_margin=1 header_margin=1
screen_tabs=1 screen_tabs=1
detailed_cpu_time=1 detailed_cpu_time=0
cpu_count_from_one=0 cpu_count_from_one=0
show_cpu_usage=1 show_cpu_usage=1
show_cpu_frequency=1 show_cpu_frequency=1
@ -32,10 +34,10 @@ enable_mouse=1
delay=7 delay=7
hide_function_bar=0 hide_function_bar=0
header_layout=two_50_50 header_layout=two_50_50
column_meters_0=LeftCPUs Memory Swap column_meters_0=AllCPUs2
column_meter_modes_0=1 1 1 column_meter_modes_0=1
column_meters_1=RightCPUs Tasks LoadAverage Uptime column_meters_1=CPU Memory Swap Hostname System DateTime Tasks LoadAverage Uptime
column_meter_modes_1=1 2 2 2 column_meter_modes_1=1 1 1 2 2 2 2 2 2
tree_view=0 tree_view=0
sort_key=46 sort_key=46
tree_sort_key=0 tree_sort_key=0
@ -51,7 +53,7 @@ screen:Main=PID USER PRIORITY NICE M_VIRT M_RESIDENT M_SHARE STATE PERCENT_CPU P
.sort_direction=-1 .sort_direction=-1
.tree_sort_direction=1 .tree_sort_direction=1
.all_branches_collapsed=0 .all_branches_collapsed=0
screen:I/O=PID USER COMM IO_PRIORITY IO_RATE IO_READ_RATE IO_WRITE_RATE screen:I/O=PID USER IO_PRIORITY IO_RATE IO_READ_RATE IO_WRITE_RATE Command
.sort_key=IO_RATE .sort_key=IO_RATE
.tree_sort_key=PID .tree_sort_key=PID
.tree_view=0 .tree_view=0

View file

@ -1,4 +1,4 @@
set -g prefix M-Space set -g prefix C-a
set -g visual-activity on set -g visual-activity on
set -g status-style fg=white,bg=black set -g status-style fg=white,bg=black
set-window-option -g window-status-bell-style fg=white,bg=red,bold set-window-option -g window-status-bell-style fg=white,bg=red,bold

View file

@ -13,8 +13,8 @@ cp -r ~/.vim/after ./vim
cp ~/.xinitrc* ./x cp ~/.xinitrc* ./x
cp ~/.Xresources ./x cp ~/.Xresources ./x
cp ~/.Xmodmap ./x cp ~/.Xmodmap ./x
cp ~/bin/battery.pl ./x cp ~/bin/battery ./x
cp ~/bin/startdwm.sh ./x cp ~/bin/startdwm ./x
cp ~/.config/VSCodium/User/settings.json ./vscode cp ~/.config/VSCodium/User/settings.json ./vscode
# other config files # other config files

@ -1 +1 @@
Subproject commit bf2885a95efdad7bd5e4794dd0213917770d79b7 Subproject commit f1ecde848f0cdba877acb0c740320568252cc482

View file

@ -11,9 +11,13 @@
}, },
"editor.fontFamily": "'JetBrains Mono'", "editor.fontFamily": "'JetBrains Mono'",
"java.configuration.runtimes": [ "java.configuration.runtimes": [
// {
// "name": "JavaSE-1.8",
// "path": "/usr/local/java/jdk-8",
// },
{ {
"name": "JavaSE-1.8", "name": "JavaSE-17",
"path": "/usr/local/java/jdk-8", "path": "/usr/lib/jvm/openjdk-bin-17",
"default": true "default": true
} }
], ],
@ -25,7 +29,7 @@
"extensions.autoCheckUpdates": false, "extensions.autoCheckUpdates": false,
"extensions.autoUpdate": "onlyEnabledExtensions", "extensions.autoUpdate": "onlyEnabledExtensions",
"typescript.disableAutomaticTypeAcquisition": true, "typescript.disableAutomaticTypeAcquisition": true,
"workbench.colorTheme": "Gruvbox Dark Medium", "workbench.colorTheme": "Gruvbox Dark Hard",
"editor.cursorBlinking": "solid", "editor.cursorBlinking": "solid",
"editor.tabSize": 2, "editor.tabSize": 2,
"keyboard.dispatch": "keyCode", "keyboard.dispatch": "keyCode",
@ -40,6 +44,7 @@
"vim.hlsearch": true, "vim.hlsearch": true,
"workbench.startupEditor": "none", "workbench.startupEditor": "none",
"workbench.sideBar.location": "right", "workbench.sideBar.location": "right",
"window.restoreWindows": "none",
"vim.normalModeKeyBindingsNonRecursive": [ "vim.normalModeKeyBindingsNonRecursive": [
{ {
"before": ["<leader>", "h"], "before": ["<leader>", "h"],
@ -65,5 +70,8 @@
"workbench.action.navigateRight" "workbench.action.navigateRight"
] ]
} }
] ],
"debug.onTaskErrors": "showErrors",
"explorer.confirmDelete": false,
"window.zoomLevel": 1
} }

View file

@ -1,7 +1,7 @@
#!/bin/sh #!/bin/sh
# executed by startx # executed by startx-not-docked
# for use when dingo is DOCKED # for use when dingo is NOT docked
export DOCKED=true export DOCKED=false
# load xinitrc.d stuff # load xinitrc.d stuff
@ -40,40 +40,41 @@ fi
# start notifications (dunst) # start notifications (dunst)
/usr/bin/dunst & /usr/bin/dunst &
# open picom compositor # start picom compositor
picom --config ~/.config/picom.conf & picom --config ~/.config/picom.conf &
#spotifyd & #spotifyd &
# set up monitors # add network, battery, date and time to xsetroot
sh ~/.config/screenlayout.sh &
# set default audio device to be dock audio jack
pulseaudio -k &
pacmd set-default-sink alsa_output.usb-0c76_USB_PnP_Audio_Device-00.analog-stereo &
# add weather, date and time to xsetroot
#sh ~/bin/xsetloop-docked.sh &
slstatus & slstatus &
# reset backlight
light -S 30 &
# set default audio device to be laptop speakers
# pacmd set-default-sink alsa_output.pci-0000_03_00.6.HiFi__hw_Generic_1__sink &
# pacmd set-sink-volume alsa_output.pci-0000_03_00.6.HiFi__hw_Generic_1__sink 0 &
# set up wallpaper
feh --bg-fill ~/git/wallpapers-exorcist/gruvbox/mountains-2.jpg
# apply Xresources # apply Xresources
xrdb -merge ~/.Xresources xrdb -merge ~/.Xresources
# make cursor disappear after typing # make cursor disappear after typing
xbanish & xbanish &
# enable numlock # turn tearfree on
numlockx & xrandr --output eDP --auto --set TearFree on --output HDMI-A-0 --set TearFree on &
# run battery checker
~/bin/battery &
# start keepassxc for passwords # start keepassxc for passwords
keepassxc ~/.passwords/Passwords.kdbx & keepassxc ~/.passwords/Passwords.kdbx &
# set up wallpapers # if logitech keyboard detected, turn alt into super
#wallpapers.sh & if $(lsusb | grep -qi "Logitech Mechanical Keyboard"); then
feh --bg-fill git/wallpapers-exorcist/gruvbox/mountains-2.jpg git/wallpapers-exorcist/gruvbox/mountains-2.jpg &
# if unicomp keyboard detected, turn alt into super
if $(lsusb | grep -qi "Unicomp"); then
xmodmap -e "remove mod1 = Alt_L" xmodmap -e "remove mod1 = Alt_L"
xmodmap -e "remove mod4 = Super_L" xmodmap -e "remove mod4 = Super_L"
xmodmap -e "add mod1 = Super_L" xmodmap -e "add mod1 = Super_L"
@ -82,5 +83,5 @@ fi
# start dwm # start dwm
redshift & redshift &
xset r rate 300 50 xset r rate 300 80
exec /home/bryson/bin/startdwm.sh exec /home/bryson/bin/startdwm

View file

@ -1,7 +1,7 @@
#!/bin/sh #!/bin/sh
# executed by startx-not-docked # executed by startx
# for use when dingo is NOT docked # for use when dingo is DOCKED
export DOCKED=false export DOCKED=true
# load xinitrc.d stuff # load xinitrc.d stuff
@ -40,23 +40,21 @@ fi
# start notifications (dunst) # start notifications (dunst)
/usr/bin/dunst & /usr/bin/dunst &
# start picom compositor # open picom compositor
picom --config ~/.config/picom.conf & picom --config ~/.config/picom.conf &
#spotifyd & #spotifyd &
# add network, battery, date and time to xsetroot # set up monitors
slstatus-not-docked & sh ~/.config/screenlayout.sh &
# reset backlight # set default audio device to be dock audio jack
light -S 50 & pulseaudio -k &
pacmd set-default-sink alsa_output.usb-0c76_USB_PnP_Audio_Device-00.analog-stereo &
# set default audio device to be laptop speakers # add weather, date and time to xsetroot
pacmd set-default-sink alsa_output.pci-0000_03_00.6.HiFi__hw_Generic_1__sink & #sh ~/bin/xsetloop-docked.sh &
pacmd set-sink-volume alsa_output.pci-0000_03_00.6.HiFi__hw_Generic_1__sink 0 & slstatus &
# set up wallpaper
feh --bg-fill ~/git/wallpapers-exorcist/gruvbox/mountains-2.jpg
# apply Xresources # apply Xresources
xrdb -merge ~/.Xresources xrdb -merge ~/.Xresources
@ -64,17 +62,18 @@ xrdb -merge ~/.Xresources
# make cursor disappear after typing # make cursor disappear after typing
xbanish & xbanish &
# turn tearfree on # enable numlock
xrandr --output eDP --auto --set TearFree on --output HDMI-A-0 --set TearFree on & numlockx &
# run battery checker
~/bin/battery.pl &
# start keepassxc for passwords # start keepassxc for passwords
keepassxc ~/.passwords/Passwords.kdbx & keepassxc ~/.passwords/Passwords.kdbx &
# if logitech keyboard detected, turn alt into super # set up wallpapers
if $(lsusb | grep -qi "Logitech Mechanical Keyboard"); then #wallpapers.sh &
feh --bg-fill git/wallpapers-exorcist/gruvbox/mountains-2.jpg git/wallpapers-exorcist/gruvbox/mountains-2.jpg &
# if unicomp keyboard detected, turn alt into super
if $(lsusb | grep -qi "Unicomp"); then
xmodmap -e "remove mod1 = Alt_L" xmodmap -e "remove mod1 = Alt_L"
xmodmap -e "remove mod4 = Super_L" xmodmap -e "remove mod4 = Super_L"
xmodmap -e "add mod1 = Super_L" xmodmap -e "add mod1 = Super_L"
@ -83,5 +82,5 @@ fi
# start dwm # start dwm
redshift & redshift &
xset r rate 300 80 xset r rate 300 50
exec /home/bryson/bin/startdwm.sh exec /home/bryson/bin/startdwm.sh

View file

@ -22,13 +22,13 @@ while (1) {
if (int($battery_level) <= int($CRITICAL_LEVEL)) { if (int($battery_level) <= int($CRITICAL_LEVEL)) {
$CRITICAL = 'def'; $CRITICAL = 'def';
$sent = 'def'; $sent = 'def';
system "notify-send -i \"battery-empty\" -t 0 -u critical \"BATTERY CRITICAL\" \"Battery level is ${battery_level}%\n\nCharge the system NOW.\"" system "notify-send -i \"battery-empty-symbolic\" -t 0 -u critical \"BATTERY CRITICAL\" \"Battery level is ${battery_level}%\n\nCharge the system NOW.\""
} }
} if (!$LOW && !$sent) { } if (!$LOW && !$sent) {
if (int($battery_level) <= int($LOW_LEVEL)) { if (int($battery_level) <= int($LOW_LEVEL)) {
$LOW = 'def'; $LOW = 'def';
$sent = 'def'; $sent = 'def';
system "notify-send -i \"battery-caution\" -t 0 -u normal \"BATTERY LOW\" \"Battery level is ${battery_level}%\n\nCharge the system soon.\"" system "notify-send -i \"battery-caution-symbolic\" -t 0 -u normal \"BATTERY LOW\" \"Battery level is ${battery_level}%\n\nCharge the system soon.\""
} }
} if (int($battery_level) <= int($DEAD_LEVEL)) { } if (int($battery_level) <= int($DEAD_LEVEL)) {
system "notify-send -t 0 -u critical \"SHUTTING DOWN\" \"Battery level is too low. The system will shutdown in 2 minutes to prevent corruption.\n\nCharge the system NOW to cancel the shutdown.\""; system "notify-send -t 0 -u critical \"SHUTTING DOWN\" \"Battery level is too low. The system will shutdown in 2 minutes to prevent corruption.\n\nCharge the system NOW to cancel the shutdown.\"";
@ -40,7 +40,7 @@ while (1) {
$CRITICAL = undef; $CRITICAL = undef;
$LOW = undef; $LOW = undef;
system "doas shutdown -c"; system "doas shutdown -c";
system "notify-send -t 3000 -i \"battery-good-charging\" \"System is now charging\""; system "notify-send -t 3000 -i \"battery-good-charging-symbolic\" \"System is now charging\"";
} }
} }