1
0

Compare commits

..

8 Commits

Author SHA1 Message Date
98478e1971 Set up fuzzel 2022-04-23 08:42:09 +00:00
527490d709 Add welcome text 2022-04-23 07:16:48 +00:00
a3525f29cc Block out screen with imv 2022-01-17 06:14:12 +00:00
3d4b9ff97e Add XKB keymap
At this point, everything is pretty much perfect!
2022-01-16 06:39:55 +00:00
0b632248a7 Add bemenu 2022-01-16 04:47:22 +00:00
8c6ab19d89 Remove dummy-pointer
I've moved it to a systemd service. It works much better.
2022-01-16 02:21:47 +00:00
857bedaa17 Add fake pointer device
This is pretty much necessary for the touchscreen to work
2022-01-16 01:49:48 +00:00
abf88859b1 Disable swaynag
Tapping doesn't register in sway unless a mouse is plugged in
2022-01-16 00:05:25 +00:00
6 changed files with 62 additions and 4 deletions

7
.bashrc Normal file
View File

@ -0,0 +1,7 @@
if [ -f "${ENV}" ]; then
source "${ENV}"
elif [ -f "~/.env" ]; then
source "~/.env"
elif [ -f "~/.shrc" ]; then
source "~/.shrc"
fi

View File

@ -7,11 +7,18 @@ set $right l
# Programs
set $term foot
set $menu bemenu-run
set $launcher run-fuzzel
set $lock imv-wayland -f # I'm too lazy to package swaylock
# Output settings
output * bg ~/.local/share/backgrounds/pocketchip.png fill
# Input settings
input "1:1:tca8418" {
xkb_layout "pocketchip"
xkb_options "lv3:ralt_switch_multikey"
}
input "1:1:1c25000.rtp" {
map_to_region 0 0 480 272
calibration_matrix -1.063517 0 1.032310 0 -1.214286 1.075894
@ -19,6 +26,9 @@ input "1:1:1c25000.rtp" {
# Terminal and launcher controls
bindsym $mod+Return exec $term
bindsym $mod+D exec $menu
bindsym $mod+Shift+D exec $launcher
bindsym $mod+M exec $lock
# Window controls
bindsym $mod+Shift+q kill
@ -34,8 +44,7 @@ bindsym $mod+Shift+$right move right
# Sway controls
bindsym $mod+Shift+c reload
bindsym $mod+Shift+e exec swaynag -t warning -m "Exit sway?" \
-b "Exit sway" "swaymsg exit"
bindsym $mod+Shift+e exec swaymsg exit
# Workspace controls
bindsym $mod+1 workspace 1

5
.env Normal file
View File

@ -0,0 +1,5 @@
export PS1='$USER@$HOSTNAME \w \$ '
alias ls='ls -F'
if ! command -v doas &> /dev/null; then
alias doas=sudo
fi

View File

@ -1,5 +1,8 @@
export PS1='$USER@$HOSTNAME \w \$ '
export ENV=~/.shrc
export ENV=~/.env
export PATH=~/bin:$PATH
export EDITOR=vim
export GIT_EDITOR='vim -c ":set ft=gitcommit"'
export BEMENU_OPTS="--nb '#000000' --hb '#000000' --tb '#000000' --fb '#000000' --hf '#ff79c6' --tf '#ff79c6' --fn 'monospace 8'"
export QT_QPA_PLATFORM=wayland
source "${ENV}"
welcome

32
.xkb/symbols/pocketchip Normal file
View File

@ -0,0 +1,32 @@
partial alphanumeric_keys
xkb_symbols "pocketchip"
{
include "us"
name[Group1]= "PocketCHIP keys";
key <AB10> { [ slash, question, backslash ] };
key <AB05> { [ b, B, grave ] };
key <AB06> { [ n, N, asciitilde ] };
key <AB07> { [ m, M, colon ] };
key <AB09> { [ period, comma, semicolon ] };
key <AC06> { [ h, H, less ] };
key <AC07> { [ j, J, greater ] };
key <AC08> { [ k, K, apostrophe ] };
key <AC09> { [ l, L, quotedbl ] };
key <AD06> { [ y, Y, braceleft ] };
key <AD07> { [ u, U, braceright ] };
key <AD08> { [ i, I, bracketleft ] };
key <AD09> { [ o, O, bracketright ] };
key <AD10> { [ p, P, bar ] };
key <AE01> { [ 1, exclam, F1 ] };
key <AE02> { [ 2, at, F2 ] };
key <AE03> { [ 3, numbersign, F3 ] };
key <AE04> { [ 4, dollar, F4 ] };
key <AE05> { [ 5, percent, F5 ] };
key <AE06> { [ 6, asciicircum, F6 ] };
key <AE07> { [ 7, ampersand, F7 ] };
key <AE08> { [ 8, asterisk, F8 ] };
key <AE09> { [ 9, parenleft, F9 ] };
key <AE10> { [ 0, parenright, F10 ] };
key <AE11> { [ minus, underscore, F11 ] };
key <AE12> { [ equal, plus, F12 ] };
};

2
bin/run-fuzzel Executable file
View File

@ -0,0 +1,2 @@
#!/bin/sh
fuzzel -f monospace:size=7 -r 0 -b 000000dd -C ff79c6ff -t ff79c6ff $@