Compare commits

..

No commits in common. "5b2891eda2db6652ca141fab78975bf0c1a101b3" and "57e67569e4fd5b4d88909574e25dd74bb81f03b9" have entirely different histories.

10 changed files with 16 additions and 89 deletions

View file

@ -6,4 +6,3 @@ set -o vi
test -r "$LOGIN" && . "$LOGIN"
test -r "$SETENV" && . "$SETENV" && setenv bash
. "$HOME/.cargo/env"

View file

@ -36,5 +36,3 @@
ui = auto
pager = true
[init]
defaultBranch = main

View file

@ -2,21 +2,10 @@
#
# Profile of Surdeus.
#
# The main configuraton for each PC via the env directory.
export ETC="$HOME/etc"
export ENVDIR="$HOME/env"
export SETENV="$ETC/setenv/sh"
reload-profile(){
. $PROFILE
}
use-nvidia(){
. $ETC/script/use-nvidia.sh
}
no-output() {
$@ &> /dev/null
}
@ -84,19 +73,20 @@ if test "$OS" != "Windows_NT" ; then
PATH="$HOME/exe:$HOME/.local/bin:$PATH"
fi
# Preconfig.
# COMMON
export LANG="en_US.UTF-8"
# Custom.
export KITTY_CONFIG_DIRECTORY="$ETC/kitty"
export APP="$HOME/app"
export BIN="$HOME/bin"
export LOAD="$HOME/load"
export ETC="$HOME/etc"
export PATH="$PATH:$BIN"
export GIT="https://surdeus.su"
export DEV="$HOME/dev"
export PATH="$PATH:$BIN"
export PATH="$PATH:$HOME/.cargo/bin"
# CLI.
export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:/usr/local/lib64"
export LANG="en_US.UTF-8"
export LESS=""
export ENV="$HOME/.shrc"
export PROMPT="; "
@ -106,6 +96,8 @@ fi
export CMDHIST="$ETC/cmds"
export CMDHISTMAX="100"
export PROFILE="$HOME/.profile"
export ENVDIR="$HOME/env"
export SETENV="$ETCsetenv/sh"
export LOGIN="$ETC/login/sh"
export INDENT=" "
@ -122,15 +114,13 @@ fi
# Golang.
export GOPATH="$APP/go"
export GOBIN="$BIN"
export PATH="/usr/local/go/bin:$PATH"
export PATH="$PATH:$GOBIN"
# CLI.
# Programs.
export KITTY_CONFIG_DIRECTORY="$ETC/kitty"
export OPENER="`which-first xdg-open`"
export EDITOR=`which-first hx nvim vim vi ed`
export EDITOR=`which-first nvim vim vi ed`
export VISUAL="$EDITOR"
export GIT_EDITOR="$VISUAL"
@ -140,11 +130,6 @@ fi
export CLI_DMENU=`which-first fzf`
export CLI_FILE_MANAGER=`which-first lf`
# Xorg
export XAUTHORITY=$HOME/.Xauthority
export XINITRC=$ETC/x/xinitrc
# GUI programs.
export XCOMPOSER='river'
export XTERMINAL='kitty -1 --instance-group "$DISPLAY"'
export XINSIDE_TERMINAL='kitty -1 --instance-group "$DISPLAY"'
@ -185,6 +170,7 @@ export PATH="$PATH:$ANDROID_HOME/tools:$ANDROID_HOME/tools/bin:$ANDROID_HOME/pla
#export PATH="$PATH:$ANDROID_SDK_HOME/cmdline-tools/*/bin"
source-if-exist "$ETC/script/lf.sh"
test -r $SETENV && . "$SETENV" && setenv profile
# Visual editor.
ve(){
@ -211,17 +197,11 @@ manf() {
echo No 'no $CLI_DMENU env'
return 1
fi
pagename=`man -k . | $CLI_DMENU -e -1 $(if test ! -z $@ ; then echo -- -q "$@" ; fi ) | awk '{print $1}'`
if test -z "$pagename" ; then
return 1
fi
man "$pagename"
man `man -k . | $CLI_DMENU -e -1 $(if test ! -z $@ ; then echo -- -q "$@" ; fi ) | awk '{print $1}'`
}
export GPG_TTY=$(tty)
export SSH_TTY=$(tty)
test -r "$SETENV" && . "$SETENV" && setenv profile
. "$HOME/.cargo/env"

View file

@ -114,27 +114,23 @@ seta "cl_damagetext_2d_alpha_lifetime" "1.29999995"
seta "cl_damagetext_2d_pos" "0.469999999 0.529999971 0"
seta "cl_damagetext_accumulate_lifetime" "-1"
seta "cl_damagetext_lifetime" "-1"
seta "cl_damagetext_offset" "0 -40 0"
seta "cl_damagetext_size" "8"
seta "cl_damagetext_velocity" "0 0 20"
seta "cl_eventchase_death" "0"
"cl_forwardspeed" "360"
seta "cl_freeze" "0"
seta "cl_magical_hax" ""
seta "cl_matchcount" "521"
seta "cl_matchcount" "488"
"cl_movement_track_canjump" "1"
seta "cl_nocarry" "0"
seta "cl_nohats" "0"
seta "cl_noride" "0"
seta "cl_particles_newvortexbeam" "0"
"cl_particles_quality" "0.4"
seta "cl_race_checkpoint_splits_console" "1"
seta "cl_race_checkpoint_splits_hud" "1"
seta "cl_radio" "1"
"cl_sidespeed" "360"
"cl_smoothviewheight" "0"
seta "cl_spawn_point_particles" "0"
seta "cl_startcount" "124"
seta "cl_startcount" "110"
"cl_upspeed" "360"
seta "cl_vaporizerbeam" "0"
seta "cl_vaporizerbeam_minping" "160"
@ -169,7 +165,7 @@ seta "hud_cursormode" "0"
seta "hud_panel_quickmenu_file" "quickmenu.txt"
"m_accelerate" "0"
"m_filter" "1"
"mastervolume" "0.063096"
"mastervolume" "0.275423"
seta "menu_maxplayers" "1"
seta "menu_mouse_absolute" "0"
seta "menu_slist_showfull" "0"
@ -190,7 +186,6 @@ seta "notification_INFO_ITEM_WEAPON_UNAVAILABLE" "1"
"r_shadow_realtime_dlight" "0"
"r_shadow_usenormalmap" "0"
"r_subdivisions_tolerance" "8"
"r_viewfbo" "2"
"sensitivity" "8"
seta "snd_channel8volume" "0"
"sv_curl_serverpackages" "csprogs-xonotic-v0.8.2~.txt"
@ -200,5 +195,4 @@ seta "timelimit_override" "0"
"v_contrastboost" "1.1"
"vid_conwidth" "1067"
"vid_height" "1080"
"vid_vsync" "1"
"vid_width" "1920"

View file

@ -664,5 +664,4 @@ x-scheme-handler/vnd.libreoffice.cmis=libreoffice-startcenter.desktop;
x-scheme-handler/vnd.libreoffice.command=libreoffice-startcenter.desktop;
x-scheme-handler/vnd.sun.star.webdav=libreoffice-startcenter.desktop;
x-scheme-handler/vnd.sun.star.webdavs=libreoffice-startcenter.desktop;
x-scheme-handler/tg=telegram-desktop_telegram-desktop.desktop

View file

@ -5,12 +5,6 @@ vim.filetype.add({
},
})
vim.filetype.add({
extension = {
xgo = "tengo",
},
})
createAutoCmd = vim.api.nvim_create_autocmd
--
-- Basic thing for compiling languages.

