Compare commits
5 Commits
2605209904
...
e96610bacb
Author | SHA1 | Date | |
---|---|---|---|
e96610bacb | |||
25b1d0fd0c | |||
f3f8035798 | |||
2549b78a3f | |||
88aff999d2 |
@ -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"
|
||||||
|
|
||||||
|
@ -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 = ","
|
||||||
|
|
||||||
|
@ -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/
|
||||||
|
@ -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(
|
||||||
|
16
src/.config/xcompose/emoji
Normal file
16
src/.config/xcompose/emoji
Normal 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
28
src/.config/xcompose/emoji.py
Executable 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}\"")
|
5
src/.config/xcompose/main
Normal file
5
src/.config/xcompose/main
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
# include default settings
|
||||||
|
include "%L"
|
||||||
|
|
||||||
|
# emoji
|
||||||
|
include "%H/.config/xcompose/emoji"
|
4
src/.local/bin/keyboard.sh
Executable file
4
src/.local/bin/keyboard.sh
Executable 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
|
@ -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:
|
||||||
|
@ -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')
|
||||||
|
Loading…
x
Reference in New Issue
Block a user