fix tpm path

This commit is contained in:
arielherself 2024-08-08 00:39:59 +08:00
parent a300b6f9c2
commit 6910c3c3c8
Signed by: arielherself
SSH Key Fingerprint: SHA256:AK3cyo9tFsp7Mox7K0sYphleC8hReXhnRKxwuDT5LBc
4 changed files with 14 additions and 5 deletions

View File

@ -554,7 +554,7 @@ profiles:
# When this profile is *activated*, this flag decides # When this profile is *activated*, this flag decides
# whether or not to put the window into maximized mode. # whether or not to put the window into maximized mode.
maximized: true maximized: false
bell: bell:
sound: "default" sound: "default"

View File

@ -70,7 +70,7 @@ in {
# Don't forget to change its permissions. # Don't forget to change its permissions.
cider = { cider = {
name = "Cider"; name = "Cider";
genericName = "Apple Music Player"; comment = "Apple Music Player";
type = "Application"; type = "Application";
exec = "${pkgs.appimage-run}/bin/appimage-run ${config.home.homeDirectory}/Dropbox/arch/cider/Cider-linux-appimage-x64.AppImage"; exec = "${pkgs.appimage-run}/bin/appimage-run ${config.home.homeDirectory}/Dropbox/arch/cider/Cider-linux-appimage-x64.AppImage";
terminal = false; terminal = false;
@ -78,7 +78,7 @@ in {
}; };
thorium = { thorium = {
name = "Thorium"; name = "Thorium";
genericName = "Web Browser"; comment = "Access the Internet";
type = "Application"; type = "Application";
exec = "${pkgs.appimage-run}/bin/appimage-run ${config.home.homeDirectory}/Dropbox/arch/thorium/Thorium.AppImage"; exec = "${pkgs.appimage-run}/bin/appimage-run ${config.home.homeDirectory}/Dropbox/arch/thorium/Thorium.AppImage";
terminal = false; terminal = false;
@ -314,11 +314,12 @@ in {
set-option -g default-shell "${pkgs.zsh}/bin/zsh" set-option -g default-shell "${pkgs.zsh}/bin/zsh"
set -g default-command "${pkgs.zsh}/bin/zsh" set -g default-command "${pkgs.zsh}/bin/zsh"
setw -g mode-keys vi setw -g mode-keys vi
set-option -g status-position top
set -g @plugin 'tmux-plugins/tpm' set -g @plugin 'tmux-plugins/tpm'
# This plugin seems to break terminfo when default shell of a terminal emulator is set to zsh. # This plugin seems to break terminfo when default shell of a terminal emulator is set to zsh.
# set -g @plugin 'tmux-plugins/tmux-sensible' # set -g @plugin 'tmux-plugins/tmux-sensible'
set -g @plugin 'erikw/tmux-powerline' set -g @plugin 'erikw/tmux-powerline'
run '${config.xdg.configHome}/plugins/tpm/tpm' run '${config.xdg.configHome}/tmux/plugins/tpm/tpm'
''; '';
}; };

View File

@ -173,6 +173,14 @@ in {
]; ];
}; };
# Fix XDG spec
environment.sessionVariables = rec {
XDG_CACHE_HOME = "$HOME/.cache";
XDG_CONFIG_HOME = "$HOME/.config";
XDG_DATA_HOME = "$HOME/.local/share";
XDG_STATE_HOME = "$HOME/.local/state";
};
# List packages installed in system profile. To search, run: # List packages installed in system profile. To search, run:
# $ nix search wget # $ nix search wget
environment.systemPackages = with pkgs; [ environment.systemPackages = with pkgs; [

View File

@ -732,7 +732,7 @@ vim.keymap.set('i', '<C-x>', '<ESC>ddi')
vim.keymap.set('i', '<Home>', '<ESC>^i') vim.keymap.set('i', '<Home>', '<ESC>^i')
vim.keymap.set('i', '<C-a>', '<ESC>ggVG') vim.keymap.set('i', '<C-a>', '<ESC>ggVG')
vim.keymap.set('n', '<C-a>', 'ggVG') vim.keymap.set('n', '<C-a>', 'ggVG')
vim.keymap.set('n', '<leader>`', '<Cmd>split<CR><Cmd>terminal zsh<CR>i') vim.keymap.set('n', '<leader>`', '<Cmd>split<CR><Cmd>terminal<CR>i')
vim.keymap.set('n', '<leader>n', '<Cmd>tabnew<CR>') vim.keymap.set('n', '<leader>n', '<Cmd>tabnew<CR>')
vim.keymap.set('n', '<leader><tab>', '<Cmd>tabnext<CR>') vim.keymap.set('n', '<leader><tab>', '<Cmd>tabnext<CR>')
vim.keymap.set('t', '<ESC>', '<C-\\><C-n>', {noremap=true}) vim.keymap.set('t', '<ESC>', '<C-\\><C-n>', {noremap=true})