Browse Source

changing scripts slightly

master
TiynGER 7 months ago
parent
commit
0130de12b4
9 changed files with 15 additions and 6 deletions
  1. +1
    -1
      .local/bin/etc/textemp
  2. +1
    -1
      .local/bin/etc/vpnmenu
  3. +3
    -0
      .local/bin/private/stronghold
  4. +3
    -0
      .local/bin/private/swp_client
  5. +3
    -0
      .local/bin/private/swp_server
  6. +1
    -1
      .local/bin/suckless/suckdiff
  7. +1
    -1
      .local/bin/suckless/suckmerge
  8. +1
    -1
      .local/bin/tools/dwm/togglemonitor
  9. +1
    -1
      .local/bin/tools/dwm/toggletouchpad

+ 1
- 1
.local/bin/etc/textemp

@ -1,4 +1,4 @@
#!/usr/bin/env sh
#!/bin/bash
# copying tex templates # copying tex templates
[ -z "$2" ] && echo "missing argument: filename (no ending)" && return 1 [ -z "$2" ] && echo "missing argument: filename (no ending)" && return 1

+ 1
- 1
.local/bin/etc/vpnmenu

@ -1,4 +1,4 @@
#!/bin/sh
#!/bin/bash
active=$(nmcli connection show --active | grep vpn | cut -d' ' -f1) active=$(nmcli connection show --active | grep vpn | cut -d' ' -f1)
[[ ! -z "$active" ]] && { prompt "disconnect from $active?" || exit 1; } [[ ! -z "$active" ]] && { prompt "disconnect from $active?" || exit 1; }

+ 3
- 0
.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

+ 3
- 0
.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

+ 3
- 0
.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

+ 1
- 1
.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 # for showing the diffs to the master branch of a git directory according to my suckless patch structure
# e.g. see dwm/st/etc # e.g. see dwm/st/etc

+ 1
- 1
.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 # for merging all branches into the master branch of a git directory according to my suckless patch structure
# e.g. see dwm/st/etc # e.g. see dwm/st/etc

+ 1
- 1
.local/bin/tools/dwm/togglemonitor

@ -4,7 +4,7 @@
# by lukesmithxyz, checkout github.com/lukesmithxyz/voidrice # by lukesmithxyz, checkout github.com/lukesmithxyz/voidrice
intern=LVDS-1 intern=LVDS-1
extern=HDMI-1
extern=HDMI-2
(xrandr | grep "$extern disconnected") (xrandr | grep "$extern disconnected")
(xrandr --listactivemonitors | grep $extern) || ((xrandr --output $extern --right-of $intern --auto && setbg) & exit) (xrandr --listactivemonitors | grep $extern) || ((xrandr --output $extern --right-of $intern --auto && setbg) & exit)
(xrandr --listactivemonitors | grep $extern) && xrandr --output $extern --off (xrandr --listactivemonitors | grep $extern) && xrandr --output $extern --off

+ 1
- 1
.local/bin/tools/dwm/toggletouchpad

@ -1,4 +1,4 @@
#!/bin/sh
#!/bin/bash
# Toggle touchpad. Requires xf86-input-synaptics. # Toggle touchpad. Requires xf86-input-synaptics.
# by lukesmithxyz, checkout github.com/lukesmithxyz/voidrice # by lukesmithxyz, checkout github.com/lukesmithxyz/voidrice

Loading…
Cancel
Save