add overwrite session to deskmngr
This commit is contained in:
parent
a655031399
commit
8fe671866c
@ -9,6 +9,7 @@ case $LANG in
|
||||
ABOUT="O DeskMngr"
|
||||
SAVED_SESS="Zapisane sesje"
|
||||
RESTORE_TO="Przywróć na pulpit..."
|
||||
OVERWRITE="<b>Nadpisz</b> sesję:"
|
||||
EDIT="<b>Edytuj</b> sesję:"
|
||||
DELETE="<b>Usuń</b> sesję:"
|
||||
OPEN_CNFDIR="Otwórz katalog z sesjami"
|
||||
@ -24,6 +25,7 @@ case $LANG in
|
||||
ABOUT="About DeskMngr"
|
||||
SAVED_SESS="Saved sessions"
|
||||
RESTORE_TO="Restore to desktop..."
|
||||
OVERWRITE="<b>Overwrite</b> session:"
|
||||
EDIT="<b>Edit</b> session:"
|
||||
DELETE="<b>Delete</b> session:"
|
||||
OPEN_CNFDIR="Open config directory"
|
||||
@ -39,6 +41,7 @@ case $LANG in
|
||||
ABOUT="About DeskMngr"
|
||||
SAVED_SESS="Saved sessions"
|
||||
RESTORE_TO="Restore to desktop..."
|
||||
OVERWRITE="<b>Overwrite</b> session:"
|
||||
EDIT="<b>Edit</b> session:"
|
||||
DELETE="<b>Delete</b> session:"
|
||||
OPEN_CNFDIR="Open config directory"
|
||||
@ -70,6 +73,7 @@ out2+=("^sep($RESTORE_TO)")
|
||||
dname=$(wmctrl -d | grep ^${ID} | cut -d' ' -f13-)
|
||||
out2+=("\"\"\" ${dname/&/&}\"\"\",deskmngr -r $name.desk $ID")
|
||||
done < <(wmctrl -d|awk '{print $1}')
|
||||
out2+=("^sep()" " $OVERWRITE <b>${name//_/ }</b>,deskmngr save $name")
|
||||
out2+=("^sep()" " $EDIT <b>${name//_/ }</b>,geany $SESSIONDIR$name.desk")
|
||||
out2+=("^sep()" " $DELETE <b>${name//_/ }</b>,rm -f $SESSIONDIR$name.desk;$me")
|
||||
((i=i+1))
|
||||
|
Loading…
Reference in New Issue
Block a user