diff options
Diffstat (limited to 'components')
-rw-r--r-- | components/apps/QuakeConsole | 69 | ||||
-rw-r--r-- | components/apps/ROX-Filer | 7 | ||||
-rw-r--r-- | components/bindings/Extra-Keybindings | 15 | ||||
-rw-r--r-- | components/functions/FvwmExpose | 0 | ||||
-rw-r--r-- | components/functions/Gather | 4 | ||||
-rw-r--r-- | components/functions/NotificationAreaManager-trayer-srg | 32 | ||||
-rw-r--r-- | components/styles/Applications | 2 |
7 files changed, 120 insertions, 9 deletions
diff --git a/components/apps/QuakeConsole b/components/apps/QuakeConsole new file mode 100644 index 0000000..32df96c --- /dev/null +++ b/components/apps/QuakeConsole @@ -0,0 +1,69 @@ + +# Variables +SetEnv QuakeConsole_Border "1" +#SetEnv QuakeConsoleTerminal "NO_QUAKECONSOLE_TERMINAL_FOUND" +#SetEnv QuakeConsole_Height "50" + +CheckPreferences QuakeConsoleHeight "SavePreferences QuakeConsoleHeight 'SetEnv QuakeConsole_Height 50'" +LoadPreferences QuakeConsoleHeight + +#Include preferences/QuakeConsole_Height + +DestroyFunc QuakeConsole +AddToFunc QuakeConsole ++ I None (QuakeConsoleNeedsUniqueName) QuakeConsole_Init ++ I All (QuakeConsoleNeedsUniqueName, CurrentDesk) QuakeConsole_Hide ++ I TestRc (0) QuakeConsole_Show + +DestroyFunc QuakeConsole_Init +AddToFunc QuakeConsole_Init ++ I Style QuakeConsoleNeedsUniqueName !Title, !Handles, SkipMapping, \ + WindowListSkip, VariableSize, VariablePosition, NoIcon, StaysOnTop, \ + !Iconifiable, EWMHMaximizeIgnoreWorkingArea, StickyAcrossPages, \ + Maximizable, BorderWidth $[QuakeConsole_Border], \ + Colorset $[infostore.cs_quakeconsole], HilightColorset $[infostore.cs_quakeconsole], \ + BorderColorset $[infostore.cs_quakeconsole], \ + HilightBorderColorset $[infostore.cs_quakeconsole], WindowShadeSteps 8, \ + WindowShadeShrinks + +# If you want to change QuakeConsole command, do it here! ++ I Exec exec alacritty --class QuakeConsoleNeedsUniqueName +# If you want to change QuakeConsole command, do it here! + ++ I Wait QuakeConsoleNeedsUniqueName ++ I All (QuakeConsoleNeedsUniqueName) Maximize 100 $[QuakeConsole_Height] +# The folowing line imply a horizontal shift, don't know why it is here: +#+ I All (QuakeConsoleNeedsUniqueName) Piperead 'echo Move `expr $[vp.width] / 2 - $[w.width] / 2`p w0' ++ I Style QuakeConsoleNeedsUniqueName FixedPosition ++ I All (QuakeConsoleNeedsUniqueName) MoveToDesk 0 666 ++ I Style QuakeConsoleNeedsUniqueName VariableSize, !Maximizable ++ I Prev (CurrentPage, AcceptsFocus, Visible) Focus + +DestroyFunc QuakeConsole_Show +AddToFunc QuakeConsole_Show +#+ I Window-RememberFocused ++ I All (QuakeConsoleNeedsUniqueName) MoveToDesk 0 $[desk.n] ++ I All (QuakeConsoleNeedsUniqueName) Raise +#+ I All (QuakeConsoleNeedsUniqueName) WindowShade false ++ I All (QuakeConsoleNeedsUniqueName) Focus + +DestroyFunc QuakeConsole_Hide +AddToFunc QuakeConsole_Hide +#+ I All (QuakeConsoleNeedsUniqueName) WindowShade true ++ I All (QuakeConsoleNeedsUniqueName) MoveToDesk 0 666 +#+ I All (QuakeConsoleNeedsUniqueName) WindowShade false ++ I Window-FocusRemembered + +DestroyFunc QuakeConsole-Resize +AddToFunc QuakeConsole-Resize ++ H Resize Direction S ++ H SetEnv QuakeConsole_Height "$[w.height]p" ++ H SavePreferences QuakeConsoleHeight "SetEnv QuakeConsole_Height $[w.height]p" + +Mouse (QuakeConsoleNeedsUniqueName) 2 W $[Mod1] QuakeConsole-Resize + +# Dummy functions to avoid error messages +AddToFunc Window-FocusRemembered I Nop +AddToFunc Window-RememberFocused I Nop + +# vim:ft=fvwm diff --git a/components/apps/ROX-Filer b/components/apps/ROX-Filer deleted file mode 100644 index 889b553..0000000 --- a/components/apps/ROX-Filer +++ /dev/null @@ -1,7 +0,0 @@ -# Launch the pinboard -Test (Init) Test (x rox) Exec exec rox --pinboard=Default - -# Set the specified wallpaper using ROX-Filer's pinboard -DestroyFunc Wallpaper-Set -AddToFunc Wallpaper-Set -+ I Test (x rox) Exec echo "<?xml version=\"1.0\"?><env:Envelope xmlns:env=\"http://www.w3.org/2001/12/soap-envelope\"><env:Body xmlns=\"http://rox.sourceforge.net/SOAP/ROX-Filer\"><SetBackdrop><Filename>$*</Filename><Style>Fit</Style></SetBackdrop></env:Body></env:Envelope>" | rox -R diff --git a/components/bindings/Extra-Keybindings b/components/bindings/Extra-Keybindings index f1f9fef..32eb03f 100644 --- a/components/bindings/Extra-Keybindings +++ b/components/bindings/Extra-Keybindings @@ -21,3 +21,18 @@ Key Pause A $[Mod1] Exec xscreensaver-command -lock Key XF86MonBrightnessDown A $[Mod1] Exec xscreensaver-command -lock Key Pause A $[Mod1]S Exec xscreensaver-command -lock && sudo pm-suspend + +Key F7 A $[Mod1] Exec xbacklight -dec 10 +Key F8 A $[Mod1] Exec xbacklight -inc 10 + +# remove Expose +Key E A $[Mod1] - +Key E A $[Mod1]2 - + +# kill crystal's screenshot +Key Print A $[Mod] - +# use maim instead +Key S A $[Mod1]S Exec maim -s | xclip -sel clip -t image/png +# delayed snapshot; we need that `nohup` otherwise urxvt/bash will +# take xclip down when they exit +Key S A $[Mod1]SC Exec urxvt -geometry 20x1-0-0 +sb -b 0 -w 0 -title 'maim+xclip' -bl -e /bin/bash -c 'maim -d 5 -s | nohup xclip -sel clip -t image/png > /dev/null' diff --git a/components/functions/FvwmExpose b/components/functions/FvwmExpose new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/components/functions/FvwmExpose diff --git a/components/functions/Gather b/components/functions/Gather new file mode 100644 index 0000000..ed13afe --- /dev/null +++ b/components/functions/Gather @@ -0,0 +1,4 @@ +DestroyFunc gather +AddToFunc gather ++ I All (!PlacedByFvwm) MoveToScreen + diff --git a/components/functions/NotificationAreaManager-trayer-srg b/components/functions/NotificationAreaManager-trayer-srg new file mode 100644 index 0000000..795ce41 --- /dev/null +++ b/components/functions/NotificationAreaManager-trayer-srg @@ -0,0 +1,32 @@ +# Support for trayer-srg +# Written by: Dominique Michel <dominique_libre@users.sourceforge.net> +# for FVWM-Crystal, 2013 +# +# Version with parameters instead of the environment + +# Trayer Syntax: +# NotificationAera [widthtype <request|pixel|percent>] [heighttype <request|pixel|percent>] \ +# [height <size>] [edge <left|right|top|bottom|none>] [align <left|right|center>] \ +# [margin <n pixels>] [distance <n pixels>] [width <size>] + +AddToFunc ExitFunction I Exec exec killall trayer + +# Settings of Trayer {{{1 +DestroyFunc FvwmTrayerPanel +AddToFunc FvwmTrayerPanel ++ I Exec exec trayer-srg \ +--SetDockType false \ +--widthtype $[0] \ +--heighttype $[1] \ +--height $[2] \ +--edge $[3] \ +--align $[4] \ +--transparent true \ +--alpha $[TrayerAlpha] \ +--tint $[TrayerTint] \ +--margin $[5] \ +--distance $[6] \ +$[7] $[infostore.SILENT] ++ I Style trayer-srg !Title, !Icon + +# vim:ft=fvwm diff --git a/components/styles/Applications b/components/styles/Applications index 13c9701..b40e813 100644 --- a/components/styles/Applications +++ b/components/styles/Applications @@ -13,7 +13,5 @@ Style Claws-mail MiniIcon $[FVWM_USERDIR]/icons/$[Icon_Theme]/22x22/apps/claws-m Style Pidgin MiniIcon $[FVWM_USERDIR]/icons/$[Icon_Theme]/22x22/apps/pidgin.png -Style vlc Unmanaged -Style "*VLC media player" !Unmanaged Style Steam MoveByProgramMethod IgnoreGravity Style "*Arduino*" Lenience |