From 57609ffa8084468a31022663b13772b582a21bd1 Mon Sep 17 00:00:00 2001 From: Gianni Ceccarelli Date: Mon, 9 Oct 2023 17:25:45 +0100 Subject: prefer alacritty --- preferences/DefaultTerminal | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/preferences/DefaultTerminal b/preferences/DefaultTerminal index 516ba78..a97000c 100644 --- a/preferences/DefaultTerminal +++ b/preferences/DefaultTerminal @@ -1 +1 @@ -FindCommand DefaultTerminal urxvt terminator urxvt Eterm aterm mrxvt xterm gnome-terminal konsole xfce4-terminal +FindCommand DefaultTerminal alacritty urxvt xterm -- cgit v1.2.3 From ad3b3fe2a4f0df41d0e77a74501512df3cc24a78 Mon Sep 17 00:00:00 2001 From: Gianni Ceccarelli Date: Tue, 10 Oct 2023 09:26:21 +0100 Subject: import QuakeConsoleTerminal, hack it for alacritty --- components/apps/QuakeConsole | 69 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 69 insertions(+) create mode 100644 components/apps/QuakeConsole 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 -- cgit v1.2.3 From 89eb7d018a903d58ea9ebecee97c07e9c72949a7 Mon Sep 17 00:00:00 2001 From: Gianni Ceccarelli Date: Thu, 12 Oct 2023 15:15:51 +0100 Subject: remove fake transparency, we'll tell picom to do it for real --- colorsets/WhiteDesktop.cs | 92 +++++++++++++++++++++++++++++++++++++++++ preferences/LastChoosenColorset | 2 +- 2 files changed, 93 insertions(+), 1 deletion(-) create mode 100644 colorsets/WhiteDesktop.cs diff --git a/colorsets/WhiteDesktop.cs b/colorsets/WhiteDesktop.cs new file mode 100644 index 0000000..6d429dc --- /dev/null +++ b/colorsets/WhiteDesktop.cs @@ -0,0 +1,92 @@ +# WhiteDesktop colorset +# Written by: Social + +SetEnv Colorset_Name "WhiteDesktop" + +# What colorsets do we use? +Read $./colorset-definition + +# -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- +# QuakeConsole, thumbnailed windows +Colorset $[infostore.cs_quakeconsole] \ +Foreground "black", Background "black", \ +Hilight "black", Shadow "black", \ +IconAlpha 70 + + +Colorset $[infostore.cs_panel_inactive] \ +Foreground "black", Background "#444444", \ +Tint "#aaaaaa" 50, \ +fgTint, IconAlpha, IconTint + +Colorset $[infostore.cs_panel_active] \ +Foreground "darkgray", Background "darkgray", \ +Hilight "darkgray", Shadow "darkgray", \ +Tint "#888888" 50 + +Colorset $[infostore.cs_panel_wininactive] \ +Foreground "#555555", Background "#777777", \ +Hilight "#444444", Shadow "#444444", \ +Tint "#aaaaaa" 60 + +Colorset $[infostore.cs_panel_winactive] \ +Foreground "black", Background "#777777", \ +Hilight "#666666", Shadow "#666666", \ +Tint "#aaaaaa" 80 + +Colorset $[infostore.cs_panel_border] \ +Background "#777777" + +Colorset $[infostore.cs_menu_inactive] \ +Foreground "black", Background "white", \ +Hilight "white", Shadow "white", \ +Tint "#aaaaaa" 50 + +Colorset $[infostore.cs_menu_active] \ +Foreground "#333333", Background "white", \ +Hilight "#333333", Shadow "gray" + +Colorset $[infostore.cs_icon_active] \ +Foreground "black", Background "white", \ +Hilight "white", Shadow "darkgray", \ +RootTransparent + +Colorset $[infostore.cs_transparent] Transparent + +Colorset $[infostore.cs_acpibatt_99] \ +Foreground "black", Background "#444444", \ +Tint "#aaaaaa" 50, \ +fgTint "black" 100, IconAlpha, IconTint + +Colorset $[infostore.cs_acpibatt_74] \ +Foreground "#0000ff", Background "#444444", \ +Tint "#aaaaaa" 50, \ +fgTint "#0000ff" 100, IconAlpha, IconTint + +Colorset $[infostore.cs_acpibatt_49] \ +Foreground "#00ff00", Background "#444444", \ +Tint "#aaaaaa" 50, \ +fgTint "#00ff00" 100, IconAlpha, IconTint + +Colorset $[infostore.cs_acpibatt_24] \ +Foreground "#ffff00", Background "#444444", \ +Tint "#aaaaaa" 50, \ +fgTint "#ffff00" 100, IconAlpha, IconTint + +Colorset $[infostore.cs_acpibatt_12] \ +Foreground "#ff4400", Background "#444444", \ +Tint "#aaaaaa" 50, \ +fgTint "#ff4400" 100, IconAlpha, IconTint + +Colorset $[infostore.cs_acpibatt_0] \ +Foreground "#ff0000", Background "#444444", \ +Tint "#aaaaaa" 50, \ +fgTint "#ff0000" 100, IconAlpha, IconTint + +# -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- +# Additional variables +SetEnv ThumbBorderColor "black" +SetEnv ExternalFontColor "gray40" + +SetEnv TrayerTint "0xaaaaaa" +SetEnv TrayerAlpha "128" diff --git a/preferences/LastChoosenColorset b/preferences/LastChoosenColorset index 0661c12..d756132 100644 --- a/preferences/LastChoosenColorset +++ b/preferences/LastChoosenColorset @@ -1 +1 @@ -Colorsets-Set '/usr/bin/../share/fvwm-crystal/fvwm/colorsets/WhiteDesktop.cs' +Colorsets-Set '/home/dakkar/.fvwm-crystal/colorsets/WhiteDesktop.cs' -- cgit v1.2.3 From 273cca2e0179d411f5090ab8a24bd32b5762264a Mon Sep 17 00:00:00 2001 From: Gianni Ceccarelli Date: Thu, 12 Oct 2023 15:36:52 +0100 Subject: fix colorset defs --- colorsets/WhiteDesktop.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/colorsets/WhiteDesktop.cs b/colorsets/WhiteDesktop.cs index 6d429dc..9b6e15e 100644 --- a/colorsets/WhiteDesktop.cs +++ b/colorsets/WhiteDesktop.cs @@ -4,7 +4,7 @@ SetEnv Colorset_Name "WhiteDesktop" # What colorsets do we use? -Read $./colorset-definition +Read /usr/share/fvwm-crystal/fvwm/colorsets/colorset-definition # -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- # QuakeConsole, thumbnailed windows -- cgit v1.2.3 From f8a62bfcadcfa71474fc9d8db8b4306c7cbcb024 Mon Sep 17 00:00:00 2001 From: Gianni Ceccarelli Date: Thu, 12 Oct 2023 16:29:08 +0100 Subject: better colours --- colorsets/WhiteDesktop.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/colorsets/WhiteDesktop.cs b/colorsets/WhiteDesktop.cs index 9b6e15e..e822809 100644 --- a/colorsets/WhiteDesktop.cs +++ b/colorsets/WhiteDesktop.cs @@ -15,7 +15,7 @@ IconAlpha 70 Colorset $[infostore.cs_panel_inactive] \ -Foreground "black", Background "#444444", \ +Foreground "black", Background "#888888", \ Tint "#aaaaaa" 50, \ fgTint, IconAlpha, IconTint -- cgit v1.2.3