From f7975dda7e2c844157a189e236952fe49216f791 Mon Sep 17 00:00:00 2001 From: benj Date: Tue, 28 Sep 2021 17:12:54 -0700 Subject: xinit template (mobile) and fcitx setup --- .xinitrc | 11 +++++++++++ des/i3/config | 1 + 2 files changed, 12 insertions(+) create mode 100644 .xinitrc diff --git a/.xinitrc b/.xinitrc new file mode 100644 index 0000000..45ad2f7 --- /dev/null +++ b/.xinitrc @@ -0,0 +1,11 @@ +export GTK_IM_MODULE=fcitx +export QT_IM_MODULE=fcitx +export XMODIFIERS=@im=fcitx + +xset r rate 200 60 +xrandr --output eDP-1 --scale 1.25x1.25 +systemctl --user import-environment DISPLAY +/usr/bin/libinput-gestures & +[[ -f ~/.Xresources ]] && xrdb -merge ~/.Xresources +[[ -f ~/.Xmodmap ]] && xmodmap ~/.Xmodmap +exec i3 --shmlog-size=2621440 diff --git a/des/i3/config b/des/i3/config index 535abd5..ff6d291 100644 --- a/des/i3/config +++ b/des/i3/config @@ -48,6 +48,7 @@ for_window [class="Yad"] floating enable # and nm-applet is a desktop environment-independent system tray GUI for it. exec --no-startup-id nm-applet +exec --no-startup-id fcitx -d # Use pactl to adjust volume in PulseAudio. bindsym XF86AudioRaiseVolume exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ +5% && pkill -SIGRTMIN+10 i3blocks bindsym XF86AudioLowerVolume exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ -5% && pkill -SIGRTMIN+10 i3blocks -- cgit v1.2.3