mirror of
https://codeberg.org/leana8959/.files.git
synced 2025-12-06 06:39:14 +00:00
vanadium/xmonad: keep some env var config
Revert "home/firefox: set MOZ_USE_XINPUT2=1" This reverts commit7e5116f55d. Revert "home/fcitx: set GLFW_IM_MODULE" This reverts commit7d949dcce2.
This commit is contained in:
parent
cf806d7064
commit
808dfa95ae
3 changed files with 8 additions and 8 deletions
|
|
@ -24,6 +24,7 @@ import XMonad.Util.SpawnOnce
|
||||||
|
|
||||||
import Data.Map.Strict qualified as M
|
import Data.Map.Strict qualified as M
|
||||||
import Graphics.X11.ExtraTypes.XF86
|
import Graphics.X11.ExtraTypes.XF86
|
||||||
|
import System.Posix
|
||||||
|
|
||||||
import Leanamonad.Layouts.ReflectMsg
|
import Leanamonad.Layouts.ReflectMsg
|
||||||
import Leanamonad.GreekChar
|
import Leanamonad.GreekChar
|
||||||
|
|
@ -77,6 +78,13 @@ main =
|
||||||
-- https://wiki.archlinux.org/title/GNOME/Keyring#Using_gnome-keyring-daemon_outside_desktop_environments_(KDE,_GNOME,_XFCE,_...)
|
-- https://wiki.archlinux.org/title/GNOME/Keyring#Using_gnome-keyring-daemon_outside_desktop_environments_(KDE,_GNOME,_XFCE,_...)
|
||||||
spawn "dbus-update-activation-environment DISPLAY XAUTHORITY WAYLAND_DISPLAY"
|
spawn "dbus-update-activation-environment DISPLAY XAUTHORITY WAYLAND_DISPLAY"
|
||||||
|
|
||||||
|
io $ do
|
||||||
|
-- This is done here because:
|
||||||
|
-- - setting `home.sessionVariable` (home-manager) would only effect shells, probably due to the order of launched processes blah blah
|
||||||
|
-- - setting `environment.sessionVariables` (NixOS) would make my set up less portable
|
||||||
|
putEnv "GLFW_IM_MODULE=ibus" -- Make sure kitty knows how to talk to fcitx
|
||||||
|
putEnv "MOZ_USE_XINPUT2=1" -- Force touchpad for firefox
|
||||||
|
|
||||||
, layoutHook =
|
, layoutHook =
|
||||||
let tallr = reflectMsg . reflectHoriz
|
let tallr = reflectMsg . reflectHoriz
|
||||||
$ ResizableTall 1 (1/10) (3/7) []
|
$ ResizableTall 1 (1/10) (3/7) []
|
||||||
|
|
|
||||||
|
|
@ -22,8 +22,4 @@ in {
|
||||||
xdg.configFile = lib.mkIf cfg.enable {
|
xdg.configFile = lib.mkIf cfg.enable {
|
||||||
"fcitx5".source = "${./fcitx}";
|
"fcitx5".source = "${./fcitx}";
|
||||||
};
|
};
|
||||||
|
|
||||||
home.sessionVariables = lib.mkIf cfg.enable {
|
|
||||||
GLFW_IM_MODULE = "ibus"; # make kitty aware of fcitx via ibus interface
|
|
||||||
};
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -105,8 +105,4 @@ in {
|
||||||
"text/html" = ["firefox.desktop"];
|
"text/html" = ["firefox.desktop"];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
home.sessionVariables = lib.mkIf cfg.enable {
|
|
||||||
MOZ_USE_XINPUT2 = "1"; # Better scrolling
|
|
||||||
};
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue