Desklet note editor code
zie desklet note editor voor doeleinde & algemene uitleg
de code is afhankelijk van deze shell tools : wmctrl command cut command
en window automation tools : x windowing tools - xprop transset tool
launch - code
# 0. 1 time config via the app
# no need for automating removal of menu bar, this was done 1 time via mousepad settings
# foreground & background colors set via preferences
# 1. launch
mousepad /mnt/data/pdat/TODO-WM/tmp/mousepad-buffer.txt & disown
# 2. if needed, manually move the editor to laptop screen (normally it 'remembers where the last location was')
# to move window without title bar to grab : alt + spacebar then move
# via code :
# 3. remove title bar : (wmctrl is used to get the window id
xprop -id $(wmctrl -l | grep 'Mousepad' | cut -d " " -f 1 ) -f _MOTIF_WM_HINTS 32c -set _MOTIF_WM_HINTS "0x2, 0x0, 0x2, 0x0, 0x0"
# 4. make window transluctant --NOK-- casing is correct
# transset --name Mousepad 0.4 # does not work , geen error maar doet niets
transset --id $(wmctrl -l | grep 'Mousepad' | cut -d " " -f 1 ) 0.6 # idem
# transset --click 0.4 # choose the window by clicking on it
# --> ? Mousepad mapt niet naar corrcte window ?
# ? is in xfce , en gebruikt geen grafisch library die transset kan aanspreken ?
# transet is voor X servers ( https://manpages.ubuntu.com/manpages/trusty/man1/transset.1.html )
# 5. make available on all workspaces
wmctrl -r "Mousepad" -b add,sticky
# 6. remove from taskbar
wmctrl -r "Mousepad" -b add,skip_taskbar
# 7. remove , what precisely ?
wmctrl -r "Mousepad" -b add,skip_pager
# seems to do nothing (likely Cinamon issue , see : https://github.com/linuxmint/Cinnamon/issues/5162 )
for troubleshooting purposes , remove these settings :
# TODO : re-set title with xprop
wmctrl -r "Mousepad" -b remove,skip_taskbar && wmctrl -r "Mousepad" -b remove,skip_pager && wmctrl -r "Mousepad" -b remove,sticky
launch - script (to be updated)
/mnt/data/SYS/scripts/scripts.bash/00.auto-start-apps/launch-mousepad-widget.sh
/mnt/data/SYS/scripts/scripts.bash/00.auto-start-apps/mousepad-widget-config.sh