User Tools

Site Tools


technical:programming:env

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
technical:programming:env [2022/08/22 13:11] jctechnical:programming:env [2023/03/09 07:02] (current) jc
Line 3: Line 3:
 Tmux is a terminal multiplexer for managing multiple virtual terminals and SSH connections. Tmux is a terminal multiplexer for managing multiple virtual terminals and SSH connections.
 ### Install ### Install
-Create a `~/.tmux/plugins` directory and clone the tpm and dracula theme repositories.+Create a `~/.tmux/plugins` directory and clone the tmux plugin manager and dracula theme repositories.
 ``` bash ``` bash
-mkdir -p ~/.tmux/plugins; \ +mkdir -p ~/.tmux/plugins 
-cd ~/.tmux/plugins; \ +cd ~/.tmux/plugins 
-git clone https://github.com/tmux-plugins/tpm# Tmux Plugin Manager \ +# Tmux Plugin Manager 
-git clone https://github.com/dracula/tmux # Tmux Dracula Theme+git clone https://github.com/tmux-plugins/tpm 
 +# Tmux Dracula Theme 
 +git clone https://github.com/dracula/tmux
 ``` ```
 ### Configure ### Configure
Line 52: Line 54:
     tmux -S $SERVER  rename-window -t $SESSION emacs     tmux -S $SERVER  rename-window -t $SESSION emacs
     tmux -S $SERVER send-keys -t $SESSION 'emacsclient -nw --socket-name /home/jc/.emacs.d/server/server' C-m     tmux -S $SERVER send-keys -t $SESSION 'emacsclient -nw --socket-name /home/jc/.emacs.d/server/server' C-m
-    # doom window+   # doom window
     tmux -S $SERVER new-window -t $SESSION     tmux -S $SERVER new-window -t $SESSION
     tmux -S $SERVER rename-window -t $SESSION doom     tmux -S $SERVER rename-window -t $SESSION doom
Line 77: Line 79:
 exec tmux_new exec tmux_new
 ``` ```
 +Now simply source or copy the function to a file and execute from the command line.
 +
 </markdown> </markdown>
 ====== Emacs ====== ====== Emacs ======
 ===== Doom ===== ===== Doom =====
 * [[https://github.com/doomemacs/doomemacs|Github: Doom Emacs]] * [[https://github.com/doomemacs/doomemacs|Github: Doom Emacs]]
 +
 +I frequently run into problems with Doom Emacs upgrade failures. Most issues can be resolved by simply removing the offending package's local repository and build cache.
 +<markdown>
 +``` bash
 +# Remove the package's repository
 +rm -rf ~/.emacs.d/.local/straight/repos/<package-name>
 +# Remove the package's build cache. emacs 28.2 is installed, and the build version number my vary
 +rm -rf ~/.emacs.d/.local/traight/build-28.2/<package-name>
 +# Run then Doom Emacs upgrade command
 +doom upgrade
 +```
 +</markdown>
 ===== Elisp ===== ===== Elisp =====
 * [[https://www.emacswiki.org/emacs/LearnEmacsLisp|Emacs Wiki: Elisp]] * [[https://www.emacswiki.org/emacs/LearnEmacsLisp|Emacs Wiki: Elisp]]
 ====== Window Manager ====== ====== Window Manager ======
 ===== Sway ===== ===== Sway =====
-Start sway using lightdm display manager or from the shell.+Start sway from lightdm or shell.
 ==== Install  ==== ==== Install  ====
 **Dependencies:** <code bash> sudo pacman -Su seatd wlroots xcb-util-errors sway</code> **Dependencies:** <code bash> sudo pacman -Su seatd wlroots xcb-util-errors sway</code>
 **Optional:** <code bash> sudo pacman -Su  swaybg swayidle swaylock wf-recorder</code> **Optional:** <code bash> sudo pacman -Su  swaybg swayidle swaylock wf-recorder</code>
-==== Configure ====+==== Lightdm Configuration ====
 Uncomment ''sessions-directory'' line in ''/etc/lightdm/lightdm.config'' and set user-session to sway. Uncomment ''sessions-directory'' line in ''/etc/lightdm/lightdm.config'' and set user-session to sway.
 <code> <code>
Line 114: Line 130:
 </code> </code>
  
-==== Startup ====+==== Lightdm Startup ====
  
 Restart services. Restart services.
Line 132: Line 148:
   exec sway   exec sway
 fi  fi 
-</cod +</code> 
-e>+
technical/programming/env.1661188286.txt.gz · Last modified: 2022/08/22 13:11 by jc