Compare commits

..

No commits in common. "90b64d8b50cc91c8b0c0ba6b7782758519fd5d30" and "0edf3798356bf6ba8213e57e7042f39d5a816f34" have entirely different histories.

11 changed files with 24 additions and 42 deletions

View file

@ -32,7 +32,6 @@ declare -A mapper=(
["xprofile"]="$HOME/.xprofile"
["yadm"]="$HOME/.local/share/yadm/repo.git/config"
["yadm-encrypt"]="$HOME/.config/yadm/encrypt"
["zellij"]="$HOME/.config/zellij/"
["zsh"]="$HOME/.config/zsh/.zshrc"
)

View file

@ -3,7 +3,7 @@
modes="std
single
single-sec
zellij"
layout"
portalo_mode_std () {
echo "Loading portalo standard screen layout"
@ -23,12 +23,12 @@ portalo_mode_single_sec () {
yadm config --add local.class monitor-single-sec
}
portalo_mode_zellij () {
layout_dir="$HOME/.config/zellij/layouts"
portalo_mode_layout () {
layout_dir="$HOME/.config/hypr/layouts"
layouts=$(\ls -1 "$layout_dir")
layout=$(echo "$layouts" | $DMENU -p "layout")
if [ -n "$layout" ]; then
$TERMINAL -e zellij --layout="$layout_dir/$layout"
"$layout_dir/$layout"
fi
}
@ -42,6 +42,6 @@ case $mode in
"std") portalo_mode_std ;;
"single") portalo_mode_single ;;
"single-sec") portalo_mode_single_sec ;;
"zellij") portalo_mode_zellij ;;
"layout") portalo_mode_layout ;;
*) echo "'$mode' is not a valid mode (single, std)" ;;
esac

9
.bin/source-remote-file Executable file
View file

@ -0,0 +1,9 @@
#!/usr/bin/env sh
base_path="$HOME/.cache/remote-sources"
file_path="$base_path/$2"
autoinstall file "$1" "$file_path"
# shellcheck disable=SC1090
. "$file_path"

View file

@ -71,11 +71,6 @@ AUTOINSTALL_ITEM_SOURCE="https://gist.githubusercontent.com/oshybystyi/475ee7768
AUTOINSTALL_ITEM_TARGET="${plugin_path:?}/git-auto-status/git-auto-status.plugin.zsh"
AUTOINSTALL_ITEM_GROUPS="oh-my-zsh"
AUTOINSTALL_ITEM_TYPE="exe"
AUTOINSTALL_ITEM_SOURCE="https://raw.githubusercontent.com/dracula/zsh-syntax-highlighting/master/zsh-syntax-highlighting.sh"
AUTOINSTALL_ITEM_TARGET="${plugin_path:?}/zsh-syntax-highlighting.sh"
AUTOINSTALL_ITEM_GROUPS="oh-my-zsh"
AUTOINSTALL_ITEM_TYPE="file"

View file

@ -43,7 +43,6 @@
yadm # dotfile manager
yq # tool for YAML
yt-dlp # tool to download videos from the internet
zellij # terminal multiplexer
zip # zip
];

View file

@ -53,5 +53,3 @@ windowrulev2 = workspace $ws_chat silent, class:(steam), title:^(Friends List)
windowrulev2 = fullscreen, class:^cs2$
windowrulev2 = workspace $ws_focus, class:^cs2$
windowrulev2 = fullscreen, class:^(steam_app_)
windowrulev2 = workspace $ws_focus, class:^(steam_app_)

View file

@ -25,12 +25,10 @@ general {
gaps_out = 6
border_size = 1
layout = dwindle
}
cursor_inactive_timeout = 0
no_cursor_warps = true
cursor {
inactive_timeout = 0
no_warps = true
layout = dwindle
}
misc {

View file

@ -28,8 +28,7 @@ def init(c):
c.url.searchengines = {
'DEFAULT': 'https://duckduckgo.com/?q={}',
'ddg': 'https://duckduckgo.com/?q={}',
'kagi': 'https://kagi.com/search?q={}',
'lh': 'http://localhost:{}/',
'kagi': 'https://kagi.com/search?q={}'
}
c.url.start_pages = [
'https://rss.serguzim.me/',

View file

@ -1,14 +1,9 @@
import keybindings
import common
import linkwarden
config.load_autoconfig()
keybindings.init(config)
common.init(c)
try:
linkwarden.init()
except:
pass
c.tabs.show = 'never'
c.statusbar.show = 'never'

View file

@ -15,7 +15,7 @@ $cmd_duration\
[](bg:red fg:yellow)\
$status\
[](bg:white fg:red)\
${custom.asciinema_log}${env_var.ZELLIJ}$shell\
${custom.asciinema_log}$shell\
[](bg:cyan fg:white)\
$jobs\
[](cyan)
@ -42,10 +42,6 @@ when = ''' test -n "$ASCIINEMA_LOG" && test -n "$ASCIINEMA_REC" '''
style = "bg:white fg:black"
format = '[$output ]($style)'
[env_var.ZELLIJ]
style = "bg:white fg:black"
format = '[ ]($style)'
[directory]
read_only = ""
truncation_length = 8

View file

@ -1,12 +1,5 @@
STARSHIP_START_TIME=$(starship time) # display shell startup time in starship
source "$HOME/.config/environment"
omz_installed=false
if [ -d "$ZSH" ]; then
omz_installed=true
fi
autoinstall git "https://github.com/ohmyzsh/ohmyzsh.git" "$ZSH"
# Set name of the theme to load --- if set to "random", it will
@ -70,9 +63,7 @@ HIST_STAMPS="yyyy-mm-dd"
ZSH_CUSTOM=$ZDOTDIR/custom
export plugin_path="$ZSH_CUSTOM/plugins"
if [ $omz_installed = false ]; then
autoinstall run oh-my-zsh
fi
autoinstall run oh-my-zsh
nix_completions="$HOME/.nix-profile/share/zsh/site-functions"
if [ -d "$nix_completions" ]; then
@ -97,6 +88,7 @@ plugins=(
'git'
'git-auto-status'
'jump'
'laravel5'
'nix-shell'
'nix-zsh-completions'
'rust'
@ -122,7 +114,9 @@ export SAVEHIST=1000000
export HISTSIZE=1000000
export HISTFILE="$HOME/.cache/zsh_history"
source "$plugin_path/zsh-syntax-highlighting.sh"
source source-remote-file \
"https://raw.githubusercontent.com/dracula/zsh-syntax-highlighting/master/zsh-syntax-highlighting.sh" \
"dracula-syntax-highlighting"
[ -x "$(command -v atuin)" ] && eval "$(atuin init zsh --disable-up-arrow)"
[ -x "$(command -v direnv)" ] && eval "$(direnv hook zsh)"