From dfb80843400492a01d7c31e691be5c3588d60f1f Mon Sep 17 00:00:00 2001 From: Clay Gomera Date: Mon, 12 Sep 2022 21:37:03 -0400 Subject: [PATCH] updated --- user/.config/awesome/core/bindings.lua | 18 +++++++++--------- user/.config/rofi/scripts/rofi_power | 8 ++++---- 2 files changed, 13 insertions(+), 13 deletions(-) diff --git a/user/.config/awesome/core/bindings.lua b/user/.config/awesome/core/bindings.lua index 700289ffd..a1d7d9286 100644 --- a/user/.config/awesome/core/bindings.lua +++ b/user/.config/awesome/core/bindings.lua @@ -330,15 +330,15 @@ awful.keyboard.append_global_keybindings({ awful.keygrabber.run( function(_, key, event) if event == "release" then return end - if key == "d" then awful.spawn.with_shell("dmenu_drun") - elseif key == "r" then awful.spawn.with_shell("dmenu_run -b -l 10 -i") - elseif key == "e" then awful.spawn.with_shell("dmenu_edit") - elseif key == "q" then awful.spawn.with_shell("dmenu_power") - elseif key == "i" then awful.spawn.with_shell("dmenu_wifi") - elseif key == "b" then awful.spawn.with_shell("dmenu_blue") - elseif key == "s" then awful.spawn.with_shell("dmenu_scrot") - elseif key == "z" then awful.spawn.with_shell("dmenu_emoji") - elseif key == "w" then awful.spawn.with_shell("dmenu_wall") + if key == "d" then awful.spawn.with_shell("rofi -show drun -show-icons") + elseif key == "r" then awful.spawn.with_shell("rofi -show run") + elseif key == "e" then awful.spawn.with_shell("$HOME/.config/rofi/scripts/rofi_edit") + elseif key == "q" then awful.spawn.with_shell("$HOME/.config/rofi/scripts/rofi_power") + elseif key == "i" then awful.spawn.with_shell("$HOME/.config/rofi/scripts/rofi_wifi") + elseif key == "b" then awful.spawn.with_shell("$HOME/.config/rofi/scripts/rofi_blue") + elseif key == "s" then awful.spawn.with_shell("$HOME/.config/rofi/scripts/rofi_scrot") + elseif key == "z" then awful.spawn.with_shell("$HOME/.config/rofi/scripts/rofi_emoji") + elseif key == "w" then awful.spawn.with_shell("$HOME/.config/rofi/scripts/rofi_wall") end awful.keygrabber.stop(grabber) end diff --git a/user/.config/rofi/scripts/rofi_power b/user/.config/rofi/scripts/rofi_power index e2516c6cc..2ae9139f5 100755 --- a/user/.config/rofi/scripts/rofi_power +++ b/user/.config/rofi/scripts/rofi_power @@ -26,21 +26,21 @@ pwr4="(X) Cancel" pwrs="$pwr1\n$pwr2\n$pwr3\n$pwr4" ## MAIN ACTION COMMAND ## -action=$(echo -e "$options" | rofi -dmenu -b -i -p " ") +action=$(echo -e "$options" | rofi -dmenu -b -l 7 -i -p " ") case "$action" in $option1*) whoami | xargs -I % sh -c 'pkill -KILL -u %';; $option2*) - systemctl reboot;; + systemctl reboot || loginctl reboot;; $option3*) - systemctl poweroff;; + systemctl poweroff || loginctl poweroff;; $option4*) betterlockscreen --suspend;; $option5*) betterlockscreen -l;; $option6*) currentpwr=$(powerprofilesctl get) - pwraction=$(echo -e "$pwrs" | rofi -dmenu -b -i -p "Current profile is: ${currentpwr} | Select profile:") + pwraction=$(echo -e "$pwrs" | rofi -dmenu -b -l 3 -i -p "Current profile is: ${currentpwr} | Select profile:") case "$pwraction" in $pwr1*) powerprofilesctl set performance && notify-send "Power profile switched to performance";;