mon-on: split off keyboard configs to another script

also added xcompose configs
This commit is contained in:
dogeystamp 2023-05-29 21:21:01 -04:00
parent f3f8035798
commit 25b1d0fd0c
Signed by: dogeystamp
GPG Key ID: 7225FE3592EFFA38
6 changed files with 60 additions and 5 deletions

View File

@ -0,0 +1,16 @@
# This file is autogenerated by emoji.py.
<Multi_key> <Escape> <p> <e> <n> <s> : "😔"
<Multi_key> <Escape> <c> <l> <o> <w> : "🤡"
<Multi_key> <Escape> <s> <u> <n> <g> : "😎"
<Multi_key> <Escape> <t> <h> <u> : "👍"
<Multi_key> <Escape> <s> <o> <b> : "😭"
<Multi_key> <Escape> <f> <r> <o> <g> : "🐸"
<Multi_key> <Escape> <i> <n> <n> <o> <c> : "😇"
<Multi_key> <Escape> <v> : "✌️"
<Multi_key> <Escape> <r> <e> <l> <i> <e> <v> : "😌"
<Multi_key> <Escape> <s> <k> <u> <l> : "💀"
<Multi_key> <Escape> <e> <y> <e> <s> : "👀"
<Multi_key> <Escape> <e> <y> <e> : "👁️"
<Multi_key> <Escape> <t> <h> <i> <n> <k> : "🤔"
<Multi_key> <Escape> <w> <a> <v> <e> : "👋"

28
src/.config/xcompose/emoji.py Executable file
View File

@ -0,0 +1,28 @@
#!/usr/bin/env python
# compiles list of emoji into valid xcompose file
# ./emoji.py > emoji
emoji = """
😔 pens
🤡 clow
😎 sung
👍 thu
😭 sob
🐸 frog
😇 innoc
v
😌 reliev
💀 skul
👀 eyes
👁 eye
🤔 think
👋 wave
""".strip()
prefix = "<Multi_key> <Escape>"
print("# This file is autogenerated by emoji.py.\n")
for line in emoji.split("\n"):
sym, name = line.split()
codes = " ".join([f"<{char}>" for char in name])
print(f"{prefix} {codes} : \"{sym}\"")

View File

@ -0,0 +1,5 @@
# include default settings
include "%L"
# emoji
include "%H/.config/xcompose/emoji"

4
src/.local/bin/keyboard.sh Executable file
View File

@ -0,0 +1,4 @@
#!/bin/sh
# Set keyboard settings
setxkbmap -layout us,ca -variant basic,fr -option 'grp:alts_toggle, caps:swapescape, compose:rctrl'
xset r rate 300 50

View File

@ -10,10 +10,6 @@ xsetwacom set 17 MapToOutput eDP1
xsetwacom set 18 MapToOutput eDP1
xsetwacom set 23 MapToOutput eDP1
# Set keyboard settings
setxkbmap -layout au,us,ca -variant basic,haw,multi -option 'grp:win_space_toggle, caps:swapescape'
xset r rate 300 50
# Configure touchpad sensitivity
# To change this:

View File

@ -10,6 +10,7 @@ fi
if [ $SYSTEM_PROFILE = "DEFAULT" ]; then
picom &
fi
battwatch.sh &
xwallpaper --center .config/wall.png
# Host specific wallpapers
wallpaper
@ -30,7 +31,12 @@ export DBUS_SESSION_BUS_WINDOWID
# IME
export GTK_IM_MODULE=fcitx
export QT_IM_MODULE=fcitx
export XMODIFIERS=@im=fcitx
# for some reason this breaks deadkeys
#export XMODIFIERS=@im=fcitx
# set up keyboard
keyboard.sh
export XCOMPOSEFILE="$XDG_CONFIG_HOME"/xcompose/main
while true; do
DATE=$(date +'%H:%M:%S %a %b %d')