From 957801ad97e1ee31bf6c3e0a41c114e99f0593d5 Mon Sep 17 00:00:00 2001 From: ElnuDev Date: Thu, 26 Jan 2023 14:36:02 -0800 Subject: [PATCH 1/2] Fix fcitx5 highlighting --- modules/fcitx5/theme.conf | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/fcitx5/theme.conf b/modules/fcitx5/theme.conf index ac6f54e..636c50d 100644 --- a/modules/fcitx5/theme.conf +++ b/modules/fcitx5/theme.conf @@ -5,8 +5,8 @@ ScaleWithDPI=True Font=Sans 13 NormalColor=@fg0@ HighlightCandidateColor=@fg1@; -HighlightColor=@undefined@ -HighlightBackgroundColor=@undefined@ +HighlightColor=@fg0@ +HighlightBackgroundColor=@highlight@ Spacing=3 [InputPanel/TextMargin] From fe1219e2fb91e0f08058d875e8b66a3d7cc986e7 Mon Sep 17 00:00:00 2001 From: ElnuDev Date: Thu, 26 Jan 2023 17:04:36 -0800 Subject: [PATCH 2/2] Fix and improve startup layout --- hosts/desktop/i3/layout.sh | 20 +++++++++++++++++--- hosts/desktop/i3/tree.json | 4 ++++ 2 files changed, 21 insertions(+), 3 deletions(-) diff --git a/hosts/desktop/i3/layout.sh b/hosts/desktop/i3/layout.sh index 31173fc..6507f64 100644 --- a/hosts/desktop/i3/layout.sh +++ b/hosts/desktop/i3/layout.sh @@ -1,10 +1,24 @@ -i3-msg workspace 1 -firefox & +# Exit layout script if Firefox or Discord is open, +# i3 has been reloaded +pgrep firefox || pgrep Discord && exit 0 +# Switch to workspace 1 +i3-msg workspace 1 +# Start up Firefox in the background +firefox & +# Give Firefox some time to start up +sleep 1 + +# Switch to workspace 2, load layout, and open blank space i3-msg "workspace 2; append_layout @tree@; open" +# Move blank space to appropriate space, +# i3 layout files don't support blank space for i in {1..4}; do i3-msg move left done -discord +# Start up Discord in the background +discord & +# Open YouTube for music firefox --new-window https://youtube.com +# Go back to primary workspace i3-msg workspace 1 diff --git a/hosts/desktop/i3/tree.json b/hosts/desktop/i3/tree.json index c88ea20..0215807 100644 --- a/hosts/desktop/i3/tree.json +++ b/hosts/desktop/i3/tree.json @@ -7,6 +7,10 @@ "swallows": [{ "class": "^firefox$" }], "type": "con" }, + { + "swallows": [{ "title": "Discord Updater" }], + "type": "con" + }, { "swallows": [{ "class": "^discord$" }], "type": "con"