Updated: fixed some stuff
This commit is contained in:
parent
5da9dc3be7
commit
8545f7fb32
10 changed files with 36 additions and 21 deletions
|
@ -1,4 +1,4 @@
|
||||||
font=Mononoki Nerd Font:size=08
|
font=Mononoki Nerd Font:size=09
|
||||||
prompt=" "
|
prompt=" "
|
||||||
icon-theme=gruvbox-dark-icons-gtk
|
icon-theme=gruvbox-dark-icons-gtk
|
||||||
icons-enabled=yes
|
icons-enabled=yes
|
||||||
|
@ -8,8 +8,8 @@ terminal=wezterm start
|
||||||
lines=20
|
lines=20
|
||||||
width=70
|
width=70
|
||||||
inner-pad=12
|
inner-pad=12
|
||||||
vertical-pad=12
|
vertical-pad=24
|
||||||
horizontal-pad=12
|
horizontal-pad=32
|
||||||
layer= top
|
layer= top
|
||||||
exit-on-keyboard-focus-loss=yes
|
exit-on-keyboard-focus-loss=yes
|
||||||
|
|
||||||
|
|
|
@ -31,7 +31,7 @@ set $menu-emoji ~/.local/bin/rs_emoji | xargs swaymsg exec --
|
||||||
set $menu-wall ~/.local/bin/rs_wall | xargs swaymsg exec --
|
set $menu-wall ~/.local/bin/rs_wall | xargs swaymsg exec --
|
||||||
set $menu-scrot ~/.local/bin/rs_scrot | xargs swaymsg exec --
|
set $menu-scrot ~/.local/bin/rs_scrot | xargs swaymsg exec --
|
||||||
set $menu-blue ~/.local/bin/rs_blue | xargs swaymsg exec --
|
set $menu-blue ~/.local/bin/rs_blue | xargs swaymsg exec --
|
||||||
set $menu-clip cliphist list | $RUNNER -l 10 -p "[ Clipboard] " | cliphist decode | wl-copy | xargs swaymsg exec --
|
set $menu-clip ~/.local/bin/rs_clip | xargs swaymsg exec --
|
||||||
|
|
||||||
# Start a terminal
|
# Start a terminal
|
||||||
bindsym $mod+Return exec $term
|
bindsym $mod+Return exec $term
|
||||||
|
|
6
user/.local/bin/neovide
Executable file
6
user/.local/bin/neovide
Executable file
|
@ -0,0 +1,6 @@
|
||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
NEOVIDE="$HOME/.local/bin/neovide.AppImage"
|
||||||
|
NEOVIDE_OPTS="--neovim-bin $HOME/.local/bin/lvim"
|
||||||
|
|
||||||
|
$NEOVIDE $NEOVIDE_OPTS
|
|
@ -232,7 +232,7 @@ device_menu() {
|
||||||
options="$connected\n$paired\n$trusted\n$divider\n$goback\nExit"
|
options="$connected\n$paired\n$trusted\n$divider\n$goback\nExit"
|
||||||
|
|
||||||
# Open rofi menu, read chosen option
|
# Open rofi menu, read chosen option
|
||||||
chosen="$(echo -e "$options" | $RUNNER -i -l 8 -p "$device_name ")"
|
chosen="$(echo -e "$options" | $RUNNER -i -l 8 -p "[$device_name] ")"
|
||||||
|
|
||||||
# Match chosen option to command
|
# Match chosen option to command
|
||||||
case "$chosen" in
|
case "$chosen" in
|
||||||
|
@ -277,7 +277,7 @@ show_menu() {
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Open rofi menu, read chosen option
|
# Open rofi menu, read chosen option
|
||||||
chosen="$(echo -e "$options" | $RUNNER -i -l 7 -p " Bluetooth ")"
|
chosen="$(echo -e "$options" | $RUNNER -i -l 7 -p "[ Bluetooth] ")"
|
||||||
|
|
||||||
# Match chosen option to command
|
# Match chosen option to command
|
||||||
case "$chosen" in
|
case "$chosen" in
|
||||||
|
|
5
user/.local/bin/rs_clip
Executable file
5
user/.local/bin/rs_clip
Executable file
|
@ -0,0 +1,5 @@
|
||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
# clipboard script
|
||||||
|
|
||||||
|
cliphist list | $RUNNER -l 10 -p "[ Clipboard] " | cliphist decode | wl-copy
|
|
@ -1,5 +1,5 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
sed '1,/^### DATA ###$/d' $0 | $RUNNER -w 85 -l 10 -i -p " Select Emoji " | cut -d ' ' -f 1 | tr -d '\n' | wl-copy
|
sed '1,/^### DATA ###$/d' $0 | $RUNNER -l 10 -i -p "[ Select Emoji] " | cut -d ' ' -f 1 | tr -d '\n' | wl-copy
|
||||||
### DATA ###
|
### DATA ###
|
||||||
😀 grinning face face smile happy joy :D grin
|
😀 grinning face face smile happy joy :D grin
|
||||||
😃 grinning face with big eyes face happy joy haha :D :) smile funny
|
😃 grinning face with big eyes face happy joy haha :D :) smile funny
|
||||||
|
|
|
@ -35,6 +35,17 @@ currwall="$HOME/.config/sway/wallpaper/locked.*"
|
||||||
## This variable will store the current power profile
|
## This variable will store the current power profile
|
||||||
#####
|
#####
|
||||||
currentpwr=$(powerprofilesctl get)
|
currentpwr=$(powerprofilesctl get)
|
||||||
|
if [ "$currentpwr" = "performance" ]; then
|
||||||
|
currentpwr="$pwr1"
|
||||||
|
elif [ "$currentpwr" = "balanced" ]; then
|
||||||
|
currentpwr="$pwr2"
|
||||||
|
elif [ "$currentpwr" = "power-saver" ]; then
|
||||||
|
currentpwr="$pwr3"
|
||||||
|
fi
|
||||||
|
|
||||||
|
# prompts
|
||||||
|
prompt1="[ Power Options] "
|
||||||
|
prompt2="[ Power Profiles - Currently set to: $currentpwr] "
|
||||||
|
|
||||||
#####
|
#####
|
||||||
## This variable will store the currently active session in tty1
|
## This variable will store the currently active session in tty1
|
||||||
|
@ -44,7 +55,7 @@ ACTIVE_SESSION=$(loginctl list | grep -E "$USER.*tty1" | awk '{print $1}')
|
||||||
##########
|
##########
|
||||||
## main ##
|
## main ##
|
||||||
##########
|
##########
|
||||||
action=$(echo -e "$options" | $RUNNER -l 7 -p " Power Options ") # main menu prompt
|
action=$(echo -e "$options" | $RUNNER -l 7 -p "$prompt1") # main menu prompt
|
||||||
case "$action" in
|
case "$action" in
|
||||||
"$option1")
|
"$option1")
|
||||||
loginctl kill-session "$ACTIVE_SESSION"
|
loginctl kill-session "$ACTIVE_SESSION"
|
||||||
|
@ -67,14 +78,7 @@ case "$action" in
|
||||||
#####
|
#####
|
||||||
## These conditions will be used for the prompt
|
## These conditions will be used for the prompt
|
||||||
#####
|
#####
|
||||||
if [ "$currentpwr" = "performance" ]; then
|
pwraction=$(echo -e "$pwrs" | $RUNNER -l 3 -p "$prompt2")
|
||||||
currentpwr="$pwr1"
|
|
||||||
elif [ "$currentpwr" = "balanced" ]; then
|
|
||||||
currentpwr="$pwr2"
|
|
||||||
elif [ "$currentpwr" = "power-saver" ]; then
|
|
||||||
currentpwr="$pwr3"
|
|
||||||
fi
|
|
||||||
pwraction=$(echo -e "$pwrs" | $RUNNER -l 3 -p " Power Profile Menu - Currently set to: $currentpwr ")
|
|
||||||
case "$pwraction" in
|
case "$pwraction" in
|
||||||
"$pwr1")
|
"$pwr1")
|
||||||
if [ "$currentpwr" = "$pwr1" ]; then
|
if [ "$currentpwr" = "$pwr1" ]; then
|
||||||
|
|
|
@ -21,7 +21,7 @@ countdown() {
|
||||||
}
|
}
|
||||||
|
|
||||||
# run
|
# run
|
||||||
choice=$(echo -e "$options" | $RUNNER -l 3 -p " Screenshot " )
|
choice=$(echo -e "$options" | $RUNNER -l 3 -p "[ Screenshot] " )
|
||||||
case $choice in
|
case $choice in
|
||||||
$option1)
|
$option1)
|
||||||
countdown
|
countdown
|
||||||
|
|
|
@ -9,7 +9,7 @@ walldir="$XDG_PICTURES_DIR/Wallpapers" # wallpapers folder, change it to yours
|
||||||
|
|
||||||
## SELECT PICTURE ##
|
## SELECT PICTURE ##
|
||||||
cd "$walldir" || exit 1
|
cd "$walldir" || exit 1
|
||||||
wallpaper=$(fd -p "$walldir" | $RUNNER -l 5 -i -p " Wallpaper Selector ")
|
wallpaper=$(fd -p "$walldir" | $RUNNER -l 5 -i -p "[ Wallpaper Selector] ")
|
||||||
if [ -n "$wallpaper" ]; then
|
if [ -n "$wallpaper" ]; then
|
||||||
if [[ "$wallpaper" == *.jpg ]]; then
|
if [[ "$wallpaper" == *.jpg ]]; then
|
||||||
rm -f "$HOME/.config/sway/wallpaper/"*
|
rm -f "$HOME/.config/sway/wallpaper/"*
|
||||||
|
|
|
@ -77,7 +77,7 @@ disconnect() {
|
||||||
#####
|
#####
|
||||||
connect() {
|
connect() {
|
||||||
notify-send "Scannig networks..." && nmcli dev wifi rescan;
|
notify-send "Scannig networks..." && nmcli dev wifi rescan;
|
||||||
wifinet=$(nmcli -f BSSID,SSID,BARS,SECURITY dev wifi list | sed -n '1!p' | $RUNNER -i -l 10 -p " Select a Wifi Network");
|
wifinet=$(nmcli -f BSSID,SSID,BARS,SECURITY dev wifi list | sed -n '1!p' | $RUNNER -i -l 10 -p "[ Select a Wifi Network] ");
|
||||||
bssid=$(echo "$wifinet" | cut -d' ' -f1)
|
bssid=$(echo "$wifinet" | cut -d' ' -f1)
|
||||||
ssid=$(echo "$wifinet" | cut -d' ' -f3)
|
ssid=$(echo "$wifinet" | cut -d' ' -f3)
|
||||||
}
|
}
|
||||||
|
@ -95,7 +95,7 @@ password() {
|
||||||
elif nmcli -f BSSID,SECURITY dev wifi list | sed -n '1!p' | grep "$bssid" | awk '{print $2}' | grep -q -- "--"; then # check if the network is open
|
elif nmcli -f BSSID,SECURITY dev wifi list | sed -n '1!p' | grep "$bssid" | awk '{print $2}' | grep -q -- "--"; then # check if the network is open
|
||||||
return 0; # no password is required
|
return 0; # no password is required
|
||||||
else
|
else
|
||||||
pass=$($RUNNER -i -x 1 -p "Enter Password " --password);
|
pass=$($RUNNER -l 0 --password -p "[Enter Password ] " );
|
||||||
if [ -n "$pass" ]; then # if the user gave a password
|
if [ -n "$pass" ]; then # if the user gave a password
|
||||||
return 0;
|
return 0;
|
||||||
else
|
else
|
||||||
|
@ -123,7 +123,7 @@ action() {
|
||||||
##########
|
##########
|
||||||
## main ##
|
## main ##
|
||||||
##########
|
##########
|
||||||
cases=$(echo -e "$options" | $RUNNER -i -l 6 -p " Wifi Settings " ) # main menu prompt
|
cases=$(echo -e "$options" | $RUNNER -i -l 6 -p "[ Wifi Settings] " ) # main menu prompt
|
||||||
case "$cases" in
|
case "$cases" in
|
||||||
"$option1")
|
"$option1")
|
||||||
turnon;
|
turnon;
|
||||||
|
|
Loading…
Reference in a new issue