Skip to content

Commit

Permalink
updated (jesus)
Browse files Browse the repository at this point in the history
  • Loading branch information
Furdox committed Oct 4, 2024
1 parent ce0ad7b commit 806671e
Show file tree
Hide file tree
Showing 51,129 changed files with 766,273 additions and 228 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
209 changes: 191 additions & 18 deletions .bashrc
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
# ~/.bashrc
#

# export $(envsubst < .env)
#[[ $- == *i* ]] && source /usr/share/blesh/ble.sh

# If not running interactively, don't do anything
[[ $- != *i* ]] && return

Expand All @@ -12,14 +15,19 @@ alias egrep='egrep --color=auto'
#alias dir='dir --color=auto'
#alias vdir='vdir --color=auto'

PS1='[\u@\h \W]\$ '
alias cd='z'

#PS1='[\u@\h \W]\$ '

##### custom


# setup aliases
alias cdwebsite='cd /media/furdox/linachad/data/codeflows/furdox.github.io'
#alias cdwebsite='cd /media/furdox/linachad/data/codeflows/furdox.github.io'
alias cdcodeflows='cd /mnt/newchad/@/data/codeflows/website'
alias cdlinachad='cd /media/furdox/linachad'
alias cdnewchad='cd /mnt/newchad/@'
alias cdcodeflows='cd /mnt/newchad/@/data/codeflows'

alias editi3='nano ~/.config/i3/config'
alias editi3config='nano ~/.config/i3/config'
Expand All @@ -38,17 +46,38 @@ alias light='xrandr --output DP-0 --brightness'
alias dark='xrandr --output DP-0 --brightness 0.5'

alias start='sudo systemctl start sddm'

alias pacinstall='sudo pacman -S'
alias pacinst='sudo pacman -S'
alias pacdown='sudo pacman -S'
alias pacget='sudo pacman -S'
alias mkdsload='pactl load-module module-loopback latency_msec=5 source="alsa_input.pci-0000_00_1f.3.analog-stereo"'
alias mkdsunload='pactl unload-module module-loopback'
alias mkdsoff='pactl unload-module module-loopback'
alias mkdsoof='pactl unload-module module-loopback'
alias mkdson='pactl load-module module-loopback latency_msec=5 source="alsa_input.pci-0000_00_1f.3.analog-stereo"'
alias backmic='pactl load-module module-loopback latency_msec=5 source="alsa_input.pci-0000_00_1f.3.analog-stereo"'
alias backmicload='pactl load-module module-loopback latency_msec=5 source="alsa_input.pci-0000_00_1f.3.analog-stereo"'
alias backmicon='pactl load-module module-loopback latency_msec=5 source="alsa_input.pci-0000_00_1f.3.analog-stereo"'
alias backmicunload='pactl unload-module module-loopback'
alias backmicoff='pactl unload-module module-loopback'
alias loopbackunload='pactl unload-module module-loopback'
alias listmic='arecord -l'
alias mkgrub='sudo grub-mkconfig -o /boot/grub/grub.cfg'
alias makegrub='sudo grub-mkconfig -o /boot/grub/grub.cfg'

alias gimp='flatpak run org.gimp.GIMP'
alias java8='/home/furdox/Téléchargements/jre1.8.0_401/bin/java'
alias startvr='~/.local/share/Steam/steamapps/common/SteamVR/bin/vrmonitor.sh'
alias java21='/usr/lib64/jvm/java-21-openjdk/bin/java'

alias sexwithhitler='echo nya~'



PROMPT_COMMAND='meow'

#PS1='\A =\u@\h= \w \$ '
PS2='> '
#PS2='> '

################################################
# Emulate an MS-DOS prompt in your Linux shell.
Expand All @@ -60,23 +89,167 @@ PS2='> '
# Modified by Soldier of Fortran
#
# Add to you ~/.bashrc file with: 'source ~/.themes/95/bashrc'
#
#function msdos_pwd
#{
# local dir="`pwd`"
#
# echo $dir | tr '/' '\\'
# }
#
# export PS1='UwU:`msdos_pwd` >w< $ '

function msdos_pwd
{
local dir="`pwd`"

echo $dir | tr '/' '\\'
}

