Initial Commit
This commit is contained in:
+11
@@ -0,0 +1,11 @@
|
||||
# macOS Spotlight-like proportions
|
||||
width=600
|
||||
height=420
|
||||
location=center
|
||||
|
||||
# Behavior
|
||||
hide_scroll=true
|
||||
insensitive=true
|
||||
allow_images=true
|
||||
image_size=24
|
||||
dynamic_lines=true
|
||||
@@ -0,0 +1,57 @@
|
||||
/* Wofi macOS-style Gruvbox Theme */
|
||||
|
||||
window {
|
||||
margin: 0px;
|
||||
border: 1px solid #504945;
|
||||
border-radius: 12px;
|
||||
background-color: #282828;
|
||||
font-family:
|
||||
"JetBrains Mono", "San Francisco", "Helvetica Neue", sans-serif;
|
||||
font-size: 14px;
|
||||
}
|
||||
|
||||
#input {
|
||||
margin: 12px;
|
||||
padding: 10px 14px;
|
||||
border: 1px solid #3c3836;
|
||||
border-radius: 8px;
|
||||
color: #ebdbb2;
|
||||
background-color: #1d2021;
|
||||
}
|
||||
|
||||
#inner-box {
|
||||
margin: 4px 12px 12px 12px;
|
||||
background-color: transparent;
|
||||
}
|
||||
|
||||
#outer-box {
|
||||
margin: 0px;
|
||||
padding: 0px;
|
||||
background-color: transparent;
|
||||
}
|
||||
|
||||
#scroll {
|
||||
margin: 0px;
|
||||
border: none;
|
||||
}
|
||||
|
||||
#text {
|
||||
margin: 4px;
|
||||
padding: 6px 10px;
|
||||
color: #ebdbb2;
|
||||
}
|
||||
|
||||
#entry {
|
||||
margin: 2px 0px;
|
||||
border-radius: 6px;
|
||||
background-color: transparent;
|
||||
}
|
||||
|
||||
#entry:selected {
|
||||
background-color: #504945;
|
||||
}
|
||||
|
||||
#entry:selected #text {
|
||||
color: #fabd2f; /* Gruvbox Yellow accent */
|
||||
font-weight: bold;
|
||||
}
|
||||
Executable
+18
@@ -0,0 +1,18 @@
|
||||
#!/bin/bash
|
||||
# TO CONNECT TO WIFI USING DMENU | ROFI WHICH IS CONNECTED BEFORE
|
||||
# bssid=$(nmcli device wifi list | sed -n '1!P'| cut -b 9- | dmenu -p "Wifi" -l 10 | awk '{print $1}')
|
||||
|
||||
dir="$HOME/.config/wofi"
|
||||
theme='style-1'
|
||||
|
||||
# [ -z "$bssid" ] && exit 1
|
||||
# nmcli device wifi connect $bssid
|
||||
# notify-send "📶 WiFi Connected"
|
||||
|
||||
bssid=$(nmcli device wifi list | sed -n '1!P'| cut -b 9- | wofi --dmenu --style ${dir}/${theme}.css -p " " --lines 10 | awk '{print $1}')
|
||||
[ -z "$bssid" ] && exit 1
|
||||
if nmcli device wifi connect "$bssid"; then
|
||||
notify-send "📶 WiFi Connected" "Successfully connected to network."
|
||||
else
|
||||
notify-send -u critical "⚠️ WiFi Error" "Failed to connect to network."
|
||||
fi
|
||||
Executable
+22
@@ -0,0 +1,22 @@
|
||||
#!/bin/bash
|
||||
# SCRIPT TO CONNECT TO NEW WIFI USING DMENU | ROFI
|
||||
|
||||
dir="$HOME/.config/wofi"
|
||||
theme='style-1'
|
||||
|
||||
# bssid=$(nmcli device wifi list | sed -n '1!P'| cut -b 9- | dmenu -p "Wifi" -l 10 | awk '{print $1}')
|
||||
# [ -z "$bssid" ] && exit 1
|
||||
# pass=$(echo "" | dmenu -p "Enter password")
|
||||
# [ -z "$pass" ] && notify-send "🔑 Password not enterd" && exit 1
|
||||
# nmcli device wifi connect $bssid password $pass
|
||||
# notify-send "📶 New WiFi Connected"
|
||||
|
||||
bssid=$(nmcli device wifi list | sed -n '1!P' | cut -b 9- | wofi --dmenu --style ${dir}/${theme}.css -p " " --lines 10 | awk '{print $1}')
|
||||
[ -z "$bssid" ] && exit 1
|
||||
pass=$(echo "" | wofi --dmenu --style ${dir}/${theme}.css -p " Enter password" --password)
|
||||
[ -z "$pass" ] && notify-send "🔑 Password not entered" && exit 1
|
||||
if nmcli device wifi connect "$bssid" password "$pass"; then
|
||||
notify-send "📶 New WiFi Connected" "Successfully connected to network."
|
||||
else
|
||||
notify-send -u critical "⚠️ WiFi Error" "Failed to connect to network."
|
||||
fi
|
||||
Reference in New Issue
Block a user