This commit is contained in:
Clay Gomera 2023-02-20 15:20:24 -04:00
parent bdb652d19d
commit 28805ffc82
14 changed files with 132 additions and 127 deletions

View file

@ -1,16 +1,28 @@
-- Apps -- Apps config, see keymaps/keyboard.lua to see how this is handled in keybindings
local apps = { local apps = {
terminal = "wezterm", terminal = "wezterm", -- Selected terminal emulator
editor = "neovide --neovim-bin ./.local/bin/lvim", -- Rofi settings
music = "wezterm start --class musik -- cmus", drunner = "rofi -show drun -show-icons", -- Desktop runner
youm = "wezterm start --class youm -- ytfzf -mlstT chafa", runner = "rofi -show run", -- Normal runner
ytfzf = "wezterm start --class ytfzf -- ytfzf -flstT chafa", runner_power = "$HOME/.config/rofi/scripts/rofi_power", -- Power manager
ani = "wezterm start --class ani-cli -- ani-cli", runner_wifi = "$HOME/.config/rofi/scripts/rofi_wifi", -- Wifi manager
flix = "wezterm start --class flix-cli -- flix-cli", runner_scrot = "$HOME/.config/rofi/scripts/rofi_scrot", -- Screenshots manager
chat = "revolt-desktop", runner_emoji = "$HOME/.config/rofi/scripts/rofi_emoji", -- Emojis manager
game = "retroarch", runner_wall = "$HOME/.config/rofi/scripts/rofi_wall", -- Wallpapers manager
file = "wezterm start --class vifm -- ./.config/vifm/scripts/vifmrun", -- Other scripts
browser = "firefox", ytfzf = "wezterm start --class ytfzf -- ytfzf -flstT chafa", -- Youtube
office = "libreoffice" ytfzf_music = "wezterm start --class ytfzf_music -- ytfzf -mlstT chafa", -- Youtube Music
ani_cli = "wezterm start --class ani-cli -- ani-cli", -- Anime
flix_cli = "wezterm start --class flix-cli -- flix-cli", -- Movies
tut = "wezterm start --class tut -- tut", -- Mastodon
newsboat = "wezterm start --class newsboat -- newsboat -u ~/.config/newsboat/urls", -- Newsboat
-- Selected apps
editor = "neovide --neovim-bin ./.local/bin/lvim", -- TAG 1
file = "wezterm start --class vifm -- ./.config/vifm/scripts/vifmrun", -- TAG 2
browser = "firefox", -- TAG 3
chat = "revolt-desktop", -- TAG 4
music = "wezterm start --class cmus -- cmus", -- TAG 5
office = "libreoffice", -- TAG 8
game = "retroarch" -- TAG 9
} }
return apps return apps

View file

@ -1,6 +1,21 @@
local awful = require("awful") local awful = require("awful")
awful.util.spawn_with_shell("lxpolkit &") -- Session manager
awful.util.spawn_with_shell("$HOME/.fehbg &") awful.util.spawn_with_shell(
awful.util.spawn_with_shell("unclutter --hide-on-touch &") "lxpolkit &"
awful.util.spawn_with_shell("picom --experimental-backends --config ~/.config/picom/picom.conf &") )
awful.util.spawn_with_shell("xfce4-power-manager &") -- Wallpapers manager
awful.util.spawn_with_shell(
"$HOME/.fehbg &"
)
-- Automatically hide the cursor
awful.util.spawn_with_shell(
"unclutter --hide-on-touch &"
)
-- Compositor
awful.util.spawn_with_shell(
"picom --experimental-backends --config ~/.config/picom/picom.conf &"
)
-- Power manager
awful.util.spawn_with_shell(
"xfce4-power-manager &"
)

View file

