mirror of
https://github.com/adi1090x/rofi.git
synced 2024-11-22 22:28:21 -05:00
Made the hostname UNIX-universal
This commit is contained in:
parent
7069fdc87b
commit
228163c739
@ -15,7 +15,7 @@ theme='style-1'
|
|||||||
|
|
||||||
# CMDs
|
# CMDs
|
||||||
uptime="`uptime -p | sed -e 's/up //g'`"
|
uptime="`uptime -p | sed -e 's/up //g'`"
|
||||||
host=`hostname`
|
host=$(uname -a | awk '{print $2}')
|
||||||
|
|
||||||
# Options
|
# Options
|
||||||
shutdown=' Shutdown'
|
shutdown=' Shutdown'
|
||||||
|
@ -16,7 +16,7 @@ theme='style-1'
|
|||||||
|
|
||||||
# CMDs
|
# CMDs
|
||||||
uptime="`uptime -p | sed -e 's/up //g'`"
|
uptime="`uptime -p | sed -e 's/up //g'`"
|
||||||
host=`hostname`
|
host=$(uname -a | awk '{print $2}')
|
||||||
|
|
||||||
# Options
|
# Options
|
||||||
shutdown=''
|
shutdown=''
|
||||||
|
@ -15,7 +15,7 @@ theme='style-1'
|
|||||||
|
|
||||||
# CMDs
|
# CMDs
|
||||||
uptime="`uptime -p | sed -e 's/up //g'`"
|
uptime="`uptime -p | sed -e 's/up //g'`"
|
||||||
host=`hostname`
|
host=$(uname -a | awk '{print $2}')
|
||||||
|
|
||||||
# Options
|
# Options
|
||||||
shutdown=''
|
shutdown=''
|
||||||
|
@ -15,7 +15,7 @@ theme='style-5'
|
|||||||
|
|
||||||
# CMDs
|
# CMDs
|
||||||
uptime="`uptime -p | sed -e 's/up //g'`"
|
uptime="`uptime -p | sed -e 's/up //g'`"
|
||||||
host=`hostname`
|
host=$(uname -a | awk '{print $2}')
|
||||||
|
|
||||||
# Options
|
# Options
|
||||||
shutdown=''
|
shutdown=''
|
||||||
|
@ -16,7 +16,7 @@ theme='style-1'
|
|||||||
# CMDs
|
# CMDs
|
||||||
lastlogin="`last $USER | head -n1 | tr -s ' ' | cut -d' ' -f5,6,7`"
|
lastlogin="`last $USER | head -n1 | tr -s ' ' | cut -d' ' -f5,6,7`"
|
||||||
uptime="`uptime -p | sed -e 's/up //g'`"
|
uptime="`uptime -p | sed -e 's/up //g'`"
|
||||||
host=`hostname`
|
host=$(uname -a | awk '{print $2}')
|
||||||
|
|
||||||
# Options
|
# Options
|
||||||
hibernate=''
|
hibernate=''
|
||||||
|
@ -16,7 +16,7 @@ theme='style-1'
|
|||||||
# CMDs
|
# CMDs
|
||||||
lastlogin="`last $USER | head -n1 | tr -s ' ' | cut -d' ' -f5,6,7`"
|
lastlogin="`last $USER | head -n1 | tr -s ' ' | cut -d' ' -f5,6,7`"
|
||||||
uptime="`uptime -p | sed -e 's/up //g'`"
|
uptime="`uptime -p | sed -e 's/up //g'`"
|
||||||
host=`hostname`
|
host=$(uname -a | awk '{print $2}')
|
||||||
|
|
||||||
# Options
|
# Options
|
||||||
hibernate=''
|
hibernate=''
|
||||||
|
Loading…
Reference in New Issue
Block a user