Compare commits

...
2 Commits
Author SHA1 Message Date
Riyyi 82171e6684 Config: Add more XDG base directories 2022-08-12 13:57:00 +02:00
Riyyi a4bf47770c Config: Open terminal in current directory 2022-08-12 13:17:56 +02:00
3 changed files with 48 additions and 2 deletions
+13
View File
@@ -0,0 +1,13 @@
<?xml version="1.0" encoding="UTF-8"?>
<actions>
<action>
<icon>utilities-terminal</icon>
<name>Open Terminal Here</name>
<unique-id>1594675818593070-1</unique-id>
<command>urxvt -cd %f</command>
<description>Open Terminal in the Current Directory</description>
<patterns>*</patterns>
<startup-notify/>
<directories/>
</action>
</actions>
+19
View File
@@ -0,0 +1,19 @@
# -*- python -*-
import os
import atexit
import readline
history = os.path.join(os.environ['XDG_CACHE_HOME'], '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)
+16 -2
View File
@@ -1,4 +1,4 @@
## Settings #--- General ---#
# Directories # Directories
export CAPTURE="$HOME/pictures/screen-captures" export CAPTURE="$HOME/pictures/screen-captures"
@@ -20,11 +20,15 @@ export PLATFORMIO_HOME_DIR="$XDG_DATA_HOME/platformio"
export R_ENVIRON_USER="$XDG_CONFIG_HOME/R/Renviron" export R_ENVIRON_USER="$XDG_CONFIG_HOME/R/Renviron"
# HiDPI screen # HiDPI screen
# >>> hostname=arch-laptop # >>> hostname=arch-laptop
# export HIDPI=true # export HIDPI=true
# <<< # <<<
#--- Program Specific ---#
# Android
export ANDROID_HOME="$XDG_DATA_HOME/android"
# GPG # GPG
export GNUPGHOME="$XDG_CONFIG_HOME/gnupg" export GNUPGHOME="$XDG_CONFIG_HOME/gnupg"
@@ -67,6 +71,9 @@ export RANDFILE="$XDG_CACHE_HOME/rnd"
[ "$HIDPI" = true ] && export PANEL_HEIGHT=38 || export PANEL_HEIGHT=22 [ "$HIDPI" = true ] && export PANEL_HEIGHT=38 || export PANEL_HEIGHT=22
export PANEL_NAME="polybar_panel" export PANEL_NAME="polybar_panel"
# Python
export PYTHONSTARTUP="$XDG_CONFIG_HOME/python/pythonrc"
# Qt5 # Qt5
if [ "$HIDPI" = true ]; then if [ "$HIDPI" = true ]; then
export QT_AUTO_SCREEN_SCALE_FACTOR=0 export QT_AUTO_SCREEN_SCALE_FACTOR=0
@@ -74,6 +81,10 @@ if [ "$HIDPI" = true ]; then
fi fi
export QT_QPA_PLATFORMTHEME="qt5gtk2" export QT_QPA_PLATFORMTHEME="qt5gtk2"
# Rust
export CARGO_HOME="$XDG_DATA_HOME/cargo"
export RUSTUP_HOME="$XDG_DATA_HOME/rustup"
# Sudo # Sudo
export SUDO_ASKPASS="$HOME/.local/bin/rofipass" export SUDO_ASKPASS="$HOME/.local/bin/rofipass"
@@ -89,6 +100,9 @@ export BROWSER="firefox"
# Wget # Wget
export WGETRC="$XDG_CONFIG_HOME/wget/wgetrc" export WGETRC="$XDG_CONFIG_HOME/wget/wgetrc"
# Wine
export WINEPREFIX="$XDG_DATA_HOME/wine"
# WM # WM
export WM="bspwm" export WM="bspwm"