Skip to content
This repository has been archived by the owner on Jul 30, 2019. It is now read-only.
/ sysctrl Public archive

makes an api available to get and set ifconfig and x settings

Notifications You must be signed in to change notification settings

komola/sysctrl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

#network-graphics

This application offers an API to get and set the settings for ifconfig, iwconfig and xset, xdotool, ...

Set IP ifconfig eth0 192.168.1.1

Set Netmask ifconfig eth0 netmask 255.255.255.0

Set Gateway route add default gw 192.168.1.1

Set WLAN Update /etc/wpa_supplicant/wp_supplicant.conf wpa_supplicant -D wext -i wlan1 -c /etc/wpa_supplicant/wp_supplicant.conf

Set Resolution xrandr -s 1650x1080

Get IP os.networkInterfaces()

Get Netmask ifconfig "$1" | sed -rn '2s/ .:(.)$/\1/p'

Get Gateway ip route | awk '/default/ { print $3 }'

Get Resolutions xrandr -q

Get WLAN Scan rmmod r8712u modprobe r8712u ifconfig wlan1 up iwlist wlan1 scan

About

makes an api available to get and set ifconfig and x settings

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published