From dd39ecb6f5358b4ad3c404c5594213fdb058e96d Mon Sep 17 00:00:00 2001 From: stupidcomputer Date: Thu, 19 Dec 2024 17:20:18 -0600 Subject: [PATCH] add some misc dots --- lappy/config/bash/bashrc | 5 +++ lappy/config/bash/profile | 3 ++ lappy/config/default.nix | 9 ++++++ lappy/config/lynx/lynx.cfg | 56 +++++++++++++++++++++++++++++++++ lappy/config/python/pythonrc.py | 17 ++++++++++ lappy/config/tmux/tmux.conf | 0 lappy/configuration.nix | 15 +++++++++ 7 files changed, 105 insertions(+) create mode 100644 lappy/config/lynx/lynx.cfg create mode 100644 lappy/config/python/pythonrc.py create mode 100644 lappy/config/tmux/tmux.conf diff --git a/lappy/config/bash/bashrc b/lappy/config/bash/bashrc index e97332c..09008fd 100644 --- a/lappy/config/bash/bashrc +++ b/lappy/config/bash/bashrc @@ -5,6 +5,11 @@ # some housekeeping alias ls="ls --color=auto --group-directories-first" +alias weather="curl https://wttr.in" +alias lynx="lynx -cfg=$LYNX_CFG_PATH/lynx.cfg" +alias elinks="TERM='xterm-color' elinks" +alias pkgsearch="nix search nixpkgs" +alias reload=". ~/.config/bash/profile" function cd() { builtin cd "$@" && ls --color=auto --group-directories-first diff --git a/lappy/config/bash/profile b/lappy/config/bash/profile index b1d8f6b..5e6f2b7 100644 --- a/lappy/config/bash/profile +++ b/lappy/config/bash/profile @@ -35,6 +35,9 @@ export GTK_THEME="earth" # elinks export ELINKS_CONFDIR="$XDG_CONFIG_HOME/elinks" +# lynx +export LYNX_CFG_PATH="$XDG_CONFIG_HOME/lynx" + # dbus configuration export DBUS_SESSION_BUS_ADDRESS="unix:path=$XDG_RUNTIME_DIR/bus" diff --git a/lappy/config/default.nix b/lappy/config/default.nix index 2f417a9..68395ae 100644 --- a/lappy/config/default.nix +++ b/lappy/config/default.nix @@ -37,6 +37,9 @@ mkdir -p /home/usr/.config/khard ${pkgs.coreutils}/bin/ln -sf /home/usr/dots/lappy/config/khard/khard.conf /home/usr/.config/khard/khard.conf + mkdir -p /home/usr/.config/lynx + ${pkgs.coreutils}/bin/ln -sf /home/usr/dots/lappy/config/lynx/lynx.cfg /home/usr/.config/lynx/lynx.cfg + mkdir -p /home/usr/.config/msmtp ${pkgs.coreutils}/bin/ln -sf /home/usr/dots/lappy/config/msmtp/config /home/usr/.config/msmtp/config @@ -46,6 +49,9 @@ mkdir -p /home/usr/.config/nvim ${pkgs.coreutils}/bin/ln -sf /home/usr/dots/lappy/config/nvim/init.lua /home/usr/.config/nvim/init.lua + mkdir -p /home/usr/.config/python + ${pkgs.coreutils}/bin/ln -sf /home/usr/dots/lappy/config/python/pythonrc.py /home/usr/.config/python/pythonrc.py + mkdir -p /home/usr/.config/rbw ${pkgs.coreutils}/bin/ln -sf /home/usr/dots/lappy/config/rbw/config.json /home/usr/.config/rbw/config.json @@ -57,6 +63,9 @@ mkdir -p /home/usr/.config/sx ${pkgs.coreutils}/bin/ln -sf /home/usr/dots/lappy/config/sx/sxrc /home/usr/.config/sx/sxrc + mkdir -p /home/usr/.config/tmux + ${pkgs.coreutils}/bin/ln -sf /home/usr/dots/lappy/config/tmux/tmux.conf /home/usr/.config/tmux/tmux.conf + mkdir -p /home/usr/.config/todoman ${pkgs.coreutils}/bin/ln -sf /home/usr/dots/lappy/config/todoman/config.py /home/usr/.config/todoman/config.py diff --git a/lappy/config/lynx/lynx.cfg b/lappy/config/lynx/lynx.cfg new file mode 100644 index 0000000..6ff589e --- /dev/null +++ b/lappy/config/lynx/lynx.cfg @@ -0,0 +1,56 @@ +accept_all_cookies=off +anonftp_password= +bookmark_file=lynx_bookmarks.html +case_sensitive_searching=off +character_set=Western (ISO-8859-1) +cookie_accept_domains= +cookie_file= +cookie_loose_invalid_domains= +cookie_query_invalid_domains= +cookie_reject_domains= +cookie_strict_invalid_domains= +dir_list_order=ORDER_BY_NAME +dir_list_style=MIXED_STYLE +emacs_keys=off +file_editor= +file_sorting_method=BY_FILENAME +keypad_mode=LINKS_ARE_NOT_NUMBERED +lineedit_mode=Default Binding +multi_bookmarkB= +multi_bookmarkC= +multi_bookmarkD= +multi_bookmarkE= +multi_bookmarkF= +multi_bookmarkG= +multi_bookmarkH= +multi_bookmarkI= +multi_bookmarkJ= +multi_bookmarkK= +multi_bookmarkL= +multi_bookmarkM= +multi_bookmarkN= +multi_bookmarkO= +multi_bookmarkP= +multi_bookmarkQ= +multi_bookmarkR= +multi_bookmarkS= +multi_bookmarkT= +multi_bookmarkU= +multi_bookmarkV= +multi_bookmarkW= +multi_bookmarkX= +multi_bookmarkY= +multi_bookmarkZ= +personal_mail_address= +personal_mail_name= +preferred_charset= +preferred_language=en +select_popups=on +show_color=default +show_cursor=on +show_dotfiles=off +sub_bookmarks=OFF +user_mode=ADVANCED +verbose_images=on +vi_keys=off +visited_links=LAST_REVERSED diff --git a/lappy/config/python/pythonrc.py b/lappy/config/python/pythonrc.py new file mode 100644 index 0000000..71743f1 --- /dev/null +++ b/lappy/config/python/pythonrc.py @@ -0,0 +1,17 @@ +import os +import atexit +import readline + +history = os.path.join(os.path.expanduser('~'), '.cache/python_history') +try: + readline.read_history_file(history) +except OSError: + pass + +def write_history(): + try: + readline.write_history_file(history) + except OSError: + pass + +atexit.register(write_history) diff --git a/lappy/config/tmux/tmux.conf b/lappy/config/tmux/tmux.conf new file mode 100644 index 0000000..e69de29 diff --git a/lappy/configuration.nix b/lappy/configuration.nix index 34aba4f..a9d5080 100644 --- a/lappy/configuration.nix +++ b/lappy/configuration.nix @@ -64,6 +64,7 @@ tea neovim git + git-annex # audio cmus @@ -83,7 +84,21 @@ htop tmux rbw + elinks + lynx + jq + peaclock usbutils # for lsusb + pciutils # for lspci + kjv + epr + poppler_utils + ledger + gnuplot + anki-bin + + # for the remote access functionality + vscode-fhs ]; services = {