latest user config

This commit is contained in:
2024-09-13 14:28:50 +02:00
parent cdcaee5943
commit 2f402fe686
59 changed files with 2336 additions and 670 deletions
+10 -3
View File
@@ -1,5 +1,13 @@
#!/usr/bin/env bash
####
# @author moonarch.de (nevaforget)
# script used with rofi to list desktop files of specific dir
# dir: /usr/share/settings-menu/
# @example rofi -show fb -modes "fb:~/.config/rofi/settings-menu/setmen.sh" -theme $HOME/.config/rofi/settings-menu/settings-menu.rasi
# @dependencies glib >= 2.67.2
####
function get_name {
local lang=$(locale | grep LANG | cut -d= -f2 | cut -d_ -f1)
local find="Name\[$lang\]="
@@ -19,15 +27,14 @@ if [ "$ROFI_RETV" = "1" ]
then
for deskfile in /usr/share/settings-menu/*
do
match=$(grep "^Name" $deskfile | grep "$@" )
if [ -n "$match" ]
then
#$(gtk-launch "$deskfile")
#gio launch $deskfile
# old way
app=$(grep '^Exec' $deskfile | tail -1 | sed 's/^Exec=//' | sed 's/%.//' | sed 's/^"//g' | sed 's/" *$//g')
coproc ( $app > /dev/null 2>&1 )
break
@@ -22,4 +22,5 @@ element-icon {
element-text {
vertical-align: 0.5;
horizontal-align: 0.5;
font: "JetBrainsMono Nerd Font 9";
}