Compare commits

...

6 Commits

Author SHA1 Message Date
Érico Nogueira 6915da825c Update configs.
- leave cargo stuff in PATH, I can't escape from it
- update fish_variables
- enable color in more stuff under tmux
2022-06-30 17:08:50 -03:00
Érico Nogueira 554a7ae6d0 Add new scripts.
- add iso-country-language-codes
2022-06-30 17:06:06 -03:00
Érico Nogueira 95b222dc05 Add new services.
- glowing bear server service
- xdg-document-portal service with SIGKILL workaround
- xdg-permission-store service
2022-06-30 17:02:16 -03:00
Érico Nogueira fa64fcc57c Update wayland configs.
- update waybar to use wlr modules
- add back bindings for terminal2 in wayfire and make them launch foot
  with bigger font (can't be cozette because that's a bitmap font)
- add the gnome agent to the polkit service; since elogind isn't being
  used by default anymore, default the service to down as well
- add a 2h timeout to ssh-agent service
2022-05-01 02:46:47 -03:00
Érico Nogueira 60d922ca49 Add nvim-treesitter.
Haven't enabled almost anything explicitly yet because of [1]; I like
rainbow. Should be simple to fix, just requires some config changes.

Have definitely enabled TS for .tex files though, since the native
syntax highlighting is way too slow.

[1] https://github.com/luochen1990/rainbow/issues/163
2022-05-01 02:35:29 -03:00
Érico Nogueira 9cb82be121 Add telescope.nvim.
- plenary is a dependency
- fzf-native is a faster fuzzy matcher
2022-03-03 01:52:58 -03:00
21 changed files with 592 additions and 13 deletions

12
.gitmodules vendored
View File

@ -25,3 +25,15 @@
[submodule "nvim/.config/nvim/pack/plugins/start/rainbow"]
path = nvim/.config/nvim/pack/plugins/start/rainbow
url = https://github.com/luochen1990/rainbow.git
[submodule "nvim/.config/nvim/pack/plugins/start/telescope.nvim"]
path = nvim/.config/nvim/pack/plugins/start/telescope.nvim
url = https://github.com/nvim-telescope/telescope.nvim.git
[submodule "nvim/.config/nvim/pack/plugins/start/plenary.nvim"]
path = nvim/.config/nvim/pack/plugins/start/plenary.nvim
url = https://github.com/nvim-lua/plenary.nvim.git
[submodule "nvim/.config/nvim/pack/plugins/start/telescope-fzf-native.nvim"]
path = nvim/.config/nvim/pack/plugins/start/telescope-fzf-native.nvim
url = https://github.com/nvim-telescope/telescope-fzf-native.nvim.git
[submodule "nvim/.config/nvim/pack/plugins/start/nvim-treesitter"]
path = nvim/.config/nvim/pack/plugins/start/nvim-treesitter
url = https://github.com/nvim-treesitter/nvim-treesitter.git

View File

@ -6,7 +6,7 @@
#
# taken from https://fishshell.com/docs/current/commands.html#contains
for i in ~/.local/bin ~/.emacs.d/bin
for i in ~/.local/bin ~/.emacs.d/bin ~/.cargo/bin
if not contains $i $PATH
set PATH $PATH $i
end

View File

@ -1,7 +1,7 @@
# This file contains fish universal variable definitions.
# VERSION: 3.0
SETUVAR __fish_init_2_3_0:\x1d
SETUVAR __fish_initialized:3100
SETUVAR __fish_initialized:3400
SETUVAR fish_color_autosuggestion:93a1a1
SETUVAR fish_color_cancel:\x2dr
SETUVAR fish_color_command:586e75
@ -30,4 +30,5 @@ SETUVAR fish_pager_color_completion:green
SETUVAR fish_pager_color_description:B3A06D
SETUVAR fish_pager_color_prefix:cyan\x1e\x2d\x2dunderline
SETUVAR fish_pager_color_progress:brwhite\x1e\x2d\x2dbackground\x3dcyan
SETUVAR fish_pager_color_selected_background:\x2dr
SETUVAR fish_user_paths:/home/ericonr/\x2elocal/bin

View File

@ -59,6 +59,25 @@ let g:rainbow_active = 1
let g:rainbow_conf = { 'ctermfgs': ['darkblue', 'darkred', 'darkgreen', 'darkmagenta', 'darkcyan'] }
" TELESCOPE
" Set up fzf for telescope (requires running make in the fzf directory)
lua << EOF
require('telescope').load_extension('fzf')
EOF
" TREE-SITTER
" Use tree-sitter to highlight Latex, it's considerably less laggy
fu! LatexUseTS()
:syntax clear
:TSEnableAll highlight
:TSBufEnable highlight
endfunction
autocmd BufNewFile,BufRead *.tex :call LatexUseTS()
" LANGUAGE SERVER
" Partly from https://github.com/neovim/nvim-lspconfig/blob/master/README.md