@ -7,6 +7,7 @@ require("awful.autofocus")
altkey = "Mod1" altkey = "Mod1"
modkey = "Mod4" modkey = "Mod4"
conkey = "Control" conkey = "Control"
shikey = "Shift"
--[[ Main keybinds ]]-- --[[ Main keybinds ]]--
awful.keyboard.append_global_keybindings( awful.keyboard.append_global_keybindings(
@ -24,7 +25,7 @@ awful.keyboard.append_global_keybindings(
), ),
-- Reload awesome -- Reload awesome
awful.key( awful.key(
{ modkey, "Control" }, { modkey, conkey },
"r", "r",
awesome.restart, awesome.restart,
{ description = { description =
@ -102,7 +103,7 @@ awful.keyboard.append_global_keybindings(
}, },
-- Toggle tags by numbers 1-9 -- Toggle tags by numbers 1-9
awful.key { awful.key {
modifiers = { modkey, "Control" }, modifiers = { modkey, conkey },
keygroup = "numrow", keygroup = "numrow",
description = "Quickly view contents in another tag with number keys from {1 to 9}", description = "Quickly view contents in another tag with number keys from {1 to 9}",
group = "Tag keybinds", group = "Tag keybinds",
@ -116,7 +117,7 @@ awful.keyboard.append_global_keybindings(
}, },
-- Move focused window to tag by numbers 1-9 -- Move focused window to tag by numbers 1-9
awful.key { awful.key {
modifiers = { modkey, "Shift" }, modifiers = { modkey, shikey },
keygroup = "numrow", keygroup = "numrow",
description = "Move focused window to another tag with number keys from {1 to 9}", description = "Move focused window to another tag with number keys from {1 to 9}",
group = "Tag keybinds", group = "Tag keybinds",
@ -131,7 +132,7 @@ awful.keyboard.append_global_keybindings(
}, },
-- Toggle focused window on tag by numbers 1-9 -- Toggle focused window on tag by numbers 1-9
awful.key { awful.key {
modifiers = { modkey, "Control", "Shift" }, modifiers = { modkey, conkey, shikey },
keygroup = "numrow", keygroup = "numrow",
description = "View focused window on more than one tag with number keys from {1 to 9}", description = "View focused window on more than one tag with number keys from {1 to 9}",
group = "Tag keybinds", group = "Tag keybinds",
@ -195,7 +196,7 @@ awful.keyboard.append_global_keybindings(
), ),
-- Focus next screen -- Focus next screen
awful.key( awful.key(
{ modkey, "Control" }, { modkey, conkey },
"j", "j",
function () function ()
awful.screen.focus_relative(1) awful.screen.focus_relative(1)
@ -208,7 +209,7 @@ awful.keyboard.append_global_keybindings(
), ),
-- Focus previous screen -- Focus previous screen
awful.key( awful.key(
{ modkey, "Control" }, { modkey, conkey },
"k", "k",
function () function ()
awful.screen.focus_relative(-1) awful.screen.focus_relative(-1)
@ -228,7 +229,7 @@ awful.keyboard.append_global_keybindings(
{ {
-- Swap with next window by index -- Swap with next window by index
awful.key( awful.key(
{ modkey, "Shift" }, { modkey, shikey },
"j", "j",
function () function ()
awful.client.swap.byidx(1) awful.client.swap.byidx(1)
@ -241,7 +242,7 @@ awful.keyboard.append_global_keybindings(
), ),
-- Swap with previous window by index -- Swap with previous window by index
awful.key( awful.key(
{ modkey, "Shift" }, { modkey, shikey },
"k", "k",
function () function ()
awful.client.swap.byidx(-1) awful.client.swap.byidx(-1)
@ -280,7 +281,7 @@ awful.keyboard.append_global_keybindings(
), ),
-- Increase the number of master window -- Increase the number of master window
awful.key( awful.key(
{ modkey, "Shift" }, { modkey, shikey },
"h", "h",
function () function ()
awful.tag.incnmaster(1, nil, true) awful.tag.incnmaster(1, nil, true)
@ -293,7 +294,7 @@ awful.keyboard.append_global_keybindings(
), ),
-- Decrease the number of master windows -- Decrease the number of master windows
awful.key( awful.key(
{ modkey, "Shift" }, { modkey, shikey },
"l", "l",
function () function ()
awful.tag.incnmaster(-1, nil, true) awful.tag.incnmaster(-1, nil, true)
@ -306,7 +307,7 @@ awful.keyboard.append_global_keybindings(
), ),
-- Increase the number of columns -- Increase the number of columns
awful.key( awful.key(
{ modkey, "Control" }, { modkey, conkey },
"h", "h",
function () function ()
awful.tag.incncol(1, nil, true) awful.tag.incncol(1, nil, true)
@ -319,7 +320,7 @@ awful.keyboard.append_global_keybindings(
), ),
-- Decrease the number of columns -- Decrease the number of columns
awful.key( awful.key(
{ modkey, "Control" }, { modkey, conkey },
"l", "l",
function () function ()
awful.tag.incncol(-1, nil, true) awful.tag.incncol(-1, nil, true)
@ -345,7 +346,7 @@ awful.keyboard.append_global_keybindings(
), ),
-- Switch to previous layout -- Switch to previous layout
awful.key( awful.key(
{ modkey, "Shift" }, { modkey, shikey },
"space", "space",
function () function ()
awful.layout.inc(-1) awful.layout.inc(-1)
@ -425,7 +426,7 @@ client.connect_signal(
), ),
-- Toggle floating mode on focused window -- Toggle floating mode on focused window
awful.key( awful.key(
{ modkey, "Control" }, { modkey, conkey },
"space", "space",
awful.client.floating.toggle, awful.client.floating.toggle,
{ description = { description =
@ -436,7 +437,7 @@ client.connect_signal(
), ),
-- Move focused window to master -- Move focused window to master
awful.key( awful.key(
{ modkey, "Control" }, { modkey, conkey },
"Return", "Return",
function (c) function (c)
c:swap( c:swap(
@ -581,7 +582,7 @@ awful.keyboard.append_global_keybindings(
group = "Quick keybinds" group = "Quick keybinds"
} }
), ),
-- apps (Super + a followed by KEY) -- Apps (Super + a followed by KEY)
awful.key( awful.key(
{ modkey }, { modkey },
"a", "a",
@ -594,19 +595,19 @@ awful.keyboard.append_global_keybindings(
return return
end end
if key == "1" then if key == "1" then
awful.util.spawn(apps.editor) awful.util.spawn(apps.editor) -- TAG 1
elseif key == "2" then elseif key == "2" then
awful.util.spawn(apps.file) awful.util.spawn(apps.file) -- TAG 2
elseif key == "3" then elseif key == "3" then
awful.util.spawn(apps.browser) awful.util.spawn(apps.browser) -- TAG 3
elseif key == "4" then elseif key == "4" then
awful.util.spawn(apps.chat) awful.util.spawn(apps.chat) -- TAG 4
elseif key == "5" then elseif key == "5" then
awful.util.spawn(apps.music) awful.util.spawn(apps.music) -- TAG 5
elseif key == "8" then elseif key == "8" then
awful.util.spawn(apps.office) awful.util.spawn(apps.office) -- TAG 8
elseif key == "9" then elseif key == "9" then
awful.util.spawn(apps.game) awful.util.spawn(apps.game) -- TAG 9
end end
awful.keygrabber.stop(grabber) awful.keygrabber.stop(grabber)
end end
@ -645,7 +646,7 @@ awful.keyboard.append_global_keybindings(
"Quick keybinds" "Quick keybinds"
} }
), ),
-- Dmenu scripts (Super + p followed by KEY) -- Runners (Super + p followed by KEY)
awful.key( awful.key(
{ modkey }, { modkey },
"p", "p",
@ -658,21 +659,19 @@ awful.keyboard.append_global_keybindings(
return return
end end
if key == "d" then if key == "d" then
awful.spawn.with_shell("rofi -show drun -show-icons") awful.util.spawn(apps.drunner)
elseif key == "r" then elseif key == "r" then
awful.spawn.with_shell("rofi -show run") awful.util.spawn(apps.runner)
elseif key == "e" then
awful.spawn.with_shell("$HOME/.config/rofi/scripts/rofi_edit")
elseif key == "q" then elseif key == "q" then
awful.spawn.with_shell("$HOME/.config/rofi/scripts/rofi_power") awful.spawn.with_shell(apps.runner_power)
elseif key == "i" then elseif key == "i" then
awful.spawn.with_shell("$HOME/.config/rofi/scripts/rofi_wifi") awful.spawn.with_shell(apps.runner_wifi)
elseif key == "s" then elseif key == "s" then
awful.spawn.with_shell("$HOME/.config/rofi/scripts/rofi_scrot") awful.spawn.with_shell(apps.runner_scrot)
elseif key == "z" then elseif key == "z" then
awful.spawn.with_shell("$HOME/.config/rofi/scripts/rofi_emoji") awful.spawn.with_shell(apps.runner_emoji)
elseif key == "w" then elseif key == "w" then
awful.spawn.with_shell("$HOME/.config/rofi/scripts/rofi_wall") awful.spawn.with_shell(apps.runner_wall)
end end
awful.keygrabber.stop(grabber) awful.keygrabber.stop(grabber)
end end
@ -683,7 +682,7 @@ awful.keyboard.append_global_keybindings(
group = group =
"Quick keybinds" } "Quick keybinds" }
), ),
-- Terminal scripts (Super + t followed by KEY) -- Multimedia scripts (Super + t followed by KEY)
awful.key( awful.key(
{ modkey }, { modkey },
"t", "t",
@ -695,14 +694,18 @@ awful.keyboard.append_global_keybindings(
if event == "release" then if event == "release" then
return return
end end
if key == "m" then if key == "y" then
awful.util.spawn(apps.youm)
elseif key == "y" then
awful.util.spawn(apps.ytfzf) awful.util.spawn(apps.ytfzf)
elseif key == "y" then
awful.util.spawn(apps.ytfzf_music)
elseif key == "a" then elseif key == "a" then
awful.util.spawn(apps.ani) awful.util.spawn(apps.ani_cli)
elseif key == "f" then elseif key == "f" then
awful.util.spawn(apps.flix) awful.util.spawn(apps.flix_cli)
elseif key == "t" then
awful.util.spawn(apps.tut)
elseif key == "n" then
awful.util.spawn(apps.newsboat)
end end
awful.keygrabber.stop(grabber) awful.keygrabber.stop(grabber)
end end

View file

@ -1,12 +1,12 @@
-- Imports -- Imports
local beautiful = require("beautiful") local beautiful = require("beautiful")
beautiful.init(string.format("%s/.config/awesome/ui/theme.lua", os.getenv("HOME"))) -- Selected theme beautiful.init(string.format("%s/.config/awesome/ui/theme.lua", os.getenv("HOME"))) -- Selected theme
require("helpers") require("helpers") -- Some aditional code for handling
require("apps") require("apps") -- Selected apps & scripts
require("ui.layouts") require("ui.layouts") -- Predifined tiling layouts
require("ui.bar") require("ui.bar") -- The bar on the top
require("ui.notif") require("ui.notif") -- The notification manager
require("keymaps.keyboard") require("keymaps.keyboard") -- Keyboard shortcuts
require("keymaps.mouse") require("keymaps.mouse") -- Mouse shortcuts
require("ui.rules") require("ui.rules") -- Window manager rules
require("autostart") require("autostart") -- Startup applications

View file

@ -9,13 +9,13 @@ screen.connect_signal("request::desktop_decoration", function(s)
-- Tag names for each screen -- Tag names for each screen
awful.tag( awful.tag(
{ {
"", -- EDITOR "", -- EDITOR
"", -- FILE MANAGER "", -- FILE MANAGER
"󰖟", -- WEB BROWSER "󰖟", -- WEB BROWSER
"󰻞", -- CHAT "󰻞", -- CHAT
"󰲹", -- MUSIC "󰲹", -- MUSIC
"", -- VIDEO "", -- VIDEO
"󰲶", -- IMAGE/EDIT TOOLS "󰧰", -- IMAGE/EDIT TOOLS
"󰧮", -- OFFICE "󰧮", -- OFFICE
"󰸶" -- GAMES "󰸶" -- GAMES
}, },

View file

@ -52,6 +52,7 @@ ruled.client.connect_signal(
rule_any = { rule_any = {
class = { class = {
"Emacs", "Emacs",
"neovide",
"lvim", "lvim",
"Godot", "Godot",
"neovim", "neovim",
@ -82,7 +83,8 @@ ruled.client.connect_signal(
"Chromium", "Chromium",
"Bitwarden", "Bitwarden",
"qutebrowser", "qutebrowser",
"tut" "tut",
"newsboat"
} }
}, },
properties = { tag = "󰖟" } properties = { tag = "󰖟" }
@ -104,8 +106,7 @@ ruled.client.connect_signal(
rule_any = { rule_any = {
class = { class = {
"cmus", "cmus",
"musik", "ytfzf_music",
"youm",
"Audacity", "Audacity",
"Ardour", "Ardour",
"Carla2", "Carla2",
@ -145,7 +146,7 @@ ruled.client.connect_signal(
"Xournalpp", "Xournalpp",
} }
}, },
properties = { tag = "󰲶" } properties = { tag = "󰧰" }
} }
-- TAG 8 -- TAG 8
ruled.client.append_rule { ruled.client.append_rule {

View file

@ -2,27 +2,27 @@
# Loop through all attached batteries and format the info # Loop through all attached batteries and format the info
currntpwr=$(powerprofilesctl get) currntpwr=$(powerprofilesctl get)
if [ "${currntpwr}" = "performance" ]; then if [ "${currntpwr}" = "performance" ]; then
pwr=" 󰇙 󰓅 Performance" pwr=" - 󰓅 Performance"
elif [ "${currntpwr}" = "balanced" ]; then elif [ "${currntpwr}" = "balanced" ]; then
pwr=" 󰇙 󰾅 Balanced" pwr=" - 󰾅 Balanced"
elif [ "${currntpwr}" = "power-saver" ]; then elif [ "${currntpwr}" = "power-saver" ]; then
pwr=" 󰇙 󰾆 PowerSaver" pwr=" - 󰾆 PowerSaver"
fi fi
for battery in /sys/class/power_supply/BAT?*; do for battery in /sys/class/power_supply/BAT?*; do
# If non-first battery, print a space separator. # If non-first battery, print a space separator.
[ -n "${capacity+x}" ] && printf " " [ -n "${capacity+x}" ] && printf " "
# Sets up the status and capacity # Sets up the status and capacity
case "$(cat "$battery/status" 2>&1)" in case "$(cat "$battery/status" 2>&1)" in
"Full") status=" " ;; "Full") status="󱊣" ;;
"Discharging") status="" ;; "Discharging") status="󱊢" ;;
"Charging") status=" " ;; "Charging") status="󱊥" ;;
"Not charging") status=" " ;; "Not charging") status="󱊥" ;;
"Unknown") status="" ;; "Unknown") status="󰂎" ;;
*) exit 1 ;; *) exit 1 ;;
esac esac
capacity="$(cat "$battery/capacity" 2>&1)" capacity="$(cat "$battery/capacity" 2>&1)"
# Will make a warn variable if discharging and low # Will make a warn variable if discharging and low
[ "$status" = "" ] && [ "$capacity" -le 100 ] && warn="" [ "$status" = "󰂎" ] && [ "$capacity" -le 100 ] && warn=""
# Prints the info # Prints the info
printf "%s%s%d%%%s" "$status" "$warn " "$capacity" "$pwr"; unset warn printf "%s%s%d%%%s" "$status" "$warn " "$capacity" "$pwr"; unset warn
done && printf "\\n" done && printf "\\n"

View file

@ -1,6 +1,6 @@
#!/bin/bash #!/bin/bash
# Prints the current volume or 🔇 if muted. # Prints the current volume or 🔇 if muted.
[ "$(pamixer --get-mute)" = true ] && echo "󰸈" && exit [ "$(pamixer --get-mute)" = true ] && echo "󰕿x" && exit
vol="$(pamixer --get-volume)" vol="$(pamixer --get-volume)"
if [ "$vol" -gt "50" ]; then if [ "$vol" -gt "50" ]; then
icon="󰕾" icon="󰕾"
@ -9,6 +9,6 @@ elif [ "$vol" -gt "10" ]; then
elif [ "$vol" -gt "0" ]; then elif [ "$vol" -gt "0" ]; then
icon="󰕿" icon="󰕿"
else else
echo "󰸈" && exit echo "󰕿x" && exit
fi fi
echo -e "$icon $vol%" echo -e "$icon $vol%"

View file

@ -1,6 +1,6 @@
configuration{ configuration{
modi: "run,drun,window"; modi: "run,drun,window";
lines: 5; lines: 10;
font: "mononoki Nerd Font 14"; font: "mononoki Nerd Font 14";
show-icons: true; show-icons: true;
terminal: "alacritty"; terminal: "alacritty";
@ -10,8 +10,8 @@ configuration{
hide-scrollbar: true; hide-scrollbar: true;
display-drun: "  Apps "; display-drun: "  Apps ";
display-run: "  Run "; display-run: "  Run ";
display-window: " 﩯 Window"; display-window: " 﩯 Window ";
display-Network: " 󰤨 Network"; display-Network: " 󰤨 Network ";
sidebar-mode: true; sidebar-mode: true;
dpi: 100; dpi: 100;
} }
@ -24,8 +24,8 @@ element-text, element-icon , mode-switcher {
} }
window { window {
height: 380px; height: 380;
width: 850; width: 1000;
border: 3px; border: 3px;
border-color: @border-col; border-color: @border-col;
background-color: @bg-col; background-color: @bg-col;
@ -64,9 +64,9 @@ entry {
listview { listview {
border: 0px 0px 0px; border: 0px 0px 0px;
padding: 6px 0px 0px; padding: 2px 2px 2px;
margin: 10px 0px 0px 20px; margin: 10px 20px 0px 20px;
columns: 2; columns: 1;
background-color: @bg-col; background-color: @bg-col;
} }
@ -77,7 +77,7 @@ element {
} }
element-icon { element-icon {
size: 25px; size: 28px;
} }
element selected { element selected {

View file

@ -1,26 +0,0 @@
#!/usr/bin/env bash
# ***This script was made by Clay Gomera (Drake)***
# - Description: A simple script for file editing in rofi
# - Dependencies: rofi (Everything else can be changed)
# Show list of options
EDITOR="emacsclient -c -a emacs"
cd "$HOME" || exit 0
file=1
while [ "$file" ]; do
file=$(fd -LHpd 1 | rofi -dmenu -p "File to edit: $(basename "$(pwd)")")
if [ -e "$file" ]; then
owd=$(pwd)
if [ -d "$file" ]; then
cd "$file" || exit 0
else [ -f "$file" ]
if [ "$file" ]; then
$EDITOR "$owd/$file" &
exit 0
else
exit 0
fi
fi
fi
done

View file

@ -26,7 +26,7 @@ pwr4=" Cancel"
pwrs="$pwr1\n$pwr2\n$pwr3\n$pwr4" pwrs="$pwr1\n$pwr2\n$pwr3\n$pwr4"
## MAIN ACTION COMMAND ## ## MAIN ACTION COMMAND ##
action=$(echo -e "$options" | rofi -dmenu -p "  Power Options ") action=$(echo -e "$options" | rofi -dmenu -i -p "  Power Options ")
case "$action" in case "$action" in
$option1*) $option1*)
pkill X;; pkill X;;
@ -47,7 +47,7 @@ case "$action" in
elif [ "$currentpwr" = "balanced" ]; then elif [ "$currentpwr" = "balanced" ]; then
currentpwr=" Balanced" currentpwr=" Balanced"
fi fi
pwraction=$(echo -e "$pwrs" | rofi -dmenu -p "  Power Profile Menu - Currently set to: ${currentpwr} ") pwraction=$(echo -e "$pwrs" | rofi -dmenu -i -p "  Power Profile Menu - Currently set to: ${currentpwr} ")
case "$pwraction" in case "$pwraction" in
$pwr1*) $pwr1*)
powerprofilesctl set performance && notify-send "Power profile switched to performance";; powerprofilesctl set performance && notify-send "Power profile switched to performance";;

View file

@ -23,7 +23,7 @@ dels="$del1\n$del2\n$del3"
## DELAY FUNCTION ## ## DELAY FUNCTION ##
delays() { delays() {
del=$(echo -e "$dels" | rofi -dmenu -p "  Select Delay "); del=$(echo -e "$dels" | rofi -dmenu -i -p "  Select Delay ");
case $del in case $del in
"$del1") "$del1")
scrot -d 3 && notify-send "Screenshot saved";; scrot -d 3 && notify-send "Screenshot saved";;
@ -50,7 +50,7 @@ area() {
} }
## MAIN ACTION ## ## MAIN ACTION ##
choice=$(echo -e "$chos" | rofi -dmenu -p "  Sreenshot Menu ") choice=$(echo -e "$chos" | rofi -dmenu -i -p "  Sreenshot Menu ")
case $choice in case $choice in
"$cho1") "$cho1")
screen;; screen;;

View file

@ -10,7 +10,7 @@ cd "$walldir" || exit
## SELECT PICTURE FUNCTION ## ## SELECT PICTURE FUNCTION ##
selectpic() { selectpic() {
wallpaper=$(fd -p "$walldir" | rofi -dmenu -p "Select a wallpaper:") wallpaper=$(fd -p "$walldir" | rofi -dmenu -i -p "Select a wallpaper:")
if [ "$wallpaper" ]; then if [ "$wallpaper" ]; then
chosenwall=$wallpaper chosenwall=$wallpaper
else else
@ -28,7 +28,7 @@ option5="Scale"
options="$option1\n$option2\n$option3\n$option4\n$option5" options="$option1\n$option2\n$option3\n$option4\n$option5"
## MAIN ACTION ## ## MAIN ACTION ##
action=$(echo -e "$options" | rofi -dmenu -p "Chose the format:") action=$(echo -e "$options" | rofi -dmenu -i -p "Chose the format:")
case "$action" in case "$action" in
$option1*) $option1*)
feh --bg-fill "$chosenwall";; feh --bg-fill "$chosenwall";;

View file

@ -5,7 +5,7 @@
# - Dependencies: rofi, NetworkManager # - Dependencies: rofi, NetworkManager
## ROFI VARIABLES ## ## ROFI VARIABLES ##
ROFI="rofi -dmenu -p" ROFI="rofi -dmenu -i -p"
## MAIN OPTIONS ## ## MAIN OPTIONS ##
option1=" Turn on WiFi" option1=" Turn on WiFi"