Compare commits

..

5 Commits

Author SHA1 Message Date
e96610bacb
nvim: misc changes
- properly don't overwrite clipboard on s or c in visual mode
- added template for typst
- makefile now compiles with c++20
2023-05-29 21:24:33 -04:00
25b1d0fd0c
mon-on: split off keyboard configs to another script
also added xcompose configs
2023-05-29 21:21:01 -04:00
f3f8035798
nvim: problem template types url first now 2023-05-27 12:40:57 -04:00
2549b78a3f
fish: add discord alias 2023-05-26 21:49:25 -04:00
88aff999d2
fish: reorganize git aliases 2023-05-26 21:48:47 -04:00
10 changed files with 81 additions and 10 deletions

View File

@ -42,12 +42,17 @@ function musrec
end end
end end
# discord in chromium
function discord; chromium --profile-directory="Profile 2" --app=https://app.discord.com & disown; exit; end
# git stuff # git stuff
abbr -a -- gs git status abbr -a -- gs git status
abbr -a -- gl git log abbr -a -- gl git log
abbr -a -- gc git commit -S
abbr -a -- ga git add abbr -a -- ga git add
abbr -a -- gca git commit -aS abbr -a -- gcs git commit -S
abbr -a -- gc git commit
abbr -a -- gca git commit -a
abbr -a -- gas git commit -aS
abbr -a -- gp git push abbr -a -- gp git push
abbr -a --position anywhere -- pgh "&& git push gh" abbr -a --position anywhere -- pgh "&& git push gh"

View File

@ -23,7 +23,9 @@ set lazyredraw nocursorline ttyfast
set clipboard=unnamedplus set clipboard=unnamedplus
" when using c or s, do not overwrite clipboard " when using c or s, do not overwrite clipboard
nnoremap c "-c nnoremap c "-c
vnoremap c "-c
nnoremap s "-s nnoremap s "-s
vnoremap s "-s
let mapleader = "," let mapleader = ","

View File

@ -2,7 +2,7 @@
~/.cache/termdebug/bin/%: %.cpp ~/.cache/termdebug/bin/%: %.cpp
mkdir -p ~/.cache/termdebug/bin/ mkdir -p ~/.cache/termdebug/bin/
$(LINK.cpp) -g -Wall -Wpedantic $^ $(LOADLIBES) $(LDLIBS) -o $@ $(LINK.cpp) -g -Wall -Wpedantic -std=c++20 $^ $(LOADLIBES) $(LDLIBS) -o $@
~/.cache/termdebug/bin/%: %.c ~/.cache/termdebug/bin/%: %.c
mkdir -p ~/.cache/termdebug/bin/ mkdir -p ~/.cache/termdebug/bin/

View File

@ -1,13 +1,22 @@
snippet problem "template for problem notes" bi snippet problem "template for problem notes" bi
#import "../templates/problems.typ": template, source_code, status #import "../templates/problems.typ": template, source_code, status
#show: template.with( #show: template.with(
title: "$1", problem_url: "$1",
problem_url: "$2", title: "$2",
stat: "${3:incomplete}", stat: "${3:incomplete}",
) )
endsnippet endsnippet
snippet contest "template for contest problems" bi
#import "../../templates/contest.typ": template, source_code, status
#show: template.with(
title: "$1",
stat: "${2:incomplete}",
)
endsnippet
snippet algs "template for compsci notes" bi snippet algs "template for compsci notes" bi
#import "../templates/algs.typ": template, source_code #import "../templates/algs.typ": template, source_code
#show: template.with( #show: template.with(

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 18 MapToOutput eDP1
xsetwacom set 23 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 # Configure touchpad sensitivity
# To change this: # To change this:

View File

@ -10,6 +10,7 @@ fi
if [ $SYSTEM_PROFILE = "DEFAULT" ]; then if [ $SYSTEM_PROFILE = "DEFAULT" ]; then
picom & picom &
fi fi
battwatch.sh &
xwallpaper --center .config/wall.png xwallpaper --center .config/wall.png
# Host specific wallpapers # Host specific wallpapers
wallpaper wallpaper
@ -30,7 +31,12 @@ export DBUS_SESSION_BUS_WINDOWID
# IME # IME
export GTK_IM_MODULE=fcitx export GTK_IM_MODULE=fcitx
export QT_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 while true; do
DATE=$(date +'%H:%M:%S %a %b %d') DATE=$(date +'%H:%M:%S %a %b %d')