sway: remove caffeinated dependency

This commit is contained in:
lelgenio 2022-02-13 20:25:47 -03:00
parent 36f6544242
commit 17c942e4b1
4 changed files with 14 additions and 5 deletions

View File

@ -11,7 +11,7 @@
function esway function esway
# You get a wayland, and you get a wayland. Everybody get's a wayland! # You get a wayland, and you get a wayland. Everybody get's a wayland!
set -x MOZ_ENABLE_WAYLAND 1 # set -x MOZ_ENABLE_WAYLAND 1
set -x CLUTTER_BACKEND wayland set -x CLUTTER_BACKEND wayland
set -x QT_QPA_PLATFORM wayland-egl set -x QT_QPA_PLATFORM wayland-egl
set -x ECORE_EVAS_ENGINE wayland-egl set -x ECORE_EVAS_ENGINE wayland-egl

View File

@ -0,0 +1,9 @@
#!/bin/sh
export SVDIR="$HOME/.config/runit/runsvdir/default/"
if pidof swayidle; then
sv down swayidle
else
sv up swayidle
fi

View File

@ -23,7 +23,7 @@ $mod+g exec emoji
$mod+d exec sway-displays $mod+d exec sway-displays
# Insert special characters # Insert special characters
$mod+Alt+c exec pidof caffeinated && pkill caffeinated || caffeinated -d $mod+Alt+c exec _sway_idle_toggle
# Kill focused window # Kill focused window
$mod+x kill $mod+x kill

View File

@ -187,9 +187,9 @@
}, },
"custom/caffeine":{ "custom/caffeine":{
"format":"{}", "format":"{}",
"exec":"pidof caffeinated > /dev/null && echo  || echo 鈴", "exec":"pidof swayidle > /dev/null && echo 鈴 || echo ",
"on-click":"pidof caffeinated && pkill caffeinated || caffeinated -d", "on-click":"_sway_idle_toggle",
"interval": 5, "interval": 1,
"tooltip":false "tooltip":false
}, },
"sway/language": { "sway/language": {