@ -0,0 +1 @@
Subproject commit 5b6f6ae30c1cf8fceefe08a9bcf799870558a878

@ -0,0 +1 @@
Subproject commit d742fd9c4a311ea9351eebef4c91e50d5960dd1e

@ -0,0 +1 @@
Subproject commit 8ec164b541327202e5e74f99bcc5fe5845720e18

@ -0,0 +1 @@
Subproject commit 76120285f88c1becb5728695f6df77c545437c53

View File

@ -24,6 +24,8 @@ bind P paste-buffer
# https://unix.stackexchange.com/questions/101949
bind % split -h -c "#{pane_current_path}"
set-option -g default-terminal "screen-256color"
set -sg escape-time 0
set -g mouse on

File diff suppressed because one or more lines are too long

View File

@ -63,7 +63,7 @@ _device="usbutils"
_monitor="bmon htop"
_net="curl wget git aerc asciinema lynx weechat"
_crypto="gnupg2 outils minisign"
_shell="fish-shell lolcat-c tmux xxd neovim"
_shell="fish-shell lolcat-c tmux xxd neovim tree-sitter-devel"
_tools="bsdtar fd lowdown p7zip parallel ripgrep ugrep stow execline s6 fswatch moreutils"
_boxes="toybox toybox.static busybox"
_void="vsv xtools fuzzypkg graphviz"

View File

@ -2,20 +2,16 @@
"layer": "top", // Waybar at top layer
"height": 25, // Waybar height (to be removed for auto height)
// Choose the order of the modules
"modules-left": ["sway/workspaces", "sway/mode", "custom/media", "tray"],
"modules-left": ["custom/media", "tray", "wlr/taskbar"],
"modules-center": ["sway/window"],
"modules-right": ["idle_inhibitor", "sndio",
"pulseaudio",
"network", "cpu", "memory", "temperature", "backlight", "battery", "custom/keyboard_layout", "clock"],
// Modules configuration
"sway/workspaces": {
"disable-scroll": false,
"all-outputs": true
},
"sway/mode": {
"format": "<span style=\"italic\">{}</span>"
"wlr/taskbar" : {
"on-click": "activate",
"on-click-middle": "close"
},
"idle_inhibitor": {

View File

@ -77,6 +77,7 @@ binding_mute = KEY_MUTE
binding_screenshot = KEY_PRINT
binding_screenshot_interactive = <shift> KEY_PRINT
binding_terminal = <super> KEY_ENTER
binding_terminal2 = <super> <shift> KEY_ENTER
command_0 = nwggrid
command_1 = swaylock
command_launcher = nwgdmenu
@ -89,7 +90,7 @@ command_mute = pactl set-source-mute @DEFAULT_SOURCE@ toggle
command_screenshot = grim $(date '+%F_%T').webp
command_screenshot_interactive = slurp | grim -g - $(date '+%F_%T').webp
command_terminal = footclient
command_terminal2 = foot
command_terminal2 = foot --font "IBM Plex Mono:size=14, DejaVu Sans Mono:size=15"
command_volume_down = pactl set-sink-volume @DEFAULT_SINK@ -5%
command_volume_up = pactl set-sink-volume @DEFAULT_SINK@ +5%
repeatable_binding_light_down = KEY_BRIGHTNESSDOWN

1
wayland/services/gb/.gitignore vendored Normal file
View File

@ -0,0 +1 @@
build

3
wayland/services/gb/run Executable file
View File

@ -0,0 +1,3 @@
#!/bin/execlineb -P
hittpd -p 2024 build/
# add build/ symlink to glowing bear directory

View File

View File

@ -1,4 +1,6 @@
#!/bin/execlineb -P
tryexec
{ /usr/libexec/polkit-gnome-authentication-agent-1 }
tryexec
{ /usr/lib/libexec/polkit-kde-authentication-agent-1 }
sleep 100

View File

@ -1,4 +1,4 @@
#!/bin/execlineb -P
importas -i dir XDG_RUNTIME_DIR
foreground { mkdir -p ${dir}/ssh }
ssh-agent -a ${dir}/ssh/agent -D
ssh-agent -a ${dir}/ssh/agent -t 7200 -D

2
wayland/services/xdocp/run Executable file
View File

@ -0,0 +1,2 @@
#!/bin/execlineb -P
/usr/libexec/xdg-document-portal -r

View File

@ -0,0 +1 @@
1000

2
wayland/services/xps/run Executable file
View File

@ -0,0 +1,2 @@
#!/bin/execlineb -P
/usr/libexec/xdg-permission-store -r