export PS1='UwU:`msdos_pwd` >w< $ '

echo
echo
echo -e "\x1b[35;1mWelcome to the Terminal UwU!\x1b[0m"
echo
echo
#echo
#echo
# echo "Microsoft(R) Windows 95"
# echo " (C)Copyright Microsoft Corp 1981-1996."
echo
neofetch
#echo

#meowfetch
fastfetch

PS1='\[\e[32;40;1m\]-\A-\[\e[31;40;1m\] $? \[\e[0m\e[36;40;1m\]=\[\e[35;40;1m\]\u\[\e[36;40;1m\]@\[\e[35;40;1m\]\h\[\e[36;40;1m\]= \[\e[33;40;1m\]\w \$\[\e[0m\] '











# =============================================================================
#
# Utility functions for zoxide.
#

# pwd based on the value of _ZO_RESOLVE_SYMLINKS.
function __zoxide_pwd() {
\builtin pwd -L
}

# cd + custom logic based on the value of _ZO_ECHO.
function __zoxide_cd() {
# shellcheck disable=SC2164
\builtin cd -- "$@"
}

# =============================================================================
#
# Hook configuration for zoxide.
#

# Hook to add new entries to the database.
__zoxide_oldpwd="$(__zoxide_pwd)"

function __zoxide_hook() {
\builtin local -r retval="$?"
\builtin local pwd_tmp
pwd_tmp="$(__zoxide_pwd)"
if [[ ${__zoxide_oldpwd} != "${pwd_tmp}" ]]; then
__zoxide_oldpwd="${pwd_tmp}"
\command zoxide add -- "${__zoxide_oldpwd}"
fi
return "${retval}"
}

# Initialize hook.
if [[ ${PROMPT_COMMAND:=} != *'__zoxide_hook'* ]]; then
PROMPT_COMMAND="__zoxide_hook;${PROMPT_COMMAND#;}"
fi

# =============================================================================
#
# When using zoxide with --no-cmd, alias these internal functions as desired.
#

__zoxide_z_prefix='z#'

