La till eget tmux plugin
This commit is contained in:
parent
d72ed3984c
commit
5d9e4717c5
3 changed files with 34 additions and 28 deletions
22
flake.lock
generated
22
flake.lock
generated
|
@ -2,17 +2,17 @@
|
||||||
"nodes": {
|
"nodes": {
|
||||||
"fw-pkgs": {
|
"fw-pkgs": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1716560453,
|
"lastModified": 1717099852,
|
||||||
"narHash": "sha256-3GWrmnLQ8r5dV6fr5mMDk8p/X9drKFJzl0REkvDbCMc=",
|
"narHash": "sha256-hhjMoK2MlwSX3avfP0NuaneqynY8BrQMiiQlQm/wdvM=",
|
||||||
"owner": "FredzyW",
|
"owner": "fwastring",
|
||||||
"repo": "fw-pkgs",
|
"repo": "fwpkgs",
|
||||||
"rev": "721ffab7059556c7e8832d47f2d1a09433ddd9d8",
|
"rev": "36c899da0873334f093e94a8bc1f57c7fa9943e9",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
"owner": "FredzyW",
|
"owner": "fwastring",
|
||||||
"ref": "master",
|
"ref": "main",
|
||||||
"repo": "fw-pkgs",
|
"repo": "fwpkgs",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
@ -71,11 +71,11 @@
|
||||||
},
|
},
|
||||||
"nixpkgs-unstable": {
|
"nixpkgs-unstable": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1716509168,
|
"lastModified": 1716948383,
|
||||||
"narHash": "sha256-4zSIhSRRIoEBwjbPm3YiGtbd8HDWzFxJjw5DYSDy1n8=",
|
"narHash": "sha256-SzDKxseEcHR5KzPXLwsemyTR/kaM9whxeiJohbL04rs=",
|
||||||
"owner": "NixOS",
|
"owner": "NixOS",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"rev": "bfb7a882678e518398ce9a31a881538679f6f092",
|
"rev": "ad57eef4ef0659193044870c731987a6df5cf56b",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
# Nixpkgs
|
# Nixpkgs
|
||||||
nixpkgs.url = "github:NixOS/nixpkgs/nixos-23.11";
|
nixpkgs.url = "github:NixOS/nixpkgs/nixos-23.11";
|
||||||
nixpkgs-unstable.url = "github:NixOS/nixpkgs/nixos-unstable";
|
nixpkgs-unstable.url = "github:NixOS/nixpkgs/nixos-unstable";
|
||||||
fw-pkgs.url = "github:FredzyW/fw-pkgs/master";
|
fw-pkgs.url = "github:fwastring/fwpkgs/main";
|
||||||
|
|
||||||
# Home manager
|
# Home manager
|
||||||
home-manager.url = "github:nix-community/home-manager/release-23.11";
|
home-manager.url = "github:nix-community/home-manager/release-23.11";
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
{ lib, config, pkgs, fetchFromGitHub, ... }:
|
{ pkgs, ... }:
|
||||||
{
|
{
|
||||||
programs.tmux = {
|
programs.tmux = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
@ -7,25 +7,31 @@
|
||||||
tmuxPlugins.sensible
|
tmuxPlugins.sensible
|
||||||
tmuxPlugins.pain-control
|
tmuxPlugins.pain-control
|
||||||
tmuxPlugins.sessionist
|
tmuxPlugins.sessionist
|
||||||
|
tmuxPlugins.logging
|
||||||
{
|
{
|
||||||
plugin = fw-pkgs.tmuxPlugins.dracula;
|
plugin = tmuxPlugins.resurrect;
|
||||||
extraConfig = ''
|
extraConfig = ''
|
||||||
set -g @dracula-show-powerline true
|
resurrect_dir=“$HOME/.tmux/resurrect”
|
||||||
# available plugins: battery, cpu-usage, git, gpu-usage, ram-usage, tmux-ram-usage, network, network-bandwidth, network-ping, ssh-session, attached-clients, network-vpn, weather, time, mpc, spotify-tui, playerctl, kubernetes-context, synchronize-panes
|
set -g @resurrect-dir $resurrect_dir
|
||||||
set -g @dracula-plugins 'spotify-tui battery time'
|
set -g @resurrect-hook-post-save-all 'target=$(readlink -f $resurrect_dir/last); sed “s| --cmd .*-vim-pack-dir||g; s|/etc/profiles/per-user/$USER/bin/||g” $target | sponge $target'
|
||||||
# set -g @dracula-plugins 'battery time'
|
set -g @resurrect-strategy-nvim 'session'
|
||||||
set -g @dracula-refresh-rate 10
|
|
||||||
set -g @dracula-show-timezone false
|
|
||||||
set -g @dracula-military-time true
|
|
||||||
set -g @dracula-day-month true
|
|
||||||
set -g @dracula-show-left-icon session
|
|
||||||
set -g @dracula-battery-label ""
|
|
||||||
set -g @dracula-battery-colors "cyan dark_gray"
|
|
||||||
set -g @dracula-spotify-tui-colors "pink dark_gray"
|
|
||||||
set -g @dracula-ssh-session-colors "orange dark_gray"
|
|
||||||
set -g @dracula-show-empty-plugins false
|
|
||||||
'';
|
'';
|
||||||
}
|
}
|
||||||
|
{
|
||||||
|
plugin = tmuxPlugins.continuum;
|
||||||
|
extraConfig = ''
|
||||||
|
set -g @continuum-boot 'on'
|
||||||
|
set -g @continuum-restore 'on'
|
||||||
|
'';
|
||||||
|
}
|
||||||
|
fw-pkgs.tmuxPlugins.spotify
|
||||||
|
{
|
||||||
|
plugin = fw-pkgs.tmuxPlugins.minimal;
|
||||||
|
extraConfig = ''
|
||||||
|
bind-key b set-option status
|
||||||
|
'';
|
||||||
|
}
|
||||||
|
|
||||||
];
|
];
|
||||||
prefix = "C-a";
|
prefix = "C-a";
|
||||||
terminal = "xterm-256color";
|
terminal = "xterm-256color";
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue