From 3cb901253cb1b0a64aaa5b1cabcf02ce40480b02 Mon Sep 17 00:00:00 2001 From: Charlie39 Date: Mon, 27 Apr 2020 05:27:09 +0530 Subject: [PATCH 1/2] $XDG_CACHE_HOME env variable (#595) * $XDG_CACHE_HOME env variable XDG compliance * shortcut to cache directory * Update directories * Update directories * Update directories --- .config/directories | 3 ++- .zprofile | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.config/directories b/.config/directories index 707a1c7..879219c 100644 --- a/.config/directories +++ b/.config/directories @@ -6,5 +6,6 @@ m ~/Music pp ~/Pictures vv ~/Videos cf ${XDG_CONFIG_HOME:-$HOME/.config} -sc ~/.local/bin +cac ${XDG_CACHE_HOME:-$HOME/.cache} +sc ~/.local/bin mn /mnt diff --git a/.zprofile b/.zprofile index 3ef64d2..8a9643b 100644 --- a/.zprofile +++ b/.zprofile @@ -17,6 +17,7 @@ export READER="zathura" # ~/ Clean-up: export XDG_CONFIG_HOME="$HOME/.config" export XDG_DATA_HOME="$HOME/.local/share" +export XDG_CACHE_HOME="$HOME/.cache" #export XAUTHORITY="$XDG_RUNTIME_DIR/Xauthority" # This line will break some DMs. export NOTMUCH_CONFIG="${XDG_CONFIG_HOME:-$HOME/.config}/notmuch-config" export GTK2_RC_FILES="${XDG_CONFIG_HOME:-$HOME/.config}/gtk-2.0/gtkrc-2.0" From 161723e8a1966146a77759b3d1b4677f93fc7bd0 Mon Sep 17 00:00:00 2001 From: Luke Smith Date: Tue, 28 Apr 2020 08:45:46 -0400 Subject: [PATCH 2/2] Upstream problem with java not able to figure dwm's windows. Jetbrains products (intellij Idea and pycharm) and Netbeans draws grey windows in dwm(upstream bug). Intellij Idea will work with this two env vars. for pycharm, affected plebs may need to install the wmname tool (community repository) --- .zprofile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.zprofile b/.zprofile index 8a9643b..20c9a82 100644 --- a/.zprofile +++ b/.zprofile @@ -51,6 +51,8 @@ export LESS_TERMCAP_ue="$(printf '%b' '')" export LESSOPEN="| /usr/bin/highlight -O ansi %s 2>/dev/null" export QT_QPA_PLATFORMTHEME="gtk2" # Have QT use gtk2 theme. export MOZ_USE_XINPUT2="1" # Mozilla smooth scrolling/touchpads. +export _JAVA_AWT_WM_NONREPARENTING=1 # Java doesn't understand tiling windows +export AWT_TOOLKIT="MToolkit wmname LG3D" #May have to install wmname # This is the list for lf icons: export LF_ICONS="di=📁:\