From 8545f7fb322489b056755e7dd85ad4808d7b237e Mon Sep 17 00:00:00 2001 From: Clay Gomera Date: Thu, 26 Oct 2023 15:56:17 -0400 Subject: [PATCH] Updated: fixed some stuff --- user/.config/fuzzel/fuzzel.ini | 6 +++--- user/.config/sway/modules/binds | 2 +- user/.local/bin/neovide | 6 ++++++ user/.local/bin/rs_blue | 4 ++-- user/.local/bin/rs_clip | 5 +++++ user/.local/bin/rs_emoji | 2 +- user/.local/bin/rs_power | 22 +++++++++++++--------- user/.local/bin/rs_scrot | 2 +- user/.local/bin/rs_wall | 2 +- user/.local/bin/rs_wifi | 6 +++--- 10 files changed, 36 insertions(+), 21 deletions(-) create mode 100755 user/.local/bin/neovide create mode 100755 user/.local/bin/rs_clip diff --git a/user/.config/fuzzel/fuzzel.ini b/user/.config/fuzzel/fuzzel.ini index e7a0ba070..f77ce9f01 100644 --- a/user/.config/fuzzel/fuzzel.ini +++ b/user/.config/fuzzel/fuzzel.ini @@ -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 diff --git a/user/.config/sway/modules/binds b/user/.config/sway/modules/binds index 1e99e7ad8..5c2e29ee2 100644 --- a/user/.config/sway/modules/binds +++ b/user/.config/sway/modules/binds @@ -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 diff --git a/user/.local/bin/neovide b/user/.local/bin/neovide new file mode 100755 index 000000000..b1c9d8f31 --- /dev/null +++ b/user/.local/bin/neovide @@ -0,0 +1,6 @@ +#!/bin/sh + +NEOVIDE="$HOME/.local/bin/neovide.AppImage" +NEOVIDE_OPTS="--neovim-bin $HOME/.local/bin/lvim" + +$NEOVIDE $NEOVIDE_OPTS diff --git a/user/.local/bin/rs_blue b/user/.local/bin/rs_blue index 1d2e5e40f..194e344f5 100755 --- a/user/.local/bin/rs_blue +++ b/user/.local/bin/rs_blue @@ -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 diff --git a/user/.local/bin/rs_clip b/user/.local/bin/rs_clip new file mode 100755 index 000000000..9e3702607 --- /dev/null +++ b/user/.local/bin/rs_clip @@ -0,0 +1,5 @@ +#!/usr/bin/env bash + +# clipboard script + +cliphist list | $RUNNER -l 10 -p "[󱉧 Clipboard]  " | cliphist decode | wl-copy diff --git a/user/.local/bin/rs_emoji b/user/.local/bin/rs_emoji index a8ac61321..58048718d 100755 --- a/user/.local/bin/rs_emoji +++ b/user/.local/bin/rs_emoji @@ -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 diff --git a/user/.local/bin/rs_power b/user/.local/bin/rs_power index ea3d21516..a16e588bb 100755 --- a/user/.local/bin/rs_power +++ b/user/.local/bin/rs_power @@ -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 diff --git a/user/.local/bin/rs_scrot b/user/.local/bin/rs_scrot index 163e9e615..68f92853d 100755 --- a/user/.local/bin/rs_scrot +++ b/user/.local/bin/rs_scrot @@ -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 diff --git a/user/.local/bin/rs_wall b/user/.local/bin/rs_wall index 1354b32ac..4b0dca066 100755 --- a/user/.local/bin/rs_wall +++ b/user/.local/bin/rs_wall @@ -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/"* diff --git a/user/.local/bin/rs_wifi b/user/.local/bin/rs_wifi index ee2bc09d0..fb166b3ba 100755 --- a/user/.local/bin/rs_wifi +++ b/user/.local/bin/rs_wifi @@ -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;