X-Git-Url: https://git.phdru.name/?a=blobdiff_plain;f=.fvwm%2Fmain.m4;h=fc5b6158af8786bc4ae0ede350ca870bd032fb90;hb=5a39f9d345ebf7b0f8d81a1a932b4379effa385a;hp=b93b61542eb347d07d3bd654a43e9d4ff9748667;hpb=5f1513898e4a0172d5b126075f9c851b79edc3f2;p=dotfiles.git diff --git a/.fvwm/main.m4 b/.fvwm/main.m4 index b93b615..fc5b615 100644 --- a/.fvwm/main.m4 +++ b/.fvwm/main.m4 @@ -80,7 +80,7 @@ define(`TERM_GEOM_BOTRT', TERM_GEOM`-0-0') define(`TERM_GEOM_BIG', ifelse(eval(WIDTH < 1024), 1, `96x30', - eval(WIDTH < 1920), 1, `112x32+2-0', `126x35')) + eval(WIDTH < 1920), 1, `112x32+2-0', `119x32+1-0')) define(`TERM', `urxvt') @@ -140,27 +140,6 @@ TERM_KOI8 -geometry TERM_GEOM_BIG -title "$2" -n "$2" -e ssh -4 "$1") define(`REMOTE_HOST_KOI8_BIG_MENU', "$2 (koi8)" REMOTE_HOST_KOI8_BIG($1, $2)) -define(`SSH_CONNECTION_SHARING_TERM', -$1 -title "git@$3" -n "git@$3" -e ssh -N4 "$2") - -define(`SSH_CONNECTION_SHARING_UTF8', -SSH_CONNECTION_SHARING_TERM(TERM_UTF8, $1, $2)) - -define(`SSH_CONNECTION_SHARING_UTF8_BOTLT', -SSH_CONNECTION_SHARING_TERM(TERM_UTF8_BOTLT, $1, $2)) - -define(`SSH_CONNECTION_SHARING_UTF8_BOTRT', -SSH_CONNECTION_SHARING_TERM(TERM_UTF8_BOTRT, $1, $2)) - -define(`SSH_CONNECTION_SHARING_UTF8_MENU', -"git@$2 (utf8)" SSH_CONNECTION_SHARING_UTF8($1, $2)) - -define(`SSH_CONNECTION_SHARING_UTF8_BOTLT_MENU', -"git@$2 (utf8,btlt)" SSH_CONNECTION_SHARING_UTF8_BOTLT($1, $2)) - -define(`SSH_CONNECTION_SHARING_UTF8_BOTRT_MENU', -"git@$2 (utf8,btrt)" SSH_CONNECTION_SHARING_UTF8_BOTRT($1, $2)) - divert ########################################################################## @@ -168,7 +147,7 @@ divert # # Colon seperated unix directory paths for Modules, xpm files, and bitmaps #ModulePath /usr/lib/fvwm -ImagePath /usr/share/pixmaps/fvwm:/usr/share/pixmaps:/usr/include/X11/bitmaps #:/usr/local/firefox/chrome/icons/default:/usr/local/firefox/icons +ImagePath /usr/share/pixmaps/fvwm:/usr/share/pixmaps:/usr/include/X11/bitmaps #:/usr/local/firefox/browser/chrome/icons/default:/usr/local/firefox/browser/icons ############################################################################ # COLORS and FONTS @@ -287,7 +266,8 @@ Style "Buddy List" PositionPlacement +0 -0 Style "*Pidgin*" MinOverlapPercentPlacement # (S)MPlayer -Style "*MPlayer*" Layer 6, PositionPlacement 350p 100p +Style "*MPlayer*" Layer 6, PositionPlacement 250p 100p +Style "*mpv" Layer 6, PositionPlacement 250p 100p Style "*clock" !Title, Sticky, WindowListSkip, Color Black/#40c040, NeverFocus, PositionPlacement 50-50w +1p, Layer 2 Style "emacs" NoPPosition @@ -506,9 +486,7 @@ AddToFunc StartStandardSession + I GotoDeskAndPage 0 0 1 + I TERM_UTF8 -geometry 38x30+0-0 + I Wait URxvt -+ I GotoDeskAndPage 0 1 0 -+ I TERM_KOI8 -e su - -+ I Wait TERM ++ I Exec exec pulseaudio --start + I PaVuControl + I Exec exec "$HOME"/current/projects/audio-cdr-video/audio/pa-mic-off + I XsetbgFilename @@ -517,29 +495,28 @@ AddToFunc StartStandardSession + I TERM_KOI8 + I Wait TERM + I GotoDeskAndPage 1 1 0 -+ I TERM_UTF8 -iconic -name term-im-remote -+ I Wait term-im-remote +#+ I TERM_UTF8 -iconic -name term-im-remote +#+ I Wait term-im-remote + I TERM_KOI8 -geometry 60x25-5-5 -iconic -name term-im-local + I Wait term-im-local + I GotoDeskAndPage 2 0 1 + I TERM_KOI8 -geometry TERM_GEOM_BIG + I Wait TERM + I FireFox -+ I Schedule 4500 GotoDeskAndPage 0 1 0 DestroyFunc ResumeFunction AddToFunc ResumeFunction + I GotoDeskAndPage 0 0 0 + I TERM_KOI8 + I Wait TERM ++ I Exec exec pulseaudio --start + I None ("Volume Control") PaVuControl + I Exec sleep 10; exec "$HOME"/current/projects/audio-cdr-video/audio/pa-mic-off + I XsetbgFilename + I Wait gxmessage -+ I Any ("*Mozilla Firefox") GotoDeskAndPage 0 1 0 ++ I Any ("*Mozilla Firefox") GotoDeskAndPage 0 0 0 + I TestRc (Match) Break + I None ("*Mozilla Firefox") FireFox -+ I Schedule 4500 GotoDeskAndPage 0 1 0 ############################################################################ # COMPLEX FUNCTIONS @@ -614,12 +591,12 @@ AddToFunc PaVuControl I GotoDeskAndPage 0 1 1 changequote([,]) DestroyFunc Id3Info -AddToFunc Id3Info I Exec "$HOME"/lib/audio/mp3/id3info.py "`deadbeef --nowplaying '%F'`" | text-wrap.py -n | gxmessage -buttons Ok -default Ok -fn 'MESSAGE_FONT' -file - +AddToFunc Id3Info I Exec "$HOME"/lib/audio/mp3/id3info.py "`audtool --current-song-filename`" | text-wrap.py | gxmessage -buttons Ok -default Ok -fn 'MESSAGE_FONT' -file - changequote([`], [']) -DestroyFunc DeadBeef -AddToFunc DeadBeef I GotoDeskAndPage 0 1 1 -+ I Exec exec deadbeef +DestroyFunc AudioPlayer +AddToFunc AudioPlayer I GotoDeskAndPage 0 1 1 ++ I Exec exec audacious DestroyFunc Term-Phdru AddToFunc Term-Phdru I GotoDeskAndPage 1 0 1 @@ -634,8 +611,8 @@ AddToFunc FireFox I Any ("*Mozilla Firefox") Break + I GotoDeskAndPage 1 0 0 + I Exec exec start-browser firefox + I Wait "*Mozilla Firefox" -+ I All ("*Mozilla Firefox") Lower -+ I Exec webbrowserX -n file:///home/phd/Internet/WWW/dashboard/index.html; exec webbrowserX -t file:///home/phd/Internet/WWW/dashboard/internet.html ++ I All ("*Mozilla Firefox") Iconify true ++ I Exec webbrowserX -n file:///home/phd/Internet/WWW/dashboard/index.html + I Wait "*Mozilla Firefox" DestroyFunc Gajim @@ -647,7 +624,7 @@ AddToFunc Pidgin I GotoDeskAndPage 1 1 0 + I Exec exec pidgin DestroyFunc XFilename -AddToFunc XSetbgFilename I Exec "$HOME"/current/projects/xsetbg/print-filename.py | text-wrap.py -w TEXT_WIDTH -s -n | gxmessage -buttons Ok -default Ok -fn 'MESSAGE_FONT' -file - +AddToFunc XSetbgFilename I Exec "$HOME"/current/projects/xsetbg/print-filename.py | text-wrap.py -w TEXT_WIDTH -s | gxmessage -buttons Ok -default Ok -fn 'MESSAGE_FONT' -file - ############################################################################## # MENU Setup @@ -727,16 +704,9 @@ AddToMenu TermColors "Term Colors" Title + "Term: white/deeppink" TERM_KOI8 -fg white -cr white -bg deeppink + "Term: white/black" TERM_KOI8 -fg white -cr white -bg black -AddToMenu SSH-connection-sharing "SSH connection sharing" Title -+ SSH_CONNECTION_SHARING_UTF8_MENU(phd@git.code.sf.net, SF) -+ SSH_CONNECTION_SHARING_UTF8_BOTLT_MENU(git@gitlab.com, gitlab) -+ SSH_CONNECTION_SHARING_UTF8_BOTRT_MENU(git@github.com, github) - AddToMenu Systems "Systems" Title -+ "SSH connection sharing" Popup SSH-connection-sharing -+ "" Nop + REMOTE_HOST_KOI8_MENU(phdru.name, phdru) -+ REMOTE_HOST_UTF8_MENU(phdru.name, phdru) ++ REMOTE_HOST_UTF8_BOTLT_MENU(phdru.name, phdru) + REMOTE_HOST_KOI8_BIG_MENU(phdru.name, PHDRU) AddToMenu FvwmCommands "Fvwm Commands" Title @@ -816,13 +786,11 @@ AddToMenu Utilities "Choose one:" Title + "" Nop + "GVim" Exec exec gvim + "" Nop -+ "MyRuLb" Exec exec "$HOME"/admin/prog/myrulib/myrulib -+ "" Nop #+ "XFortune" Exec /usr/games/fortune | gxmessage -buttons Ok -default Ok -fn 'MESSAGE_FONT' -file - #+ "xbuffy" Exec exec xbuffy -fn 'XBUFFY_FONT' -geometry +0+125 -boxfile mail/misc/.xbuffyrc -+ "" Nop +#+ "" Nop + "pavucontrol" PaVuControl -+ "DeadBeef" DeadBeef ++ "AudioPlayer" AudioPlayer + "Id3Info" Id3Info + "" Nop + "Gajim" Gajim @@ -868,8 +836,8 @@ AddToMenu XScreenSaverMenu "Choose mode:" Title + "Screen Saver Preferences" Exec exec xscreensaver-command -prefs + "Reinitialize Screen Saver" Exec exec xscreensaver-command -restart + "" Nop -+ "Launch Screen Saver" Exec exec xscreensaver + "Kill Screen Saver" Exec exec xscreensaver-command -exit ++ "Launch Screen Saver" Exec exec xscreensaver AddToMenu XSetBgMenu "XSetBg" Title + "Change wallpaper" Exec exec "$HOME"/current/projects/xsetbg/xsetbg-force @@ -882,7 +850,7 @@ changequote([,]) + "Xli (scaled)" Exec fn="`$HOME/current/projects/xsetbg/print-filename.py -e koi8-r`" && exec xli -title "`echo $fn | sed 's/ /_/g'`" -zoom auto "$fn" + "Open in browser" Exec exec webbrowserX -n "`$HOME/current/projects/xsetbg/print-filename.py -e koi8-r`" + "Filename" Exec exec "$HOME"/current/projects/xsetbg/print-filename.py -e koi8-r -+ "XFilename" Exec "$HOME"/current/projects/xsetbg/print-filename.py | text-wrap.py -n | gxmessage -buttons Ok -default Ok -fn 'MESSAGE_FONT' -file - ++ "XFilename" Exec "$HOME"/current/projects/xsetbg/print-filename.py | text-wrap.py | gxmessage -buttons Ok -default Ok -fn 'MESSAGE_FONT' -file - + "XFilename (wrapped)" XSetbgFilename + "" Nop + "Xli (prev.)" Exec fn="`$HOME/current/projects/xsetbg/print-filename.py -e koi8-r 1`" && exec xli -title "`echo $fn | sed 's/ /_/g'`" "$fn" @@ -890,8 +858,8 @@ changequote([,]) + "Open in browser (prev.)" Exec exec webbrowserX -n "`$HOME/current/projects/xsetbg/print-filename.py -e koi8-r 1`" changequote([`], [']) + "Filename (prev.)" Exec exec "$HOME"/current/projects/xsetbg/print-filename.py -e koi8-r 1 -+ "XFilename (prev.)" Exec "$HOME"/current/projects/xsetbg/print-filename.py 1 | text-wrap.py -n | gxmessage -buttons Ok -default Ok -fn 'MESSAGE_FONT' -file - -+ "XFilename (prev., wrapped)" Exec "$HOME"/current/projects/xsetbg/print-filename.py 1 | text-wrap.py -w TEXT_WIDTH -s -n | gxmessage -buttons Ok -default Ok -fn 'MESSAGE_FONT' -file - ++ "XFilename (prev.)" Exec "$HOME"/current/projects/xsetbg/print-filename.py 1 | text-wrap.py | gxmessage -buttons Ok -default Ok -fn 'MESSAGE_FONT' -file - ++ "XFilename (prev., wrapped)" Exec "$HOME"/current/projects/xsetbg/print-filename.py 1 | text-wrap.py -w TEXT_WIDTH -s | gxmessage -buttons Ok -default Ok -fn 'MESSAGE_FONT' -file - ############################################################################ # FvwmBacker @@ -937,12 +905,12 @@ pushdef(`TERM_UTF8', `Exec "URxvt" exec "$HOME"/lib/X11/utf8rxvt') *FvwmButtons: (Title phdru, Icon xterm-sgi.xpm, Action REMOTE_HOST_KOI8(phdru.name, phdru.name)) popdef(`TERM_KOI8', `TERM_UTF8') -*FvwmButtons: (Title Wallpaper, Icon find1.xpm, Action Exec "gxmessage" "$HOME"/current/projects/xsetbg/print-filename.py | text-wrap.py -w TEXT_WIDTH -s -n | gxmessage -buttons Ok -default Ok -fn 'MESSAGE_FONT' -file -) -*FvwmButtons: (Title "-1", Icon find1.xpm, Action Exec "gxmessage" "$HOME"/current/projects/xsetbg/print-filename.py 1 | text-wrap.py -w TEXT_WIDTH -s -n | gxmessage -buttons Ok -default Ok -fn 'MESSAGE_FONT' -file -) +*FvwmButtons: (Title Wallpaper, Icon find1.xpm, Action Exec "gxmessage" "$HOME"/current/projects/xsetbg/print-filename.py | text-wrap.py -w TEXT_WIDTH -s | gxmessage -buttons Ok -default Ok -fn 'MESSAGE_FONT' -file -) +*FvwmButtons: (Title "-1", Icon find1.xpm, Action Exec "gxmessage" "$HOME"/current/projects/xsetbg/print-filename.py 1 | text-wrap.py -w TEXT_WIDTH -s | gxmessage -buttons Ok -default Ok -fn 'MESSAGE_FONT' -file -) *FvwmButtons: (Title Next, Icon Jrecycle.xpm, Action Exec exec "$HOME"/current/projects/xsetbg/xsetbg-http-force) *FvwmButtons: (Title pavucontrol, Icon mini.sound.xpm, Action Exec "Volume Control" exec pavucontrol) #*FvwmButtons: (Title Id3Info, Icon bell.xpm, Action Id3Info) -*FvwmButtons: (Title DeadBeef, Icon bell.xpm, Action Exec "DeaDBeeF-*" exec deadbeef) +*FvwmButtons: (Title AudioPlayer, Icon bell.xpm, Action Exec "Audacious" exec audacious) #*FvwmButtons: (Title XLock, Icon Jxlock.xpm, Action Exec exec xscreensaver-command -lock) ############################################################################