# Jump to a directory using only keywords.
function __zoxide_z() {
# shellcheck disable=SC2199
if [[ $# -eq 0 ]]; then
__zoxide_cd ~
elif [[ $# -eq 1 && $1 == '-' ]]; then
__zoxide_cd "${OLDPWD}"
elif [[ $# -eq 1 && -d $1 ]]; then
__zoxide_cd "$1"
elif [[ ${@: -1} == "${__zoxide_z_prefix}"?* ]]; then
# shellcheck disable=SC2124
\builtin local result="${@: -1}"
__zoxide_cd "${result:${#__zoxide_z_prefix}}"
else
\builtin local result
# shellcheck disable=SC2312
result="$(\command zoxide query --exclude "$(__zoxide_pwd)" -- "$@")" &&
__zoxide_cd "${result}"
fi
}

# Jump to a directory using interactive search.
function __zoxide_zi() {
\builtin local result
result="$(\command zoxide query --interactive -- "$@")" && __zoxide_cd "${result}"
}

# =============================================================================
#
# Commands for zoxide. Disable these using --no-cmd.
#

\builtin unalias z &>/dev/null || \builtin true
function z() {
__zoxide_z "$@"
}

\builtin unalias zi &>/dev/null || \builtin true
function zi() {
__zoxide_zi "$@"
}

# Load completions.
# - Bash 4.4+ is required to use `@Q`.
# - Completions require line editing. Since Bash supports only two modes of
# line editing (`vim` and `emacs`), we check if either them is enabled.
# - Completions don't work on `dumb` terminals.
if [[ ${BASH_VERSINFO[0]:-0} -eq 4 && ${BASH_VERSINFO[1]:-0} -ge 4 || ${BASH_VERSINFO[0]:-0} -ge 5 ]] &&
[[ :"${SHELLOPTS}": =~ :(vi|emacs): && ${TERM} != 'dumb' ]]; then
# Use `printf '\e[5n'` to redraw line after fzf closes.
\builtin bind '"\e[0n": redraw-current-line' &>/dev/null

function __zoxide_z_complete() {
# Only show completions when the cursor is at the end of the line.
[[ ${#COMP_WORDS[@]} -eq $((COMP_CWORD + 1)) ]] || return

# If there is only one argument, use `cd` completions.
if [[ ${#COMP_WORDS[@]} -eq 2 ]]; then
\builtin mapfile -t COMPREPLY < <(
\builtin compgen -A directory -- "${COMP_WORDS[-1]}" || \builtin true
)
# If there is a space after the last word, use interactive selection.
elif [[ -z ${COMP_WORDS[-1]} ]] && [[ ${COMP_WORDS[-2]} != "${__zoxide_z_prefix}"?* ]]; then
\builtin local result
# shellcheck disable=SC2312
result="$(\command zoxide query --exclude "$(__zoxide_pwd)" --interactive -- "${COMP_WORDS[@]:1:${#COMP_WORDS[@]}-2}")" &&
COMPREPLY=("${__zoxide_z_prefix}${result}/")
\builtin printf '\e[5n'
fi
}

\builtin complete -F __zoxide_z_complete -o filenames -- z
\builtin complete -r zi &>/dev/null || \builtin true
fi

# =============================================================================
#
# To initialize zoxide, add this to your configuration (usually ~/.bashrc):
#
# eval "$(zoxide init bash)"

#THIS MUST BE AT THE END OF THE FILE FOR SDKMAN TO WORK!!!
export SDKMAN_DIR="$HOME/.sdkman"
[[ -s "$HOME/.sdkman/bin/sdkman-init.sh" ]] && source "$HOME/.sdkman/bin/sdkman-init.sh"
69 changes: 60 additions & 9 deletions .config/i3/config
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ set $mod Mod4
# is used in the bar {} block below.
##font pango:monospace 10
#font pango:Helvetica 10
font pango:Rubik 10
font pango:Rubik 12

# This font is widely installed, provides lots of unicode glyphs, right-to-left
# text rendering and scalability on retina/hidpi displays (thanks to pango).
Expand Down Expand Up @@ -46,26 +46,74 @@ bindsym XF86AudioLowerVolume exec --no-startup-id pactl set-sink-volume @DEFAULT
bindsym XF86AudioMute exec --no-startup-id pactl set-sink-mute @DEFAULT_SINK@ toggle && $refresh_i3status
bindsym XF86AudioMicMute exec --no-startup-id pactl set-source-mute @DEFAULT_SOURCE@ toggle && $refresh_i3status

#bindsym XF86AudioRaiseVolume exec --no-startup-id qdbus org.kde.kglobalaccel /component/kmix invokeShortcut "increase_volume"
#bindsym XF86AudioLowerVolume exec --no-startup-id qdbus org.kde.kglobalaccel /component/kmix invokeShortcut "decrease_volume"
#bindsym XF86AudioMute exec --no-startup-id qdbus org.kde.kglobalaccel /component/kmix invokeShortcut "mute"
#bindsym XF86AudioMicMute exec --no-startup-id qdbus org.kde.kglobalaccel /component/kmix invokeShortcut "mic_mute"

# Use Mouse+$mod to drag floating windows to their wanted position
floating_modifier $mod





### KDE Plasma stuff
for_window [title="Bureau — Plasma"] kill, floating enable, border none
for_window [title="Bureau @ QRect(1050,0 2560x1440)"] kill, floating enable, border none
for_window [title="Bureau @ QRect(3610,0 1024x768)"] kill, floating enable, border none
for_window [title="Bureau @ QRect(0,0 1050x1680)"] kill, floating enable, border none
for_window [title="Desktop @ QRect.*"] kill; floating enable; border none
for_window [title="Desktop @ QRect*"] kill; floating enable; border none
for_window [title="Bureau @ QRect.*"] kill; floating enable; border none
for_window [title="Bureau @ QRect*"] kill; floating enable; border none

for_window [class="plasmashell"] floating enable
for_window [class="Plasma"] floating enable, border none
for_window [title="plasma-desktop"] floating enable, border none
for_window [title="win7"] floating enable, border none
for_window [class="krunner"] floating enable, border none
for_window [class="Kmix"] floating enable, border none
for_window [class="Klipper"] floating enable, border none
for_window [class="Plasmoidviewer"] floating enable, border none
for_window [class="(?i)*nextcloud*"] floating disable
for_window [class="plasmashell" window_type="notification"] floating enable, border none, move right 700px, move down 450px
no_focus [class="plasmashell" window_type="notification"]
###


### XFCE Stuff
exec xfconfd
exec xfsettingsd
exec xfce4-volumed
exec xfce4-power-manager
exec xscreensaver -nosplash
exec xfce4-panel
###




########## custom

exec --no-startup-id /usr/bin/gnome-keyring-daemon --start --components=pkcs11,secrets,ssh,gpg

# Notice: colors are at the very bottom.

# # mount LINACHAD
# exec "sudo mkdir /media/furdox/d6db014a-1f96-46e9-8b15-22e313996d25"
# exec "sudo mount /dev/sda5 /media/furdox/d6db014a-1f96-46e9-8b15-22e313996d25"

# fakwin
# exec fakwin

# setup screens correctly (ALL SCREENS NEED TO BE ON ON BOOT)
exec "xrandr --output DP-0 --primary --mode 2560x1440 --rate 143.97 --output HDMI-0 --mode 1024x768 --rate 75.02 --right-of DP-0 --output DP-3 --mode 1680x1050 --rotation left --left-of DP-0"
# exec "xrandr --output DP-0 --primary --mode 2560x1440 --rate 143.97 --output HDMI-0 --mode 1024x768 --rate 75.02 --right-of DP-0 --output DP-3 --mode 1680x1050 --rotation left --left-of DP-0"
# setup window colors
# AT THE VERY BOTTOM OF THE FILE

# keybind to lock session
bindsym $mod+l exec "i3lock -i /data/bg/puffisidelock.png"
bindsym $mod+l exec "i3lock -i /home/furdox/Pictures/bg/puffisidelock.png"

# set kb to canadian internationnal (FINALLY)
exec "setxkbmap -layout ca -variant multix"
Expand All @@ -77,8 +125,8 @@ exec "setxkbmap -layout ca -variant multix"
exec "nitrogen --restore"

# setup gaps
gaps outer 20px
gaps inner 20px
gaps outer 10px
gaps inner 10px

# start CopyQ, I use i3 config as my autoboot file xd
exec copyq
Expand Down Expand Up @@ -116,18 +164,21 @@ bindsym Mod4+Mod1+Shift+s exec "reboot"
# make the windows not become on focus when the mouse moves
focus_follows_mouse no

# Firefox shortcut
bindsym $mod+Shift+f exec "firefox"
# --Firefox-- Edge shortcut
bindsym $mod+Shift+f exec "microsoft-edge-dev"

## enable opentabletdriver
#exec systemctl --user enable opentabletdriver --now
#> wtf was I thinking lmao

# using plasma's logout screen instead of i3's
bindsym $mod+Shift+e exec --no-startup-id qdbus-qt5 org.kde.ksmserver /KSMServer org.kde.KSMServerInterface.logout -1 -1 -1

########## end custom




# start a terminal
bindsym $mod+Return exec i3-sensible-terminal

Expand Down Expand Up @@ -233,8 +284,8 @@ bindsym $mod+Shift+0 move container to workspace number $ws10
bindsym $mod+Shift+c reload
# restart i3 inplace (preserves your layout/session, can be used to upgrade i3)
bindsym $mod+Shift+r restart
# exit i3 (logs you out of your X session)
bindsym $mod+Shift+e exec "i3-nagbar -t warning -m 'You pressed the exit shortcut. Do you really want to exit i3? This will end your X session.' -B 'Yes, exit i3' 'i3-msg exit'"
## exit i3 (logs you out of your X session)
#bindsym $mod+Shift+e exec "i3-nagbar -t warning -m 'You pressed the exit shortcut. Do you really want to exit i3? This will end your X session.' -B 'Yes, exit i3' 'i3-msg exit'"

# resize window (you can also use the mouse for that)
mode "resize" {
Expand Down
Loading

0 comments on commit 806671e

Please sign in to comment.