update some wayland bar tools
This commit is contained in:
parent
146a79063a
commit
73b11f6293
5 changed files with 40 additions and 0 deletions
30
wayland/bin/qr-generator.sh
Executable file
30
wayland/bin/qr-generator.sh
Executable file
|
|
@ -0,0 +1,30 @@
|
|||
#!/bin/bash
|
||||
|
||||
while getopts "c" flag 2>/dev/null; do
|
||||
case "${flag}" in
|
||||
c)
|
||||
from_clipboard=true
|
||||
;;
|
||||
*)
|
||||
printf "[ERROR] Invalid flag: %s\n\n" "${flag}"
|
||||
help
|
||||
;;
|
||||
esac
|
||||
done
|
||||
|
||||
shift $((OPTIND - 1))
|
||||
|
||||
if [[ ! ${from_clipboard} ]]; then
|
||||
qr_content=$(kdialog --title "QR Code Generator" --inputbox "Enter QR Code contents:")
|
||||
else
|
||||
qr_content="$(wl-paste)"
|
||||
fi
|
||||
|
||||
if [[ -z "${qr_content}" ]]; then
|
||||
printf 'No QR Code contents defined!\n'
|
||||
exit 1
|
||||
fi
|
||||
|
||||
qrencode -s 12 -o - "${qr_content}" | wl-copy
|
||||
|
||||
wl-paste | feh -Z -
|
||||
|
|
@ -34,6 +34,7 @@
|
|||
:space-evenly false
|
||||
:halign "end"
|
||||
(idleinhibit)
|
||||
(utilities)
|
||||
(volume)
|
||||
(network)
|
||||
(vpn)
|
||||
|
|
@ -61,6 +62,7 @@
|
|||
|
||||
;rightgroup
|
||||
(include "modules/bar/idle_inhibit.yuck")
|
||||
(include "modules/bar/utilities.yuck")
|
||||
(include "modules/bar/volume.yuck")
|
||||
(include "variables/bar/network-manager.yuck")
|
||||
(include "modules/bar/network.yuck")
|
||||
|
|
|
|||
|
|
@ -87,6 +87,7 @@ $transition-time: 0.3s;
|
|||
|
||||
@import "./bar/window_title.scss";
|
||||
@import "./bar/idle-inhibitor.scss";
|
||||
@import "./bar/utilities.scss";
|
||||
@import "./bar/volume.scss";
|
||||
@import "./bar/networking.scss";
|
||||
@import "./bar/bluetooth.scss";
|
||||
|
|
|
|||
6
wayland/config/eww/style/bar/utilities.scss
Normal file
6
wayland/config/eww/style/bar/utilities.scss
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
|
||||
.utilities {
|
||||
margin: 0px 5px;
|
||||
$module-color: mix($color4,$color0,75%);
|
||||
@import "./styles/revealer.scss";
|
||||
}
|
||||
|
|
@ -59,6 +59,7 @@ for_window {
|
|||
[app_id="xdg-desktop-portal-gtk"] $popup, $half
|
||||
[class="^feh$"] $popup, $atcursor, $small
|
||||
[app_id="org.kde.dolphin" title="^Extracting Files"] $popup, $med
|
||||
[app_id="zenity"] $popup, $atcursor, $small
|
||||
|
||||
#game - inhibit idle focus, no border, fullscreen, floating
|
||||
[instance="origin.exe"] $game
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue