summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--linking_example.sh15
-rw-r--r--public/.bashrc4
-rwxr-xr-xpublic/.local/bin/dmenu-webshortcuts.sh1
-rw-r--r--public/code/dwm/config.h2
4 files changed, 13 insertions, 9 deletions
diff --git a/linking_example.sh b/linking_example.sh
index 2c539e6..f0b7a7e 100644
--- a/linking_example.sh
+++ b/linking_example.sh
@@ -1,12 +1,13 @@
-# If dotfiles is placed in home directory, the following commands should work.
-# Nevertheless, I don't maintain this file, so just use it as reference.
-
-# WARNING: if $HOME contains spaces this breaks
-
-dotfiles=$HOME/dotfiles
-
+# I don't maintain this file, use it ONLY AS REFERENCE
+#
+# WARNINGS:
+# * if $HOME contains spaces this breaks
+# * `ln -sf` overwrites the destination files
+#
# you can play with ln options (e.g., `ln -siv`)
+dotfiles=$HOME/mahcode/dotfiles
+
cd $HOME
ln -sf $dotfiles/public/.xbindkeysrc .xbindkeysrc
ln -sf $dotfiles/public/.xinitrc .xinitrc
diff --git a/public/.bashrc b/public/.bashrc
index e942344..bf832ac 100644
--- a/public/.bashrc
+++ b/public/.bashrc
@@ -79,7 +79,7 @@ ds=(
"$HOME/code/tex-live-native/build/bin/x86_64-linux"
"$HOME/.local/share/gem/ruby/3.0.0/bin"
"$HOME/.local/bin"
- "$HOME/dotfiles/public/.local/bin"
+ "$HOME/mahcode/dotfiles/public/.local/bin"
)
for d in "${ds[@]}"; do
if ! echo $PATH | grep -qE "(^|:)$d($|:)"; then
@@ -113,6 +113,8 @@ export LESS
# better `ls` (and other programs like `tree`) colors
eval "$(dircolors)"
+# container directory for many python venv
+export PYTHON_VENVS="$XDG_DATA_HOME/python/venvs"
# Extra programs
# --------------
diff --git a/public/.local/bin/dmenu-webshortcuts.sh b/public/.local/bin/dmenu-webshortcuts.sh
index e1d233c..5ab4f82 100755
--- a/public/.local/bin/dmenu-webshortcuts.sh
+++ b/public/.local/bin/dmenu-webshortcuts.sh
@@ -50,6 +50,7 @@ case "$keyword" in
"so") xdg-open "https://stackoverflow.com/search?q=${search_term// /+}" ;;
"gh") xdg-open "https://github.com/search?q=${search_term// /+}&type=repositories" ;;
"gl") xdg-open "https://about.gitlab.com/search?searchText=$search_term" ;;
+ "python") xdg-open "https://docs.python.org/3/search.html?q=${search_term// /+}" ;;
"pypi") xdg-open "https://pypi.org/search/?q=${search_term// /+}&o=" ;;
"npm") xdg-open "https://www.npmjs.com/search?q=${search_term// /+}" ;;
diff --git a/public/code/dwm/config.h b/public/code/dwm/config.h
index bfb050f..1e9ceb5 100644
--- a/public/code/dwm/config.h
+++ b/public/code/dwm/config.h
@@ -1,7 +1,7 @@
/* See LICENSE file for copyright and license details. */
/* appearance */
-static const unsigned int borderpx = 1; /* border pixel of windows */
+static const unsigned int borderpx = 0; /* border pixel of windows */
static const unsigned int snap = 32; /* snap pixel */
static const int showbar = 1; /* 0 means no bar */
static const int topbar = 1; /* 0 means bottom bar */