feat: attempt at setting up vieb
This commit is contained in:
parent
4635e538dd
commit
c879c78d56
26
dotfiles/vieb/.viebrc
Normal file
26
dotfiles/vieb/.viebrc
Normal file
|
@ -0,0 +1,26 @@
|
|||
" Options
|
||||
set adblocker=update
|
||||
set downloadmethod=confirm
|
||||
set mintabwidth=250
|
||||
set redirecttohttp
|
||||
set tabreopenposition=previous
|
||||
set windowtitle=title
|
||||
set search=https://google.com/search?q=
|
||||
set searchwords=w~https://www.wikipedia.org/w/index.php?title=Special:Search&search=%s
|
||||
|
||||
" Mappings
|
||||
nmap d <action.scrollPageDownHalf>
|
||||
nmap u <action.scrollPageUpHalf>
|
||||
nmap yy <action.pageToClipboard>
|
||||
nmap yf <pointer.start><action.startFollowCurrentTab>
|
||||
nmap v <pointer.start><pointer.startVisualSelect>
|
||||
nmap O <action.openNewTab><action.toExploreMode>
|
||||
nmap T <action.toCommandMode>buffer<Space>
|
||||
nmap x <action.closeTab>
|
||||
nmap X <action.reopenTab>
|
||||
nmap yt <action.openNewTabWithCurrentUrl><CR>
|
||||
nmap ? <:help>
|
||||
|
||||
vmap c <Esc><pointer.start>
|
||||
|
||||
" extensions
|
|
@ -51,6 +51,10 @@
|
|||
nixosConfigurations.nixos = nixpkgs.lib.nixosSystem {
|
||||
inherit system;
|
||||
|
||||
specialArgs = {
|
||||
paths = import ./paths.nix;
|
||||
};
|
||||
|
||||
modules = [
|
||||
inputs.home-manager.nixosModules.home-manager
|
||||
inputs.kmonad.nixosModule
|
||||
|
|
11
modules/applications/chromium.nix
Normal file
11
modules/applications/chromium.nix
Normal file
|
@ -0,0 +1,11 @@
|
|||
{ pkgs, lib, ... }:
|
||||
let
|
||||
theme = pkgs.myThemes.current;
|
||||
extensions = theme.chromium.extensions or [ ];
|
||||
in
|
||||
{
|
||||
home-manager.users.adrielus.programs.chromium = {
|
||||
enable = true;
|
||||
extensions = lib.lists.map (id: { inherit id; }) extensions;
|
||||
};
|
||||
}
|
|
@ -20,6 +20,8 @@
|
|||
./tmux.nix
|
||||
./kmonad.nix
|
||||
./direnv.nix
|
||||
./chromium.nix
|
||||
./vieb.nix
|
||||
];
|
||||
}
|
||||
|
||||
|
|
10
modules/applications/vieb.nix
Normal file
10
modules/applications/vieb.nix
Normal file
|
@ -0,0 +1,10 @@
|
|||
{ pkgs, paths, ... }:
|
||||
let vieb = "/home/adrielus/.config/Vieb"; in
|
||||
{
|
||||
home-manager.users.adrielus = {
|
||||
home.packages = [ pkgs.vieb ];
|
||||
systemd.user.tmpfiles.rules = [
|
||||
"L+ /home/adrielus/.viebrc - - - - ${paths.dotfiles}/vieb/.viebrc"
|
||||
];
|
||||
};
|
||||
}
|
|
@ -1,8 +1,8 @@
|
|||
{ transparency ? 1, wallpaper }: { pkgs, ... }:
|
||||
{ transparency ? 1, wallpaper, variant }: { pkgs, ... }:
|
||||
let
|
||||
githubTheme = pkgs.myVimPlugins.githubNvimTheme; # github theme for neovim
|
||||
variant = "dark";
|
||||
foreign = pkgs.callPackage (import ./foreign.nix) { };
|
||||
v = (a: b: if variant == "light" then a else b);
|
||||
in
|
||||
{
|
||||
wallpaper = wallpaper.foreign or "${foreign.wallpapers}/${wallpaper}";
|
||||
|
@ -33,6 +33,12 @@ in
|
|||
@import "${foreign.rofi}/.config/rofi/config.rasi"
|
||||
@import "${./rofi.rasi}"'';
|
||||
};
|
||||
chromium.extensions = [
|
||||
# https://github.com/catppuccin/chrome
|
||||
(v
|
||||
"cmpdlhmnmjhihmcfnigoememnffkimlk"
|
||||
"bkkmolkhemgaeaeggcmfbghljjjoofoh")
|
||||
];
|
||||
alacritty.settings = {
|
||||
import = [ "${foreign.alacritty}/catppuccin.yml" ];
|
||||
window = {
|
||||
|
|
|
@ -13,6 +13,7 @@ lib.lists.map (theme: pkgs.callPackage theme { }) [
|
|||
wallpaper = "misc/rainbow.png";
|
||||
# wallpaper.foreign = ./wallpapers/eye.png;
|
||||
transparency = 0.93;
|
||||
variant = "light";
|
||||
})
|
||||
(githubVariant {
|
||||
variant = "light";
|
||||
|
|
Loading…
Reference in a new issue