View file

@ -18,13 +18,10 @@ riverctl background-color 0x000000
riverctl border-color-unfocused 0x586e75
# Note: the "Super" modifier is also known as Logo, GUI, Windows, Mod4, etc.
#
riverctl map normal Super B spawn "pkill waybar || waybar"
# Super+Shift+Return to start an instance of foot (https://codeberg.org/dnkl/foot)
riverctl map normal Super+Shift Return spawn "eval $XTERMINAL"
riverctl map normal Super+Alt+Shift Return spawn "eval $XTERMINAL tmux"
riverctl map normal Super+Shift Return spawn 'eval $XTERMINAL'
riverctl map normal Super+Alt+Shift Return spawn 'eval $XTERMINAL tmux'
#riverctl map normal Super+Alt+Shift Return spawn '$ETC/river/mterm'
# Close the focused view.

View file

@ -1,3 +0,0 @@
export __NV_PRIME_RENDER_OFFLOAD=1
export __GLX_VENDOR_LIBRARY_NAME=nvidia
export __VK_LAYER_NV_optimus=NVIDIA_only

View file

@ -1,25 +0,0 @@
// Zed settings
//
// For information on how to configure Zed, see the Zed
// documentation: https://zed.dev/docs/configuring-zed
//
// To see all of Zed's default settings without changing your
// custom settings, run `zed: open default settings` from the
// command palette
{
"assistant": {
"default_model": {
"provider": "ollama",
"model": "codellama:latest"
},
"version": "2"
},
"vim_mode": true,
"ui_font_size": 16,
"buffer_font_size": 16,
"theme": {
"mode": "system",
"light": "Andromeda",
"dark": "One Dark"
}
}

View file

@ -1,6 +0,0 @@
[
{
"label": "echo current file's path",
"command": "echo $ZED_FILE"
}
]