feat: Adding config files
This commit is contained in:
Executable
+10
@@ -0,0 +1,10 @@
|
||||
#!/bin/env bash
|
||||
|
||||
IFACE=$(ifconfig | grep tun0 | awk '{print $1}' | tr -d ':')
|
||||
|
||||
if [[ $IFACE == "tun0" ]]; then
|
||||
echo " HTB Conn"
|
||||
else
|
||||
echo " HTB Dis"
|
||||
fi
|
||||
|
||||
Executable
+3
@@ -0,0 +1,3 @@
|
||||
|
||||
uptime --pretty | sed 's/up //' | sed 's/\ minutes\?/m/' | sed 's/\ hours\?/h/' | sed 's/\ weeks\?/m/' | sed 's/\ years\?/m/' | sed 's/\ days\?/d/'
|
||||
|
||||
Executable
+11
@@ -0,0 +1,11 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
HDMI_state=$(xrandr --query | grep HDMI-1 | grep -w connected)
|
||||
if [[ ! -z $HDMI_state ]]; then
|
||||
xrandr --output eDP-1 --mode 1920x1080 --rate 75 --right-of HDMI-1 --auto
|
||||
notify-send "Output HDMI-1"
|
||||
else
|
||||
xrandr --output eDP-1 --auto
|
||||
notify-send "Output eDP-1"
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user