GithubHelp home page GithubHelp logo

sadiksaifi / wofi-network-manager Goto Github PK

View Code? Open in Web Editor NEW

This project forked from p3rf/rofi-network-manager

1.0 0.0 0.0 1.16 MB

A manager for network connections using bash, wofi, nmcli,qrencode for wayland/wlroots.

License: MIT License

Shell 94.46% CSS 5.54%
linux network-manager rofi wofi wofi-network-manger

wofi-network-manager's Introduction

Wofi-NetWork-manager

A Network manager using wofi for Wayland/wlroots compositors like sway, wayfire, hyperland etc . Inspired from rofi-wifi-menu.

Table of Contents

Requirements

  • NetworkManager (nmcli)
  • wofi
  • Notification Daemon (Optional) (For notifications)
  • nm-connection-editor (Optional) (For editing connections)
  • qrencode (Optional) (For sharing wifi with qrcode)

Features

  • Connect to an existing network
  • Disconnect from the network
  • Turn on/off wifi
  • Support for Multiple wifi devices
    • Option to change between wifi devices when available
  • Manual Connection to a Access Point or a hidden one
  • Turn on/off ethernet
    • See when ethernet is unavailable
  • Restart the network
  • Status
    • See devices Connection name and local IP
  • See Current wifi password and share it with a qrcode
  • Connect to pre-configure VPNs

Screenshots

Desktop Options

Config

wofi-network-manager.conf

# Location
#This sets the anchor point:
# +---------- +
# | 1 | 2 | 3 |
# | 8 | 0 | 4 |
# | 7 | 6 | 5 |
# +-----------+
#If you want the window to be in the upper right corner, set location to 3.
LOCATION=0
QRCODE_LOCATION=$LOCATION
#X, Y Offset
Y_AXIS=0
X_AXIS=0
#Use notifications or not
# Values on / off
NOTIFICATIONS_INIT="off"
#Location of qrcode wifi image
QRCODE_DIR="/tmp/"
# WIDTH_FIX_MAIN/WIDTH_FIX_STATUS needs to be increased or decreased , if the text
# doesn't fit or it has too much space at the end when you launch rofi-network-manager.
#It depends on the font type and size.
WIDTH_FIX_MAIN=1
WIDTH_FIX_STATUS=10

wofi-network-manager.css

font: "DejaVu Sans Mono 9";       //Font
//Colors
foreground:#f8f8f2;               //Text
background:#0A1229;               //Background
accent:#00BCD4;                   //Highlight
foreground-selection:@foreground; //Selection_fg
background-selection:#e34039;     //Selection_bg

Download-Usage

git clone https://github.com/sadikeey/wofi-network-manager.git
cd wofi-network-manager
bash "./wofi-network-manager.sh"

Examples-Usage

Polybar modules

[module/wireless-network]
type = internal/network
interface = wlan0
interval = 3.0
unknown-as-up = true
format-connected-background = ${colors.background}
format-connected-foreground = ${colors.foreground}
format-connected-padding = 1
format-connected = %{A1:$HOME/.../wofi-network-manager/wofi-network-manager.sh:}<ramp-signal> <label-connected>%{A}
label-connected = %essid%/%local_ip%
format-disconnected-background = ${colors.background}
format-disconnected-foreground = ${colors.foreground}
format-disconnected-padding = 1
format-disconnected = %{A1:$HOME/.../wofi-network-manager/wofi-network-manager.sh:}<label-disconnected>%{A}
label-disconnected =""
ramp-signal-0 = "󰤯"
ramp-signal-1 = "󰤟"
ramp-signal-2 = "󰤢"
ramp-signal-3 = "󰤥"
ramp-signal-4 = "󰤨"
ramp-signal-foreground = ${colors.white}
[module/wired-network]
type = internal/network
interface = eth0
interval = 3.0
format-connected-background = ${colors.background}
format-connected-foreground = ${colors.foreground}
format-connected-padding = 1
format-connected = %{A1:$HOME/.../wofi-network-manager/wofi-network-manager.sh:}<label-connected>%{A}
label-connected =  %local_ip%
format-disconnected-background = ${colors.background}
format-disconnected-foreground = ${colors.foreground-alt}
format-disconnected-padding = 1
format-disconnected = %{A1:$HOME/.../wofi-network-manager/wofi-network-manager.sh:}<label-disconnected>%{A}
label-disconnected ="󰌺"

ToDo

  • Fix notifications
  • Add notifications icons
  • Support for multiple wifi devices
  • Add Hotspot support
  • Share wifi password with qrcode inside rofi
  • Find a way to manage duplicate Access Points

wofi-network-manager's People

Contributors

arkhan avatar hyperupcall avatar sadiksaifi avatar

Stargazers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.