Compare commits

...

10 commits

Author SHA1 Message Date
5b2891eda2 ... 2024-12-19 13:56:59 +05:00
d1f944683b ... 2024-10-03 02:38:07 +05:00
a1d280d28c ... 2024-09-05 18:02:00 +05:00
27570dd9eb ... 2024-08-17 04:43:04 +05:00
4434a782ac . 2024-08-17 04:40:54 +05:00
950358594e ... 2024-08-17 00:45:52 +05:00
ec348f7d22 ... 2024-08-15 07:44:36 +05:00
a907e76550 .. 2024-08-02 12:23:52 +05:00
2944306588 ... 2024-08-01 18:19:59 +05:00
85dcb183e3 fix: river: init. 2024-07-31 06:08:53 +05:00
10 changed files with 89 additions and 16 deletions

View file

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

View file

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

View file

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

View file

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

View file

@ -664,4 +664,5 @@ x-scheme-handler/vnd.libreoffice.cmis=libreoffice-startcenter.desktop;
x-scheme-handler/vnd.libreoffice.command=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.webdav=libreoffice-startcenter.desktop;
x-scheme-handler/vnd.sun.star.webdavs=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,6 +5,12 @@ vim.filetype.add({
}, },
}) })
vim.filetype.add({
extension = {
xgo = "tengo",
},
})
createAutoCmd = vim.api.nvim_create_autocmd createAutoCmd = vim.api.nvim_create_autocmd
-- --
-- Basic thing for compiling languages. -- Basic thing for compiling languages.

View file

@ -18,10 +18,13 @@ riverctl background-color 0x000000
riverctl border-color-unfocused 0x586e75 riverctl border-color-unfocused 0x586e75
# Note: the "Super" modifier is also known as Logo, GUI, Windows, Mod4, etc. # 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) # 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+Shift Return spawn "eval $XTERMINAL"
riverctl map normal Super+Alt+Shift Return spawn 'eval $XTERMINAL tmux' riverctl map normal Super+Alt+Shift Return spawn "eval $XTERMINAL tmux"
#riverctl map normal Super+Alt+Shift Return spawn '$ETC/river/mterm' #riverctl map normal Super+Alt+Shift Return spawn '$ETC/river/mterm'
# Close the focused view. # Close the focused view.

3
script/use-nvidia.sh Normal file
View file

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

25
zed/settings.json Normal file
View file

@ -0,0 +1,25 @@
// 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"
}
}

6
zed/tasks.json Normal file
View file

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