Browse Source

Refactor keyboard layout management. Adapt to rofi changes. Misc changes.

master
SolitudeSF 2 years ago
parent
commit
4b7779b881
No known key found for this signature in database
GPG Key ID: 789B06817C385387
  1. 5
      bedrock.conf
  2. 3
      elvish/lib/completers.elv
  3. 1
      elvish/lib/config.elv
  4. 5
      firefox/user.js
  5. 7
      kak/kakrc
  6. 2041
      layout.xkb
  7. 33
      ntr/contexts/cosmic_latte
  8. 33
      ntr/contexts/snow
  9. 3
      ntr/templates/rofi-theme
  10. 3
      rofi.rasi
  11. 3
      splug.toml
  12. 2
      sx.sh

5
bedrock.conf

@ -250,8 +250,9 @@ pin/bin/prt-get = local:$PATH/prt-get @@ -250,8 +250,9 @@ pin/bin/prt-get = local:$PATH/prt-get
pin/bin/rpmbuild = local:$PATH/rpmbuild
[cross-ini]
applications = $XDG_DATA_DIRS/applications
xsessions = init:$XDG_DATA_DIRS/xsessions, $XDG_DATA_DIRS/xsessions
applications = $XDG_DATA_DIRS/applications
xsessions = init:$XDG_DATA_DIRS/xsessions, $XDG_DATA_DIRS/xsessions
wayland-sessions = init:$XDG_DATA_DIRS/wayland-sessions, $XDG_DATA_DIRS/wayland-sessions
dbus-system = /usr/share/dbus-1/system-services
dbus-session = /usr/share/dbus-1/services

3
elvish/lib/completers.elv

@ -2,7 +2,8 @@ use re @@ -2,7 +2,8 @@ use re
use str
use util
use github.com/zzamboni/elvish-completions/git
use github.com/xiaq/edit.elv/compl/git
git:apply
fn overlap-at [a b]{
for i [(range 1 (- (count $b) 1))] {

1
elvish/lib/config.elv

@ -41,3 +41,4 @@ fn mpwc { edit $conf/mpwc/(cat ~/sns/mpwname).mpsites } @@ -41,3 +41,4 @@ fn mpwc { edit $conf/mpwc/(cat ~/sns/mpwname).mpsites }
fn ncmpcpp { edit &type=ini $conf/ncmpcpp/config }
fn bedrock { edit /bedrock/etc/bedrock.conf; sudo brl apply }
fn homepage { edit $dot/firefox/homepage.nims; e:nim e -p:$E:HOME/sns/ $dot/firefox/homepage.nims >~/.mozilla/firefox/homepage.html }
fn layout { edit $dot/layout.xkb; xkbcomp $dot/layout.xkb $E:DISPLAY }

5
firefox/user.js

@ -2,6 +2,11 @@ user_pref("general.warnOnAboutConfig", false); @@ -2,6 +2,11 @@ user_pref("general.warnOnAboutConfig", false);
user_pref("browser.chrome.errorReporter.enabled", false);
user_pref("media.ffmpeg.vaapi.enabled", true);
user_pref("layers.acceleration.force-enabled", true);
user_pref("gfx.webrender.all", true);
user_pref("svg.context-properties.content.enabled", true);
user_pref("browser.newtabpage.activity-stream.feeds.section.highlights", false);
user_pref("browser.newtabpage.activity-stream.feeds.snippets", false);
user_pref("browser.newtabpage.activity-stream.feeds.topsites", false);

7
kak/kakrc

@ -7,6 +7,11 @@ eval %sh{ @@ -7,6 +7,11 @@ eval %sh{
# Initialization
require-module prelude
require-module search-highlighter
require-module word-select
require-module replace-mode
set global ui_options ncurses_assistant=none
set global scrolloff 7,7
set global autoreload yes
@ -135,6 +140,7 @@ hook global WinCreate .* %{ @@ -135,6 +140,7 @@ hook global WinCreate .* %{
readline-enable
colorcol-enable
colorcol-refresh-continuous
search-highlighter-enable
}
hook global KakBegin .* %{
@ -219,7 +225,6 @@ hook global WinSetOption filetype=python %{ @@ -219,7 +225,6 @@ hook global WinSetOption filetype=python %{
hook global WinSetOption filetype=nim %{
set buffer gdb_program 'nim-gdb'
set buffer formatcmd 'nimprettify'
set buffer makecmd 'nimble build'
no-tabs 2
lsp-engage
}

2041
layout.xkb

File diff suppressed because it is too large Load Diff

33
ntr/contexts/cosmic_latte

@ -0,0 +1,33 @@ @@ -0,0 +1,33 @@
meta
name*: cosmic_latte
author: nightsense
source: https://github.com/nightsense/cosmic_latte
color
bg: #202a31
fg: #abb0c0
cursor: #c5cbdb
color0: #202a31
color8: #898f9e
color1: #c17b8d
color9: #c17b8d
color2: #7d9761
color10: #7d9761
color3: #b28761
color11: #b28761
color4: #5496bd
color12: #5496bd
color5: #9b85bb
color13: #9b85bb
color6: #459d90
color14: #459d90
color7: #abb0c0
color15: #c5cbdb

33
ntr/contexts/snow

@ -0,0 +1,33 @@ @@ -0,0 +1,33 @@
meta
name*: snow
author: nightsense
source: https://github.com/nightsense/snow
color
bg: #2c2d30
fg: #afb7c0
cursor: #cbd2d9
color0: #2c2d30
color8: #363a3e
color1: #be868c
color9: #be868c
color2: #7f9d77
color10: #7f9d77
color3: #ab916d
color11: #ab916d
color4: #759abd
color12: #759abd
color5: #a88cb3
color13: #a88cb3
color6: #5da19f
color14: #5da19f
color7: #afb7c0
color15: #cbd2d9

3
ntr/templates/rofi-theme

@ -136,3 +136,6 @@ textbox-prompt-colon { @@ -136,3 +136,6 @@ textbox-prompt-colon {
margin: 0px 0.3000em 0.0000em 0.0000em;
text-color: inherit;
}
element-icon {
size: 2.0ch ;
}

3
rofi.rasi

@ -10,8 +10,9 @@ configuration { @@ -10,8 +10,9 @@ configuration {
ssh-command: "{terminal} {ssh-client} {host}";
run-command: "{cmd}";
run-shell-command: "{terminal} {cmd}";
drun-match-fields: "name,generic,exec,categories,comment";
drun-match-fields: "name,generic,exec,categories,comment,keywords";
drun-display-format: "{name} [({comment})]";
drun-use-desktop-cache: true;
matching: "normal";
theme: "theme";
display-window: "▣";

3
splug.toml

@ -1,5 +1,8 @@ @@ -1,5 +1,8 @@
# Kakoune plugins
["https://github.com/alexherbo2/prelude.kak"]
files = ["rc/prelude.kak", "rc/prelude.sh"]
["https://github.com/alexherbo2/search-highlighter.kak"]
files = ["rc/search-highlighter.kak"]

2
sx.sh

@ -1,7 +1,7 @@ @@ -1,7 +1,7 @@
xrdb -nocpp "$HOME/.Xresources" &
dbus-update-activation-environment DISPLAY XAUTHORITY
xsetroot -cursor_name left_ptr &
setxkbmap -layout us,ru -variant ,ruu -option 'grp:shift_caps_toggle,grp_led:scroll,lv3:ralt_switch,compose:rwin-altgr,nbsp:level3' &
xkbcomp "$DOTS_DIR/layout.xkb" "$DISPLAY" &
wlp &
mpd &
perWindowLayoutD &

Loading…
Cancel
Save