update scripts
This commit is contained in:
parent
ad5a900328
commit
4f6eeb54c5
4 changed files with 16 additions and 8 deletions
|
@ -1,6 +1,8 @@
|
|||
#!/bin/sh
|
||||
|
||||
op=$( echo -e " Poweroff\n Reboot\n Suspend\n Lock\n Logout" | bemenu | awk '{print tolower($2)}' )
|
||||
source $HOME/.config/zsh/aliases
|
||||
|
||||
op=$( echo -e " Poweroff\n Reboot\n Suspend\n Lock\n Logout" | wmenu | awk '{print tolower($2)}' )
|
||||
|
||||
case $op in
|
||||
poweroff)
|
||||
|
|
|
@ -1,4 +1,6 @@
|
|||
#!/usr/bin/env bash
|
||||
#!/bin/sh
|
||||
|
||||
source $HOME/.config/zsh/aliases
|
||||
|
||||
notify-send "Getting list of available Wi-Fi networks..."
|
||||
# Get a list of available wifi connections and morph it into a nice-looking list
|
||||
|
@ -12,7 +14,7 @@ elif [[ "$connected" =~ "disabled" ]]; then
|
|||
fi
|
||||
|
||||
# Use rofi to select wifi network
|
||||
chosen_network=$(echo -e "$toggle\n$wifi_list" | bemenu -i -p "Wi-Fi SSID: " )
|
||||
chosen_network=$(echo -e "$toggle\n$wifi_list" | wmenu -i -p "Wi-Fi SSID: " )
|
||||
# Get name of connection
|
||||
chosen_id=$(echo "${chosen_network:3}" | xargs)
|
||||
|
||||
|
@ -31,7 +33,7 @@ else
|
|||
nmcli connection up id "$chosen_id" | grep "successfully" && notify-send "Connection Established" "$success_message"
|
||||
else
|
||||
if [[ "$chosen_network" =~ "" ]]; then
|
||||
wifi_password=$(echo "" | bemenu -p "Password: " )
|
||||
wifi_password=$(echo "" | wmenu -p "Password: " )
|
||||
fi
|
||||
nmcli device wifi connect "$chosen_id" password "$wifi_password" | grep "successfully" && notify-send "Connection Established" "$success_message"
|
||||
fi
|
||||
|
|
|
@ -1,10 +1,12 @@
|
|||
#!/bin/sh
|
||||
|
||||
source $HOME/.config/zsh/aliases
|
||||
|
||||
auth=$EZAPIKEY
|
||||
url="https://api.e-z.host/files"
|
||||
|
||||
opts="Select Area\nSelect Screen\nFull Screen"
|
||||
snipping=$(echo -e $opts | bemenu -p "Snipping tool")
|
||||
snipping=$(echo -e $opts | wmenu -p "Snipping tool")
|
||||
if [[ $snipping == "" ]]; then
|
||||
exit 0
|
||||
fi
|
||||
|
@ -15,7 +17,7 @@ fileName=$(echo "$temp/$(date +'%s_grim.png')")
|
|||
# function
|
||||
opts_mod(){
|
||||
mods="Copy to clipboard\nEdit screenshot\nSave\nUpload to e-z.host"
|
||||
mods_la=$(echo -e $mods | bemenu -p "Options:")
|
||||
mods_la=$(echo -e $mods | wmenu -p "Options:")
|
||||
if [[ $mods_la == "" ]]; then
|
||||
exit 0
|
||||
fi
|
||||
|
|
|
@ -1,5 +1,7 @@
|
|||
#!/bin/sh
|
||||
|
||||
source $HOME/.config/zsh/aliases
|
||||
|
||||
sinks=$(pactl list short sinks | awk '{print $1 " " $2}')
|
||||
|
||||
sink_inputs=()
|
||||
|
@ -19,8 +21,8 @@ for ((i = 0; i < ${#sink_inputs[@]}; i++)); do
|
|||
combined+=("${sink_inputs[$i]} ${process_names[$i]}")
|
||||
done
|
||||
|
||||
selected=$(printf '%s\n' "${combined[@]}" | bemenu -i -l 10 -p "Select a process to move to another sink:")
|
||||
selected=$(printf '%s\n' "${combined[@]}" | wmenu -i -l 10 -p "Select a process to move to another sink:")
|
||||
selected_inputid=$(echo $selected | awk '{ print $1 }')
|
||||
selected_sink=$(printf '%s\n' "${sinks[@]}" | bemenu -i -l 10 -p "Select a sink to move the process to:" | awk '{print $1}')
|
||||
selected_sink=$(printf '%s\n' "${sinks[@]}" | wmenu -i -l 10 -p "Select a sink to move the process to:" | awk '{print $1}')
|
||||
|
||||
pactl move-sink-input "$selected_inputid" "$selected_sink"
|
||||
|
|
Loading…
Reference in a new issue