From 3f45971851ec7d283701191eec9e693cf65efcb7 Mon Sep 17 00:00:00 2001 From: Severin Kaderli Date: Tue, 12 Feb 2019 21:05:59 +0100 Subject: [PATCH] Add script for launching gw2 and httpie configuration Signed-off-by: Severin Kaderli --- README.md | 4 ++-- install.sh | 2 +- system/.config/autokey/autokey.json | 2 +- system/.config/htop/htoprc | 26 ----------------------- system/.config/httpie/config.json | 8 +++++++ system/.env | 9 +++++--- system/bin/gw2.sh | 33 +++++++++++++++++++++++++++++ 7 files changed, 51 insertions(+), 33 deletions(-) delete mode 100644 system/.config/htop/htoprc create mode 100644 system/.config/httpie/config.json create mode 100755 system/bin/gw2.sh diff --git a/README.md b/README.md index 884eace..7aa831a 100644 --- a/README.md +++ b/README.md @@ -45,8 +45,8 @@ This folder contains my git configuration. ### `.config/gtk-3.0` This folder contains my GTK 3.0 configuration. I don't edit this configuration directly but use [LXAppearance](https://www.archlinux.org/packages/community/x86_64/lxappearance/) for configuring. -### `.config/htop` -This folder contains my configuration for [htop](https://hisham.hm/htop/). +### `.config/httpie` +This folder contains my configuration for [httpie](https://github.com/jakubroztocil/httpie). ### `.config/i3` This folder contains the configuration for my preferred window manager diff --git a/install.sh b/install.sh index 06030a6..27188b5 100755 --- a/install.sh +++ b/install.sh @@ -42,7 +42,7 @@ LINKED_FILES_HOME=( ".config/dunst" ".config/git" ".config/gtk-3.0" - ".config/htop" + ".config/httpie" ".config/i3" ".config/mpv" ".config/polybar" diff --git a/system/.config/autokey/autokey.json b/system/.config/autokey/autokey.json index ca68a17..8cdbfac 100644 --- a/system/.config/autokey/autokey.json +++ b/system/.config/autokey/autokey.json @@ -1,5 +1,5 @@ { - "version": "0.95.4", + "version": "0.95.6", "userCodeDir": null, "settings": { "isFirstRun": true, diff --git a/system/.config/htop/htoprc b/system/.config/htop/htoprc deleted file mode 100644 index 1053cbf..0000000 --- a/system/.config/htop/htoprc +++ /dev/null @@ -1,26 +0,0 @@ -# Beware! This file is rewritten by htop when settings are changed in the interface. -# The parser is also very primitive, and not human-friendly. -fields=0 48 17 18 38 39 40 2 46 47 49 1 -sort_key=46 -sort_direction=1 -hide_threads=0 -hide_kernel_threads=1 -hide_userland_threads=0 -shadow_other_users=0 -show_thread_names=0 -show_program_path=1 -highlight_base_name=0 -highlight_megabytes=1 -highlight_threads=1 -tree_view=0 -header_margin=1 -detailed_cpu_time=0 -cpu_count_from_zero=0 -update_process_names=0 -account_guest_in_cpu_meter=0 -color_scheme=6 -delay=15 -left_meters=LeftCPUs Memory Swap -left_meter_modes=1 1 1 -right_meters=RightCPUs Tasks LoadAverage Uptime -right_meter_modes=1 2 2 2 diff --git a/system/.config/httpie/config.json b/system/.config/httpie/config.json new file mode 100644 index 0000000..eb50c8e --- /dev/null +++ b/system/.config/httpie/config.json @@ -0,0 +1,8 @@ +{ + "__meta__": { + "about": "HTTPie configuration file", + "help": "https://httpie.org/doc#config", + "httpie": "1.0.2" + }, + "default_options": [] +} diff --git a/system/.env b/system/.env index f34c6fa..4fc8ab8 100644 --- a/system/.env +++ b/system/.env @@ -14,9 +14,12 @@ . "${HOME}/bin/utils.sh" # XDG_Base_Directories -export XDG_CONFIG_HOME="$HOME/.config" -export XDG_CACHE_HOME="$HOME/.cache" -export XDG_DATA_HOME="$HOME/.local/share" +export XDG_CONFIG_HOME="${HOME}/.config" +export XDG_CACHE_HOME="${HOME}/.cache" +export XDG_DATA_HOME="${HOME}/.local/share" + +# XDG Overrides for unsupported programs +export HTTPIE_CONFIG_DIR="${XDG_CONFIG_HOME}/httpie" # Bash export HISTCONTROL=ignoreboth diff --git a/system/bin/gw2.sh b/system/bin/gw2.sh new file mode 100755 index 0000000..4a20fd5 --- /dev/null +++ b/system/bin/gw2.sh @@ -0,0 +1,33 @@ +#!/bin/bash +# +# SCRIPT NAME: +# gw2.sh +# +# AUTHOR: +# Severin Kaderli +# +# DESCRIPTION: +# Starts Guild Wars 2 inside Wine. +# +# USAGE: +# ./gw2.sh +# Set custom wineprefix +export WINEPREFIX="${HOME}/Games/Guild_Wars_2/" + +# Set wine to 64-bit +export WINEARCH=win64 + +# Optimize performance +export __GL_THREADED_OPTIMIZATIONS=0 +export __GL_SYNC_TO_VBLANK=0 +export __GL_YIELD="NOTHING" + +# Disable debug messages +export WINEDEBUG=-all +export LOGFILE=/dev/null + +# Enable esync +export WINEESYNC=1 + +# Run it using optirun +optirun -b primus wine64 "${WINEPREFIX}/drive_c/Program Files/Guild Wars 2/Gw2-64.exe" -dx9single -mapLoadInfo \ No newline at end of file