Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Factory:Rebuild
rofi-network-manager
0001-Modified-for-System-wide-configuration.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 0001-Modified-for-System-wide-configuration.patch of Package rofi-network-manager
From 1f42671a6b21534d6cbc3db7be0c4d1a109d59a8 Mon Sep 17 00:00:00 2001 From: Shawn W Dunn <sfalken@cloverleaf-linux.org> Date: Fri, 19 Jan 2024 14:15:45 -0800 Subject: [PATCH] Modified for System-wide configuration --- rofi-network-manager.sh | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/rofi-network-manager.sh b/rofi-network-manager.sh index ff7744d..2129bb9 100755 --- a/rofi-network-manager.sh +++ b/rofi-network-manager.sh @@ -24,8 +24,11 @@ SIGNAL_STRENGTH_3="123" SIGNAL_STRENGTH_4="1234" VPN_PATTERN='(wireguard|vpn)' function initialization() { - source "$DIR/rofi-network-manager.conf" || source "${XDG_CONFIG_HOME:-$HOME/.config}/rofi/rofi-network-manager.conf" - { [[ -f "$DIR/rofi-network-manager.rasi" ]] && RASI_DIR="$DIR/rofi-network-manager.rasi"; } || { [[ -f "${XDG_CONFIG_HOME:-$HOME/.config}/rofi/rofi-network-manager.rasi" ]] && RASI_DIR="${XDG_CONFIG_HOME:-$HOME/.config}/rofi/rofi-network-manager.rasi"; } || exit + source "${XDG_CONFIG_HOME:-$HOME/.config}/rofi/rofi-network-manager.conf" || source "/etc/rofi/rofi-network-manager.conf" || source "/usr/etc/rofi/rofi-network-manager.conf" + + { [[ -f "${XDG_CONFIG_HOME:-$HOME/.config}/rofi/rofi-network-manager.rasi" ]] && RASI_DIR="${XDG_CONFIG_HOME:-$HOME/.config}/rofi/rofi-network-manager.rasi"; } || + { [[ -f "/etc/rofi/rofi-network-manager.rasi" ]] && RASI_DIR="/etc/rofi/rofi-network-manager.rasi"; } || + { [[ -f "/usr/etc/rofi/rofi-network-manager.rasi" ]] && RASI_DIR="/usr/etc/rofi/rofi-network-manager.rasi"; } || exit for i in "${WIRELESS_INTERFACES[@]}"; do WIRELESS_INTERFACES_PRODUCT+=("$(nmcli -f general.product device show "$i" | awk '{print $2}')"); done for i in "${WIRED_INTERFACES[@]}"; do WIRED_INTERFACES_PRODUCT+=("$(nmcli -f general.product device show "$i" | awk '{print $2}')"); done wireless_interface_state && ethernet_interface_state -- 2.43.0
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor