- Tajvani mintára alakíthatná át a chipgyártást Dél-Korea
- MoDT alaplapok 16-magos CPU-val, a Minisforum gondozásában
- Bemutatkozik az ASUS új, belépőszintű gaming notebookja, a V16
- Költséghatékonyságra törekszik a Patriot legújabb, PCI Express 4.0-s SSD-je
- Játékok futtatásán segít a legújabb GeForce driver gyorsjavítása
- AMD K6-III, és minden ami RETRO - Oldschool tuning
- Bemutatkozik az ASUS új, belépőszintű gaming notebookja, a V16
- Milyen videókártyát?
- Vezeték nélküli fejhallgatók
- Kompakt vízhűtés
- Gamer headsetek a felsőkategóriából
- HiFi műszaki szemmel - sztereó hangrendszerek
- Milyen széket vegyek?
- Mikrokontrollerek Arduino környezetben (programozás, építés, tippek)
- AMD GPU-k jövője - amit tudni vélünk
Új hozzászólás Aktív témák
-
7
addikt
~/.stalonetrayrc
withdrawn true
sticky true
window_type dock
decorations none
geometry 24x24-0-0
grow_gravity NW
icon_gravity SE
transparent false
background "#252729"
parent_bg true
icon_size 24
ignore_icon_resize true
#vertical true~/.config/openbox/scripts/sysinfo_v01.script (igen, saját script )
######## This is a script made
######## by 'derp'.
########
######## SysInfo script for OpenBox
######## v0.1
########
######## The author does not take
######## any responsibility for
######## what it might do to your
######## computer, though it's
######## improbable to do any harm.
########
######## You may share the script with
######## everyone and modify it for your
######## liking, as long as you
######## GIVE CREDIT.
########
######## To add it to Openbox, copy it to
######## your Openbox/scripts folder, which usually is at
######## ~/.config/openbox/scripts
########
######## edit your menu.xml file, which usually is at
######## ~/.config/openbox/menu.xml
######## and add the following line (in case you have the usual paths - if not, edit the path as needed):
########
########<menu execute="~/.config/openbox/scripts/sysinfo_v01.script" id="sysinfo-menu" label="SysInfo"/>
########
######## Below you will find the settings
######## (the script still needs to be tested)
######## settings
MountPoint1=$(echo /dev/sda1)
MountPoint2=$(echo /dev/sda3)
NetworkDevice1=$(echo eth0)
NetworkDevice2=$(echo eth1) #Uncomment some lines to make it work!
Battery=$(echo C178)
######## /settings
User=$(whoami)
Host=$(uname -n)
System=$(uname -s)
Release=$(uname -r)
Arch=$(uname -m)
SizeMountPoint1=$(df -HlT | grep "$MountPoint1")
SizeMountPoint2=$(df -HlT | grep "$MountPoint2")
NetDev1ip=$(/sbin/ifconfig "$NetworkDevice1" | grep "inet addr:" | sed "s/.*inet addr://" | sed "s/Bcast.*//")
NetDev1down=$(/sbin/ifconfig "$NetworkDevice1" | grep bytes | sed 's/.*RX bytes:[0-9]* (//' | sed 's/iB).*TX.*//' | sed 's/b).*TX.*//' | sed 's/).*TX.*//')
NetDev1up=$(/sbin/ifconfig "$NetworkDevice1" | grep bytes | sed 's/.*TX bytes:[0-9]* (//' | sed 's/iB)//' |sed 's/b).*//' | sed 's/).*//')
NetDev2ip=$(/sbin/ifconfig "$NetworkDevice1" | grep "inet addr:" | sed "s/.*inet addr://" | sed "s/Bcast.*//")
NetDev2down=$(/sbin/ifconfig "$NetworkDevice1" | grep bytes | sed 's/.*RX bytes:[0-9]* (//' | sed 's/iB).*TX.*//' | sed 's/b).*TX.*//' | sed 's/).*TX.*//')
NetDev2up=$(/sbin/ifconfig "$NetworkDevice1" | grep bytes | sed 's/.*TX bytes:[0-9]* (//' | sed 's/iB)//' |sed 's/b).*//' | sed 's/).*//')
DateDate=$(date '+Date ~ %Y.%m.%d. (%a)')
DateWeek=$(date '+Week ~ %W')
DateDay=$(date '+ Day ~ %j')
DateTime=$(date '+Time ~ %H:%M [%Z]')
UpTime=$(uptime | sed 's/.* up //' | sed 's/[0-9]* us.*//' | sed 's/ day,/d/' | sed 's/ days,/d /' | sed 's/:/h /' | sed 's/ min//'| sed 's/,/m/' | sed 's/ / /')
MemTotal=$(echo "scale = 2; ("$(cat /proc/meminfo | grep MemTotal: | awk '{print $2}' | sed 's/k//')" /1024)" | bc)
MemFree=$(echo "scale = 2; ("$(cat /proc/meminfo | grep MemFree: | awk '{print $2}' | sed 's/k//')" /1024) + ("$(cat /proc/meminfo | grep grep -m 1 Cached: | awk '{print $2}' | sed 's/k//')" /1024)" | bc)
MemUsed=$(echo "scale = 2; ("$(cat /proc/meminfo | grep MemTotal: | awk '{print $2}' | sed 's/k//')" /1024) - (("$(cat /proc/meminfo | grep MemFree: | awk '{print $2}' | sed 's/k//')" /1024) + ("$(cat /proc/meminfo | grep -m 1 Cached: | awk '{print $2}' | sed 's/k//')" /1024))" | bc)
SwpTotal=$(echo "scale = 2; ("$(cat /proc/meminfo | grep SwapTotal: | awk '{print $2}' | sed 's/k//')" /1024)" | bc)
SwpFree=$(echo "scale = 2; ("$(cat /proc/meminfo | grep SwapFree: | awk '{print $2}' | sed 's/k//')" /1024)" | bc)
SwpUsed=$(echo "scale = 2; ("$(cat /proc/meminfo | grep SwapTotal: | awk '{print $2}' | sed 's/k//')" /1024) - ("$(cat /proc/meminfo | grep SwapFree: | awk '{print $2}' | sed 's/k//')" /1024)" | bc)
MemUsedPercent=$(echo "scale = 2; (("$(cat /proc/meminfo | grep MemTotal: | awk '{print $2}' | sed 's/k//')" /1024) - (("$(cat /proc/meminfo | grep MemFree: | awk '{print $2}' | sed 's/k//')" /1024) + ("$(cat /proc/meminfo | grep -m 1 Cached: | awk '{print $2}' | sed 's/k//')" /1024))) / ("$(cat /proc/meminfo | grep MemTotal: | awk '{print $2}' | sed 's/k//')" /1024) *100" | bc)
SwpUsedPercent=$(echo "scale = 2; (("$(cat /proc/meminfo | grep SwapTotal: | awk '{print $2}' | sed 's/k//')" /1024) - ("$(cat /proc/meminfo | grep SwapFree: | awk '{print $2}' | sed 's/k//')" /1024)) / ("$(cat /proc/meminfo | grep SwapTotal: | awk '{print $2}' | sed 's/k//')" /1024) *100" | bc)
CPUmodel=$(cat /proc/cpuinfo | grep "model name" | sed 's/.*: //')
CPUfreq=$(cat /proc/cpuinfo | grep -m 1 "cpu MHz" | sed 's/.*: //')
CPUcache=$(cat /proc/cpuinfo | grep -m 1 "cache size" | sed 's/.*: //')
battery_max=`cat /proc/acpi/battery/C178/info | head -3 | tail -1 | sed 's/[^0-9]//g'`
battery_current=`cat /proc/acpi/battery/C178/state | head -5 | tail -1 | sed 's/[^0-9]//g'`
battery_level="`echo "100 * $battery_current / $battery_max" | bc`"
battery_state=`cat /proc/acpi/battery/C178/state | head -3 | tail -1 | sed 's/.*[[:blank:]]//g'`
echo "<openbox_pipe_menu>"
echo "<separator label=\"$User @ $Host\"/>"
echo "<item label=\"$System $Release $Arch\"/>"
echo "<separator label = \"Filesystems\"/>"
echo "<item label=\"Filesystem ~~ Type ~~ Total ~ Used ~ Free ~ % ~ Mntpnt\"/>"
echo "<item label=\"$SizeMountPoint1\"/>"
echo "<item label=\"$SizeMountPoint2\"/>"
echo "<separator label=\"CPU ~ RAM ~ Swap ~ Battery | Used/Total\"/>"
echo "<item label=\"RAM used: $MemUsed MiB/$MemTotal MiB ~ $MemUsedPercent%\"/>"
echo "<item label=\"Swp used: $SwpUsed MiB/$SwpTotal MiB ~ $SwpUsedPercent%\"/>"
echo "<item label=\"CPU ~ $CPUmodel\"/>"
echo "<item label=\"CPU @ $CPUfreq MHz ~ CPU Cache: $CPUcache\"/>"
echo "<item label=\"Battery: $battery_level% ~ $battery_state\"/>"
echo "<separator label = \"Network ~ "$NetworkDevice1"\"/>"
echo "<item label=\""$NetworkDevice1" ~ ip: $NetDev1ip\"/>"
echo "<item label=\""$NetworkDevice1" ~ downloaded: "$NetDev1down"iB\"/>"
echo "<item label=\""$NetworkDevice1" ~ uploaded: "$NetDev1up"iB\"/>"
#echo "<separator label = \"Network ~ "$NetworkDevice2" \"/>"
#echo "<item label=\""$NetworkDevice1" ~ ip: $NetDev2ip\"/>"
#echo "<item label=\""$NetworkDevice1" ~ downloaded: "$NetDev2down"iB\"/>"
#echo "<item label=\""$NetworkDevice1" ~ uploaded: "$NetDev2up"iB\"/>"
echo "<separator label = \"Date ~ Time\"/>"
echo "<item label=\"$DateDate\"/>"
echo "<item label=\"$DateWeek\"/>"
echo "<item label=\"$DateDay\"/>"
echo "<item label=\"$DateTime\"/>"
echo "<item label=\" Up ~ $UpTime\"/>"
echo "</openbox_pipe_menu>"[ Szerkesztve ]
Új hozzászólás Aktív témák
- Nincs több iPhone 14, az iPhone Air-t viszont lassan már gyártják
- Letiltja az USA a politikusokat a telefonhívásokról és szöveges üzenetekről
- Path of Exile 2
- AMD K6-III, és minden ami RETRO - Oldschool tuning
- Bemutatkozik az ASUS új, belépőszintű gaming notebookja, a V16
- Autós topik
- Milyen videókártyát?
- Windows 11
- Nők, nőügyek (18+)
- Vezeték nélküli fejhallgatók
- További aktív témák...
- Új, makulátlan Asus TUF Gaming A15 FA507 (FA507NUR-LP005), Mecha szürke, 3 év garancia
- Lenovo Yoga Pro 7i Profi Ultrabook -30% 14,5 Brutális i7-13700H 14Mag 16/1TB Intel Iris Xe 2,5K 90Hz
- Lenovo LOQ 15irh8
- Bontatlan Lenovo Yoga Pro 7 Profi Ultrabook -30% Ryzen 7 7840HS 8Mag 32/1TB 2,5K RadeonT 780M 4GB
- Különleges ITX PC (5800X3D 64GB 1TB RTX4060 LP) - Portal Companion Cube
Állásajánlatok
Cég: PCMENTOR SZERVIZ KFT.
Város: Budapest