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=" "
|
||||
icon-theme=gruvbox-dark-icons-gtk
|
||||
icons-enabled=yes
|
||||
|
@ -8,8 +8,8 @@ terminal=wezterm start
|
|||
lines=20
|
||||
width=70
|
||||
inner-pad=12
|
||||
vertical-pad=12
|
||||
horizontal-pad=12
|
||||
vertical-pad=24
|
||||
horizontal-pad=32
|
||||
layer= top
|
||||
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-scrot ~/.local/bin/rs_scrot | 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
|
||||
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"
|
||||
|
||||
# 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
|
||||
case "$chosen" in
|
||||
|
@ -277,7 +277,7 @@ show_menu() {
|
|||
fi
|
||||
|
||||
# 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
|
||||
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
|
||||
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 ###
|
||||
😀 grinning face face smile happy joy :D grin
|
||||
😃 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
|
||||
#####
|
||||
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
|
||||
|
@ -44,7 +55,7 @@ ACTIVE_SESSION=$(loginctl list | grep -E "$USER.*tty1" | awk '{print $1}')
|
|||
##########
|
||||
## 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
|
||||
"$option1")
|
||||
loginctl kill-session "$ACTIVE_SESSION"
|
||||
|
@ -67,14 +78,7 @@ case "$action" in
|
|||
#####
|
||||
## These conditions will be used for the prompt
|
||||
#####
|
||||
if [ "$currentpwr" = "performance" ]; then
|
||||
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 ")
|
||||
pwraction=$(echo -e "$pwrs" | $RUNNER -l 3 -p "$prompt2")
|
||||
case "$pwraction" in
|
||||
"$pwr1")
|
||||
if [ "$currentpwr" = "$pwr1" ]; then
|
||||
|
|
|
@ -21,7 +21,7 @@ countdown() {
|
|||
}
|
||||
|
||||
# run
|
||||
choice=$(echo -e "$options" | $RUNNER -l 3 -p " Screenshot " )
|
||||
choice=$(echo -e "$options" | $RUNNER -l 3 -p "[ Screenshot] " )
|
||||
case $choice in
|
||||
$option1)
|
||||
countdown
|
||||
|
|
|
@ -9,7 +9,7 @@ walldir="$XDG_PICTURES_DIR/Wallpapers" # wallpapers folder, change it to yours
|
|||
|
||||
## SELECT PICTURE ##
|
||||
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 [[ "$wallpaper" == *.jpg ]]; then
|
||||
rm -f "$HOME/.config/sway/wallpaper/"*
|
||||
|
|
|
@ -77,7 +77,7 @@ disconnect() {
|
|||
#####
|
||||
connect() {
|
||||
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)
|
||||
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
|
||||
return 0; # no password is required
|
||||
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
|
||||
return 0;
|
||||
else
|
||||
|
@ -123,7 +123,7 @@ action() {
|
|||
##########
|
||||
## 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
|
||||
"$option1")
|
||||
turnon;
|
||||
|
|
Loading…
Reference in a new issue