feat: more tmux configuring
This commit is contained in:
parent
c879c78d56
commit
400794b28c
21 changed files with 133 additions and 71 deletions
modules/applications
|
@ -43,7 +43,7 @@
|
|||
discord
|
||||
# deluge
|
||||
# slack
|
||||
# tdesktop # telegram for the desktop
|
||||
tdesktop # telegram for the desktop
|
||||
zoom-us
|
||||
# teams
|
||||
|
||||
|
|
|
@ -37,8 +37,6 @@ in
|
|||
# haskellPackages.agda-language-server # agda
|
||||
nodePackages.typescript-language-server # typescript
|
||||
easy-purescript-nix.purescript-language-server # purescript
|
||||
idris2 # idris2 lang
|
||||
idris2-pkgs.lsp # idris2
|
||||
sumneko-lua-language-server # lua
|
||||
rnix-lsp # nix
|
||||
haskell-language-server # haskell
|
||||
|
@ -85,8 +83,6 @@ in
|
|||
presence-nvim # discord rich presence
|
||||
agda-nvim # agda support
|
||||
unicode-vim # better unicode support
|
||||
nui-nvim # ui lib required by idris plugin
|
||||
idris2-nvim # idris2 support
|
||||
lean-nvim # lean support
|
||||
kmonad # support for the kmonad config language
|
||||
lh-vim-lib # dependency for lh-brackets
|
||||
|
|
|
@ -13,11 +13,11 @@ in
|
|||
{
|
||||
home-manager.users.adrielus = {
|
||||
home.packages = [ rofi ];
|
||||
home.file.".local/share/rofi/themes/${theme.name}.rasi".text = builtins.readFile theme.rofi.theme;
|
||||
home.file.".local/share/rofi/themes/${theme.name}.rasi".text = theme.rofi.theme or "";
|
||||
|
||||
xdg.configFile."rofi/config.rasi".text = ''
|
||||
@import "${./pre.rasi}"
|
||||
${theme.rofi.config}
|
||||
${theme.rofi.config or ""}
|
||||
'';
|
||||
};
|
||||
}
|
||||
|
|
|
@ -19,7 +19,7 @@
|
|||
battery = "acpi";
|
||||
|
||||
# Rebuuild nixos
|
||||
rebuild = "sudo nixos-rebuild switch --flake ~/Projects/nixos-config/";
|
||||
rebuild = "sudo -u adrielus nixos-rebuild switch --flake ~/Projects/nixos-config/";
|
||||
|
||||
# Render git repo using gource
|
||||
"git-render" = "gource -f -s 1 -c 4 --key";
|
||||
|
|
|
@ -3,8 +3,12 @@ let
|
|||
shellAliases = import ./aliases.nix;
|
||||
common = import ./common.nix;
|
||||
|
||||
globalTheme = pkgs.myThemes.current;
|
||||
theme = "dangerous";
|
||||
themePackage = builtins.getAttr theme pkgs.myFishPlugins.themes; # Dynamically pick the theme path
|
||||
|
||||
defaultDangerousColors = "000000 333333 666666 ff4ff0 0088ff ff6600 ff0000 ff0033 3300ff 0000ff 00ffff 00ff00";
|
||||
dangerousColors = globalTheme.fish.dangerousColors or defaultDangerousColors;
|
||||
in
|
||||
{
|
||||
users.defaultUserShell = pkgs.fish;
|
||||
|
@ -33,9 +37,10 @@ in
|
|||
source $f
|
||||
end
|
||||
|
||||
# if [ "${theme}" = "dangerous" ]
|
||||
set dangerous_colors 000000 333333 666666 ff4ff0 0088ff ff6600 ff0000 ff0033 3300ff 0000ff 00ffff 00ff00
|
||||
# end
|
||||
|
||||
${if theme == "dangerous"
|
||||
then "set dangerous_colors ${dangerousColors}"
|
||||
else ""}
|
||||
|
||||
${common.shellInit}
|
||||
'';
|
||||
|
|
|
@ -1,6 +1,19 @@
|
|||
{ pkgs, lib, ... }:
|
||||
let
|
||||
theme = pkgs.myThemes.current;
|
||||
|
||||
fastcopy = pkgs.tmuxPlugins.mkTmuxPlugin
|
||||
{
|
||||
pluginName = "fastcopy";
|
||||
version = "unstable-2022-04-18";
|
||||
src = pkgs.fetchFromGitHub
|
||||
{
|
||||
owner = "abhinav";
|
||||
repo = "tmux-fastcopy";
|
||||
sha256 = "0d2xdch5w35mw3kpw1y6jy8wk4zj43pjx73jlx83ciqddl3975x6";
|
||||
rev = "4b9bc8e9e71c5b6eeb44a02f608baec07e12ea3d";
|
||||
};
|
||||
};
|
||||
in
|
||||
{
|
||||
home-manager.users.adrielus.programs = {
|
||||
|
@ -17,6 +30,9 @@ in
|
|||
plugins = with pkgs.tmuxPlugins; [
|
||||
cpu # Show CPU load with easy icons
|
||||
vim-tmux-navigator # Switch between tmux and vim panes with ease
|
||||
sessionist # Nicer workflow for switching around between session
|
||||
# fastcopy # Easy copying of stuff
|
||||
resurrect # Save / restore tmux sessions
|
||||
];
|
||||
|
||||
extraConfig = ''
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
let vieb = "/home/adrielus/.config/Vieb"; in
|
||||
{
|
||||
home-manager.users.adrielus = {
|
||||
home.packages = [ pkgs.vieb ];
|
||||
home.packages = [ pkgs.nixos-unstable.vieb ];
|
||||
systemd.user.tmpfiles.rules = [
|
||||
"L+ /home/adrielus/.viebrc - - - - ${paths.dotfiles}/vieb/.viebrc"
|
||||
];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue