diff options
-rw-r--r-- | Makefile | 12 | ||||
-rw-r--r-- | X11/alacritty/fonts.yml | 2 | ||||
-rw-r--r-- | X11/openbox/rc.xml | 43 | ||||
-rw-r--r-- | alias | 3 | ||||
-rwxr-xr-x | bin/gpt/gpt | 1 | ||||
-rwxr-xr-x | bin/install.sh | 2 | ||||
-rw-r--r-- | misc/keymap | 3 | ||||
-rw-r--r-- | tigrc | 2 |
8 files changed, 37 insertions, 31 deletions
@@ -23,9 +23,6 @@ gpg: | |||
23 | ln -sf `pwd`/misc/gpg-agent ~/.gnupg/gpg-agent.conf | 23 | ln -sf `pwd`/misc/gpg-agent ~/.gnupg/gpg-agent.conf |
24 | gpgconf --reload gpg-agent | 24 | gpgconf --reload gpg-agent |
25 | 25 | ||
26 | console: | ||
27 | sudo ln -sf `pwd`/misc/vconsole.conf /etc/vconsole.conf | ||
28 | |||
29 | zsh: | 26 | zsh: |
30 | ln -sf `pwd`/zsh/zshenv ~/.zshenv | 27 | ln -sf `pwd`/zsh/zshenv ~/.zshenv |
31 | mkdir -p ~/.config/zsh | 28 | mkdir -p ~/.config/zsh |
@@ -62,9 +59,16 @@ tmux: | |||
62 | crontab: | 59 | crontab: |
63 | (crontab -l 2>/dev/null; cat bin/cron/* | sed '/^#/ d') | crontab - | 60 | (crontab -l 2>/dev/null; cat bin/cron/* | sed '/^#/ d') | crontab - |
64 | 61 | ||
62 | # Swap Ctrl-Caps in X11 | ||
65 | libinput: | 63 | libinput: |
66 | sudo ln -sf `pwd`/misc/libinput/* /etc/X11/xorg.conf.d/ | 64 | sudo ln -sf `pwd`/misc/libinput/* /etc/X11/xorg.conf.d/ |
67 | 65 | ||
66 | # Swap Ctrl-Caps in tty2~6 | ||
67 | console: | ||
68 | sudo ln -sf `pwd`/misc/vconsole.conf /etc/vconsole.conf | ||
69 | sudo systemctl restart systemd-vconsole-setup.service | ||
70 | |||
71 | |||
68 | task: | 72 | task: |
69 | ln -sf $(HOME)/.task/taskrc $(HOME)/.taskrc | 73 | ln -sf $(HOME)/.task/taskrc $(HOME)/.taskrc |
70 | if [ ! -d "$(HOME)/.task/.git" ]; then | 74 | if [ ! -d "$(HOME)/.task/.git" ]; then |
@@ -93,7 +97,7 @@ urlview: | |||
93 | ln -sf `pwd`/misc/urlview ~/.urlview | 97 | ln -sf `pwd`/misc/urlview ~/.urlview |
94 | 98 | ||
95 | alacritty: | 99 | alacritty: |
96 | ln -sf `pwd`/X11/alacritty/ ~/.config/alacritty | 100 | ln -sf `pwd`/X11/alacritty ~/.config/alacritty |
97 | 101 | ||
98 | mpd: | 102 | mpd: |
99 | ln -sf `pwd`/mpd/ncmpcpp ~/.config/ncmpcpp | 103 | ln -sf `pwd`/mpd/ncmpcpp ~/.config/ncmpcpp |
diff --git a/X11/alacritty/fonts.yml b/X11/alacritty/fonts.yml index 2ea94f1..d8cacaf 100644 --- a/X11/alacritty/fonts.yml +++ b/X11/alacritty/fonts.yml | |||
@@ -24,7 +24,7 @@ font: | |||
24 | #style: Bold Italic | 24 | #style: Bold Italic |
25 | 25 | ||
26 | # Point size | 26 | # Point size |
27 | size: 18 | 27 | size: 20 |
28 | 28 | ||
29 | # Offset | 29 | # Offset |
30 | #offset: | 30 | #offset: |
diff --git a/X11/openbox/rc.xml b/X11/openbox/rc.xml index d1bf693..65ffdf2 100644 --- a/X11/openbox/rc.xml +++ b/X11/openbox/rc.xml | |||
@@ -28,37 +28,37 @@ | |||
28 | <animateIconify>yes</animateIconify> | 28 | <animateIconify>yes</animateIconify> |
29 | <font place="ActiveWindow"> | 29 | <font place="ActiveWindow"> |
30 | <name>Sans</name> | 30 | <name>Sans</name> |
31 | <size>18</size> | 31 | <size>20</size> |
32 | <weight>Bold</weight> | 32 | <weight>Bold</weight> |
33 | <slant>Normal</slant> | 33 | <slant>Normal</slant> |
34 | </font> | 34 | </font> |
35 | <font place="InactiveWindow"> | 35 | <font place="InactiveWindow"> |
36 | <name>Hack Nerd Font</name> | 36 | <name>Hack Nerd Font</name> |
37 | <size>18</size> | 37 | <size>20</size> |
38 | <weight>Normal</weight> | 38 | <weight>Normal</weight> |
39 | <slant>Normal</slant> | 39 | <slant>Normal</slant> |
40 | </font> | 40 | </font> |
41 | <font place="MenuHeader"> | 41 | <font place="MenuHeader"> |
42 | <name>Hack Nerd Font</name> | 42 | <name>Hack Nerd Font</name> |
43 | <size>18</size> | 43 | <size>20</size> |
44 | <weight>Bold</weight> | 44 | <weight>Bold</weight> |
45 | <slant>Normal</slant> | 45 | <slant>Normal</slant> |
46 | </font> | 46 | </font> |
47 | <font place="MenuItem"> | 47 | <font place="MenuItem"> |
48 | <name>Hack Nerd Font</name> | 48 | <name>Hack Nerd Font</name> |
49 | <size>18</size> | 49 | <size>20</size> |
50 | <weight>Normal</weight> | 50 | <weight>Normal</weight> |
51 | <slant>Normal</slant> | 51 | <slant>Normal</slant> |
52 | </font> | 52 | </font> |
53 | <font place="ActiveOnScreenDisplay"> | 53 | <font place="ActiveOnScreenDisplay"> |
54 | <name>Hack Nerd Font</name> | 54 | <name>Hack Nerd Font</name> |
55 | <size>18</size> | 55 | <size>20</size> |
56 | <weight>Bold</weight> | 56 | <weight>Bold</weight> |
57 | <slant>Normal</slant> | 57 | <slant>Normal</slant> |
58 | </font> | 58 | </font> |
59 | <font place="InactiveOnScreenDisplay"> | 59 | <font place="InactiveOnScreenDisplay"> |
60 | <name>Hack Nerd Font</name> | 60 | <name>Hack Nerd Font</name> |
61 | <size>18</size> | 61 | <size>20</size> |
62 | <weight>Normal</weight> | 62 | <weight>Normal</weight> |
63 | <slant>Normal</slant> | 63 | <slant>Normal</slant> |
64 | </font> | 64 | </font> |
@@ -111,7 +111,7 @@ | |||
111 | alacritty --title @OPENBOX_CONFIG \ | 111 | alacritty --title @OPENBOX_CONFIG \ |
112 | -o "window.dimensions.lines=32" \ | 112 | -o "window.dimensions.lines=32" \ |
113 | -o "window.dimensions.columns=90" \ | 113 | -o "window.dimensions.columns=90" \ |
114 | -e $EDITOR ~/.config/openbox/rc.xml \ | 114 | -e nvim ~/.config/openbox/rc.xml \ |
115 | ' | 115 | ' |
116 | </command> | 116 | </command> |
117 | </action> | 117 | </action> |
@@ -435,17 +435,17 @@ | |||
435 | <!-- Media Controls--> | 435 | <!-- Media Controls--> |
436 | <keybind key="XF86AudioRaiseVolume"> | 436 | <keybind key="XF86AudioRaiseVolume"> |
437 | <action name="Execute"> | 437 | <action name="Execute"> |
438 | <command>volume --inc</command> | 438 | <command>ob-volume --inc</command> |
439 | </action> | 439 | </action> |
440 | </keybind> | 440 | </keybind> |
441 | <keybind key="XF86AudioLowerVolume"> | 441 | <keybind key="XF86AudioLowerVolume"> |
442 | <action name="Execute"> | 442 | <action name="Execute"> |
443 | <command>volume --dec</command> | 443 | <command>ob-volume --dec</command> |
444 | </action> | 444 | </action> |
445 | </keybind> | 445 | </keybind> |
446 | <keybind key="XF86AudioMute"> | 446 | <keybind key="XF86AudioMute"> |
447 | <action name="Execute"> | 447 | <action name="Execute"> |
448 | <command>volume --toggle</command> | 448 | <command>ob-volume --toggle</command> |
449 | </action> | 449 | </action> |
450 | </keybind> | 450 | </keybind> |
451 | <keybind key="XF86AudioStop"> | 451 | <keybind key="XF86AudioStop"> |
@@ -605,7 +605,7 @@ | |||
605 | <!-- Rofi --> | 605 | <!-- Rofi --> |
606 | <keybind key="A-F1"> | 606 | <keybind key="A-F1"> |
607 | <action name="Execute"> | 607 | <action name="Execute"> |
608 | <command>~/.config/openbox/rofi/bin/launcher</command> | 608 | <command>launcher</command> |
609 | </action> | 609 | </action> |
610 | </keybind> | 610 | </keybind> |
611 | <keybind key="W-n"> | 611 | <keybind key="W-n"> |
@@ -620,12 +620,13 @@ | |||
620 | </keybind> | 620 | </keybind> |
621 | <keybind key="W-a"> | 621 | <keybind key="W-a"> |
622 | <action name="Execute"> | 622 | <action name="Execute"> |
623 | <command> | 623 | <command>ob-music</command> |
624 | sh -c ' | 624 | <backup> |
625 | xdotool search --name MPD windowquit || \ | 625 | sh -c ' |
626 | alacritty --title MPD -e ncmpcpp | 626 | xdotool search --name MPD windowquit || \ |
627 | ' | 627 | alacritty --title MPD -e ncmpcpp |
628 | </command> | 628 | ' |
629 | </backup> | ||
629 | </action> | 630 | </action> |
630 | </keybind> | 631 | </keybind> |
631 | <keybind key="W-m"> | 632 | <keybind key="W-m"> |
@@ -644,7 +645,7 @@ | |||
644 | </keybind> | 645 | </keybind> |
645 | <keybind key="W-x"> | 646 | <keybind key="W-x"> |
646 | <action name="Execute"> | 647 | <action name="Execute"> |
647 | <command>~/.config/openbox/rofi/bin/powermenu</command> | 648 | <command>powermenu</command> |
648 | </action> | 649 | </action> |
649 | </keybind> | 650 | </keybind> |
650 | <keybind key="W-z"> | 651 | <keybind key="W-z"> |
@@ -659,7 +660,7 @@ | |||
659 | </keybind> | 660 | </keybind> |
660 | <keybind key="C-A-Print"> | 661 | <keybind key="C-A-Print"> |
661 | <action name="Execute"> | 662 | <action name="Execute"> |
662 | <command>~/.config/openbox/rofi/bin/screenshot</command> | 663 | <command>screenshot</command> |
663 | </action> | 664 | </action> |
664 | </keybind> | 665 | </keybind> |
665 | <keybind key="W-i"> | 666 | <keybind key="W-i"> |
@@ -687,7 +688,7 @@ | |||
687 | </keybind> | 688 | </keybind> |
688 | <keybind key="W-r"> | 689 | <keybind key="W-r"> |
689 | <action name="Execute"> | 690 | <action name="Execute"> |
690 | <command>~/.config/openbox/rofi/bin/runner</command> | 691 | <command>runner</command> |
691 | </action> | 692 | </action> |
692 | </keybind> | 693 | </keybind> |
693 | <keybind key="W-g"> | 694 | <keybind key="W-g"> |
@@ -804,7 +805,7 @@ | |||
804 | <keybind key="A-S-q"> | 805 | <keybind key="A-S-q"> |
805 | <action name="Close"/> | 806 | <action name="Close"/> |
806 | </keybind> | 807 | </keybind> |
807 | <!-- | 808 | <!-- |
808 | <action name="Execute"> | 809 | <action name="Execute"> |
809 | <command> | 810 | <command> |
810 | sh -c ' | 811 | sh -c ' |
@@ -32,7 +32,7 @@ vll() { | |||
32 | nvim -c 'Telescope oldfiles' | 32 | nvim -c 'Telescope oldfiles' |
33 | } | 33 | } |
34 | #alias vl="vim $(sed -n '/^[^#]/{p;q}' ~/.vim_mru_files)" | 34 | #alias vl="vim $(sed -n '/^[^#]/{p;q}' ~/.vim_mru_files)" |
35 | alias ve="vim ~/.config/nvim/init.lua" | 35 | alias ve="vim ~/.config/nvim/nvim.lua" |
36 | alias vro='vim -R' | 36 | alias vro='vim -R' |
37 | alias vu='vim -u NONE' | 37 | alias vu='vim -u NONE' |
38 | alias vq='vim ~/buffer' | 38 | alias vq='vim ~/buffer' |
@@ -180,6 +180,7 @@ date.reset() { | |||
180 | sudo date -s "$(wget -qSO- --max-redirect=0 google.com 2>&1 | grep Date: | cut -d' ' -f5-8)Z" | 180 | sudo date -s "$(wget -qSO- --max-redirect=0 google.com 2>&1 | grep Date: | cut -d' ' -f5-8)Z" |
181 | } | 181 | } |
182 | alias clock.reset='hwclock --systohc' | 182 | alias clock.reset='hwclock --systohc' |
183 | unalias gr | ||
183 | gr() { | 184 | gr() { |
184 | grep -IR $1 . | 185 | grep -IR $1 . |
185 | } | 186 | } |
diff --git a/bin/gpt/gpt b/bin/gpt/gpt index b348a2e..7dc55dd 100755 --- a/bin/gpt/gpt +++ b/bin/gpt/gpt | |||
@@ -224,6 +224,7 @@ _get_input_by_fzf() { | |||
224 | 224 | ||
225 | # Check OPENAI API KEY in env | 225 | # Check OPENAI API KEY in env |
226 | # Exit with 6 (configuration issue) if it is not set | 226 | # Exit with 6 (configuration issue) if it is not set |
227 | XDG_CONFIG_HOME=${XDG_CONFIG_HOME:-~/.config} | ||
227 | [ -z "$OPENAI_API_KEY" ] && OPENAI_API_KEY=$(cat "$XDG_CONFIG_HOME"/openai/key) | 228 | [ -z "$OPENAI_API_KEY" ] && OPENAI_API_KEY=$(cat "$XDG_CONFIG_HOME"/openai/key) |
228 | [ -z "$OPENAI_API_KEY" ] && { echo API KEY not specified; exit 6; } | 229 | [ -z "$OPENAI_API_KEY" ] && { echo API KEY not specified; exit 6; } |
229 | 230 | ||
diff --git a/bin/install.sh b/bin/install.sh index b6d6bde..cfc13d3 100755 --- a/bin/install.sh +++ b/bin/install.sh | |||
@@ -26,5 +26,5 @@ source \$SETTING_DIR/bin/init/load-settings.sh | |||
26 | EOF | 26 | EOF |
27 | 27 | ||
28 | cd "$SETTING_DIR" || exit 1 | 28 | cd "$SETTING_DIR" || exit 1 |
29 | git swapprotocol | ||
30 | make | 29 | make |
30 | EOF | ||
diff --git a/misc/keymap b/misc/keymap index 7f16e69..f0ff7e7 100644 --- a/misc/keymap +++ b/misc/keymap | |||
@@ -49,7 +49,6 @@ keycode 54 = Shift | |||
49 | keycode 56 = Alt | 49 | keycode 56 = Alt |
50 | keycode 57 = space | 50 | keycode 57 = space |
51 | control keycode 57 = nul | 51 | control keycode 57 = nul |
52 | keycode 58 = Control | 52 | keycode 66 = Control |
53 | keycode 86 = less greater bar | 53 | keycode 86 = less greater bar |
54 | keycode 97 = Control | 54 | keycode 97 = Control |
55 | keycode 105 = Menu | ||
@@ -63,7 +63,7 @@ bind reflog c ?git checkout %(commit) | |||
63 | # highlight diff without +/- | 63 | # highlight diff without +/- |
64 | # set diff-show-signs = false | 64 | # set diff-show-signs = false |
65 | # set diff_column_highlight = ALL | 65 | # set diff_column_highlight = ALL |
66 | set diff-highlight = true | 66 | #set diff-highlight = true |
67 | 67 | ||
68 | # misc settings | 68 | # misc settings |
69 | set ignore-case = true | 69 | set ignore-case = true |