Skip to content

Instantly share code, notes, and snippets.

#!/bin/bash
/usr/bin/logger -t Move "Starting"
while :; do
if [ $(xprintidle) -gt 57000 ]
then
if [[ $(/usr/bin/wmctrl -l | grep Brave | wc -l) -ge 1 ]]
then
/usr/bin/logger -t Move "Moving"
#/usr/bin/wmctrl -l | grep Brave | grep -v Mozilla | sed -ne 's|^\([^ ]*\).*Brave.*|\1|p'
@Yanik39
Yanik39 / IRC client in pure bash
Created June 20, 2020 19:32 — forked from dwallraff/IRC client in pure bash
IRC client written in pure bash using only bash builtin commands and no other binaries.
#!/bin/bash
#no PATH, no way to accidently run any programs
PATH=''
#useful variables
term_height=0
term_width=0
term_scroll_height=0
status_line_row=0
@Yanik39
Yanik39 / vpn-refresh.sh
Created June 1, 2020 08:12 — forked from smcpeck/vpn-refresh.sh
Shell script to select fastest VPN location from available list
#!/bin/bash
# Set your VPN up with this guide: https://gist.github.com/superjamie/ac55b6d2c080582a3e64
# This runs nicely on a Raspberry Pi that is setup to be your gateway.
# Requires: speedtest-cli, openvpn
# Assuming you have config files of:
# /etc/openvpn/newyork.conf
# /etc/openvpn/chicago.conf