Compare commits

...

4 commits

Author SHA1 Message Date
Tobias Reisinger 26aff394c0
Improve completions (bash-completions in zsh still broken) 2024-01-27 20:44:38 +01:00
Tobias Reisinger 8d2d9bf10c
Update configs
Improve dc aliases
Fix git-hidden ignores
Replace vimHugeX with vim (simple vim okay. we use nvim)
2024-01-27 18:16:35 +01:00
Tobias Reisinger ab1a098efb
Add .e hooks 2024-01-25 15:23:05 +01:00
Tobias Reisinger 9d6ccb11f3
Add single-monitor mode for portalo (hyprland) 2024-01-22 01:10:57 +01:00
11 changed files with 74 additions and 17 deletions

18
.bin/.e
View file

@ -4,7 +4,6 @@ declare -A mapper=(
[".e"]="$HOME/.bin/.e" [".e"]="$HOME/.bin/.e"
[".t"]="$HOME/.bin/.t" [".t"]="$HOME/.bin/.t"
["alacritty"]="$HOME/.config/alacritty/alacritty.toml" ["alacritty"]="$HOME/.config/alacritty/alacritty.toml"
["astronvim"]="$HOME/.config/astronvim/lua/user/init.lua"
["autoinstall.toml"]="$HOME/.config/autoinstall.toml" ["autoinstall.toml"]="$HOME/.config/autoinstall.toml"
["autostart.toml"]="$HOME/.config/autostart.toml" ["autostart.toml"]="$HOME/.config/autostart.toml"
["bash"]="$HOME/.bashrc" ["bash"]="$HOME/.bashrc"
@ -27,10 +26,20 @@ declare -A mapper=(
["wakatime"]="$HOME/.config/wakatime/.wakatime.cfg##template" ["wakatime"]="$HOME/.config/wakatime/.wakatime.cfg##template"
["waybar"]="$HOME/.config/waybar/" ["waybar"]="$HOME/.config/waybar/"
["xprofile"]="$HOME/.xprofile" ["xprofile"]="$HOME/.xprofile"
["yadm"]="$HOME/.local/share/yadm/repo.git/config"
["yadm-encrypt"]="$HOME/.config/yadm/encrypt" ["yadm-encrypt"]="$HOME/.config/yadm/encrypt"
["zsh"]="$HOME/.config/zsh/.zshrc" ["zsh"]="$HOME/.config/zsh/.zshrc"
) )
declare -A hooks=(
["nvim"]="nvim +PackerSync"
["nvim.packer"]="nvim +PackerSync"
["qutebrowser"]="qutebrowser :config-source"
["qutebrowser-kiosk"]="qutebrowser-kiosk :config-source" # broken due to qutebrowser-kiosk being an alias
["waybar"]="killall -SIGUSR2 waybar"
["yadm"]="yadm alt"
)
if [ -z "$1" ] if [ -z "$1" ]
then then
echo "No argument given. Use --list (-l) to show all options." echo "No argument given. Use --list (-l) to show all options."
@ -50,3 +59,10 @@ then
fi fi
$EDITOR "$target" $EDITOR "$target"
hook="${hooks["$1"]}"
if [ -n "$hook" ]
then
echo "Running hook: $hook"
eval "$hook"
fi

View file

@ -16,8 +16,9 @@ alias bspwm-single='echo "single" > /tmp/bspwm_mode; bspc wm -r'
alias clip='xclip -selection clipboard' alias clip='xclip -selection clipboard'
alias cp='cp -iv' alias cp='cp -iv'
alias dcu='docker compose up -d' alias dcu='docker compose up -d --force-recreate'
alias dcul='docker compose up -d --force-recreate && docker compose logs -tf' alias dclf='docker compose logs -tf'
alias dcul='dcu && dclf'
alias dcp='docker compose pull' alias dcp='docker compose pull'
alias df='df -h' alias df='df -h'
alias dns-flush='sudo systemctl restart systemd-resolved.service && sudo systemd-resolve --flush-caches && sudo resolvectl flush-caches' alias dns-flush='sudo systemctl restart systemd-resolved.service && sudo systemd-resolve --flush-caches && sudo resolvectl flush-caches'

View file

@ -118,6 +118,19 @@ target = "jetbrains-toolbox"
pipe = "tar xzO" pipe = "tar xzO"
group = "graphical" group = "graphical"
[[autoinstall]]
type = "exe"
source = "https://git.serguzim.me/serguzim/teamspeak-query-lib/raw/branch/main/ts-control"
target = "ts-control"
group = "graphical"
[[autoinstall]]
type = "exe"
source = "https://git.serguzim.me/serguzim/teamspeak-query-lib/actions/runs/latest/artifacts/teamspeak-query-lib"
target = "teamspeak-query-lib"
pipe = "zcat"
group = "graphical"
[[autoinstall]] [[autoinstall]]

View file

