From 0130de12b4a435654dca9eff4d13cc8e20ce62cd Mon Sep 17 00:00:00 2001 From: TiynGER Date: Mon, 4 May 2020 10:53:44 +0200 Subject: [PATCH] changing scripts slightly --- .local/bin/etc/textemp | 2 +- .local/bin/etc/vpnmenu | 2 +- .local/bin/private/stronghold | 3 +++ .local/bin/private/swp_client | 3 +++ .local/bin/private/swp_server | 3 +++ .local/bin/suckless/suckdiff | 2 +- .local/bin/suckless/suckmerge | 2 +- .local/bin/tools/dwm/togglemonitor | 2 +- .local/bin/tools/dwm/toggletouchpad | 2 +- 9 files changed, 15 insertions(+), 6 deletions(-) create mode 100755 .local/bin/private/stronghold create mode 100755 .local/bin/private/swp_client create mode 100755 .local/bin/private/swp_server diff --git a/.local/bin/etc/textemp b/.local/bin/etc/textemp index b4df3ff..d83562f 100755 --- a/.local/bin/etc/textemp +++ b/.local/bin/etc/textemp @@ -1,4 +1,4 @@ -#!/usr/bin/env sh +#!/bin/bash # copying tex templates [ -z "$2" ] && echo "missing argument: filename (no ending)" && return 1 diff --git a/.local/bin/etc/vpnmenu b/.local/bin/etc/vpnmenu index c294f80..48443b5 100755 --- a/.local/bin/etc/vpnmenu +++ b/.local/bin/etc/vpnmenu @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash active=$(nmcli connection show --active | grep vpn | cut -d' ' -f1) [[ ! -z "$active" ]] && { prompt "disconnect from $active?" || exit 1; } diff --git a/.local/bin/private/stronghold b/.local/bin/private/stronghold new file mode 100755 index 0000000..a836b85 --- /dev/null +++ b/.local/bin/private/stronghold @@ -0,0 +1,3 @@ +#!/bin/sh +winetricks sandbox +wine $WINEPREFIX/drive_c/Program\ Files/Stronghold\ Crusader\ Extreme/Stronghold_Crusader_Extreme.exe diff --git a/.local/bin/private/swp_client b/.local/bin/private/swp_client new file mode 100755 index 0000000..f947bf4 --- /dev/null +++ b/.local/bin/private/swp_client @@ -0,0 +1,3 @@ +#!/bin/sh + +mvn exec:java -Dexec.mainClass="de.uol.swp.client.Main" -f ~/gitrepos/uniOldenburg/inf004swp/Client diff --git a/.local/bin/private/swp_server b/.local/bin/private/swp_server new file mode 100755 index 0000000..e4b32d8 --- /dev/null +++ b/.local/bin/private/swp_server @@ -0,0 +1,3 @@ +#!/bin/sh + +mvn exec:java -Dexec.mainClass="de.uol.swp.server.ServerApp" -f ~/gitrepos/uniOldenburg/inf004swp/Server diff --git a/.local/bin/suckless/suckdiff b/.local/bin/suckless/suckdiff index a764ddb..6c91807 100755 --- a/.local/bin/suckless/suckdiff +++ b/.local/bin/suckless/suckdiff @@ -1,4 +1,4 @@ -#!/usr/bin/zsh +#!/bin/bash # for showing the diffs to the master branch of a git directory according to my suckless patch structure # e.g. see dwm/st/etc diff --git a/.local/bin/suckless/suckmerge b/.local/bin/suckless/suckmerge index 5eb80ea..1080095 100755 --- a/.local/bin/suckless/suckmerge +++ b/.local/bin/suckless/suckmerge @@ -1,4 +1,4 @@ -#!/bin/zsh +#!/bin/bash # for merging all branches into the master branch of a git directory according to my suckless patch structure # e.g. see dwm/st/etc diff --git a/.local/bin/tools/dwm/togglemonitor b/.local/bin/tools/dwm/togglemonitor index 3e34f1f..7ccc1e0 100755 --- a/.local/bin/tools/dwm/togglemonitor +++ b/.local/bin/tools/dwm/togglemonitor @@ -4,7 +4,7 @@ # by lukesmithxyz, checkout github.com/lukesmithxyz/voidrice intern=LVDS-1 -extern=HDMI-1 +extern=HDMI-2 (xrandr | grep "$extern disconnected") (xrandr --listactivemonitors | grep $extern) || ((xrandr --output $extern --right-of $intern --auto && setbg) & exit) (xrandr --listactivemonitors | grep $extern) && xrandr --output $extern --off diff --git a/.local/bin/tools/dwm/toggletouchpad b/.local/bin/tools/dwm/toggletouchpad index 8e4601f..cd61423 100755 --- a/.local/bin/tools/dwm/toggletouchpad +++ b/.local/bin/tools/dwm/toggletouchpad @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash # Toggle touchpad. Requires xf86-input-synaptics. # by lukesmithxyz, checkout github.com/lukesmithxyz/voidrice