@ -29,13 +29,3 @@ _dott_completions()
fi fi
} }
complete -F _dott_completions ".t" complete -F _dott_completions ".t"
completions_dir="$XDG_CONFIG_HOME/completionsrc.d/"
if [ -n "$(ls "$completions_dir" 2>/dev/null)" ]
then
for additional_completions in "$completions_dir"*
do
# shellcheck disable=1090
. "$additional_completions"
done
fi

View file

@ -9,7 +9,7 @@ set +a
export AUTOSTART_DISPLAY='' export AUTOSTART_DISPLAY=''
export BASH_COMPLETION_USER_DIR="$XDG_DATA_HOME" export BASH_COMPLETION_USER_DIR="$XDG_DATA_HOME/bash-completion"
export BEMENU_OPTS="--tb '#6272a4'\ export BEMENU_OPTS="--tb '#6272a4'\
--tf '#f8f8f2'\ --tf '#f8f8f2'\
--fb '#282a36'\ --fb '#282a36'\
@ -22,7 +22,10 @@ export BEMENU_OPTS="--tb '#6272a4'\
--sf '#50fa7b'\ --sf '#50fa7b'\
--scb '#282a36'\ --scb '#282a36'\
--scf '#ff79c6'\ --scf '#ff79c6'\
--list 25 --ignorecase -P '>' -p ''" --list 25\
--ignorecase\
--no-overlap\
-P '>' -p ''"
export DMENU="bemenu" export DMENU="bemenu"
export DOCKER_BUILDKIT=1 export DOCKER_BUILDKIT=1

View file

@ -5,8 +5,11 @@
# File stuff # File stuff
.DS_Store .DS_Store
*.bak *.bak
*.git_hidden *.git_hidden
*.git_hidden.* *.git_hidden.*
*.git-hidden
*.git-hidden.*
# Vim Stuff # Vim Stuff
*.swp *.swp

View file

@ -33,7 +33,7 @@
tokei # project-language statistics tokei # project-language statistics
trash-cli # trash utils trash-cli # trash utils
unzip # unzip unzip # unzip
vimHugeX # vim with clipboard support vim # vim
xdg-user-dirs # tool manage user directories xdg-user-dirs # tool manage user directories
yadm # dotfile manager yadm # dotfile manager
yq # tool for YAML yq # tool for YAML

View file

@ -0,0 +1,20 @@
$mon1 = DP-1
$mon2 = HDMI-A-1
workspace=$ws01, monitor:$mon1, default:true
workspace=$ws02, monitor:$mon1
workspace=$ws03, monitor:$mon1
workspace=$ws04, monitor:$mon1
workspace=$ws05, monitor:$mon1
workspace=$ws06, monitor:$mon1
workspace=$ws07, monitor:$mon1
workspace=$ws08, monitor:$mon1
workspace=$ws09, monitor:$mon1
workspace=$ws10, monitor:$mon1
monitor = $mon1,2560x1440@144,0x0,auto
monitor = $mon2,disable
exec = hyprctl dispatch moveworkspacetomonitor $ws08 $mon1
exec = hyprctl dispatch moveworkspacetomonitor $ws09 $mon1
exec = hyprctl dispatch moveworkspacetomonitor $ws10 $mon1

View file

@ -15,3 +15,7 @@ workspace=$ws10, monitor:$mon2
monitor = $mon1,2560x1440@144,1920x0,auto monitor = $mon1,2560x1440@144,1920x0,auto
monitor = $mon2,1920x1080@60,0x0,auto monitor = $mon2,1920x1080@60,0x0,auto
exec = hyprctl dispatch moveworkspacetomonitor $ws08 $mon2
exec = hyprctl dispatch moveworkspacetomonitor $ws09 $mon2
exec = hyprctl dispatch moveworkspacetomonitor $ws10 $mon2

View file

@ -28,7 +28,6 @@ def init(c):
c.qt.workarounds.remove_service_workers = True c.qt.workarounds.remove_service_workers = True
c.url.default_page = 'dashboard.serguzim.me'
c.url.searchengines = { c.url.searchengines = {
'DEFAULT': 'https://duckduckgo.com/?q={}', 'DEFAULT': 'https://duckduckgo.com/?q={}',
'ddg': 'https://duckduckgo.com/?q={}', 'ddg': 'https://duckduckgo.com/?q={}',

View file

@ -65,6 +65,14 @@ ZSH_CUSTOM=$ZDOTDIR/custom
export plugin_path="$ZSH_CUSTOM/plugins" export plugin_path="$ZSH_CUSTOM/plugins"
autoinstall run oh-my-zsh autoinstall run oh-my-zsh
nix_completions="$HOME/.nix-profile/share/zsh/site-functions"
if [ -d "$nix_completions" ]; then
fpath=($nix_completions $fpath)
fi
fpath=(
"$XDG_DATA_HOME/zsh/site-functions"
$fpath
)
# Which plugins would you like to load? # Which plugins would you like to load?
# Standard plugins can be found in $ZSH/plugins/ # Standard plugins can be found in $ZSH/plugins/