Add terminal script
This commit is contained in:
@@ -22,11 +22,17 @@ alias cp='cp -i' # ask before removal
|
||||
alias mv='mv -i' # ask before removal
|
||||
|
||||
# ============================== SSH-Agent
|
||||
if ! [ -S /tmp/mthomas-agent.sock ]; then
|
||||
echo "Starting ssh-agent"
|
||||
ssh-agent -a /tmp/mthomas-agent.sock
|
||||
ssh-add
|
||||
fi
|
||||
agent() {
|
||||
if ! [ -S /tmp/mthomas-agent.sock ]; then
|
||||
echo "Starting ssh-agent"
|
||||
ssh-agent -a /tmp/mthomas-agent.sock
|
||||
ssh-add
|
||||
else
|
||||
echo "Agent already running"
|
||||
fi
|
||||
}
|
||||
|
||||
alias ssha=agent
|
||||
|
||||
# ============================== vi-Mode
|
||||
set -o vi
|
||||
|
||||
@@ -11,9 +11,8 @@ floating_modifier $mod
|
||||
workspace_layout stacking
|
||||
|
||||
### keybinds for starting
|
||||
bindsym $mod+Return exec --no-startup-id alacritty
|
||||
bindsym $mod+Ctrl+Return exec --no-startup-id xterm
|
||||
bindsym $mod+d exec --no-startup-id dmenu_run
|
||||
bindsym $mod+Return exec --no-startup-id "terminal.sh"
|
||||
bindsym $mod+d exec --no-startup-id "dmenu_run"
|
||||
bindsym $mod+Shift+s exec --no-startup-id "flameshot gui"
|
||||
|
||||
### keybinds for moving windows
|
||||
|
||||
16
files/.zshrc
16
files/.zshrc
@@ -93,17 +93,11 @@ export HISTFILE="$HOME/.zsh_history"
|
||||
export SAVEHIST=5000
|
||||
|
||||
# ============================== ssh-agent
|
||||
function start_agent() {
|
||||
if ! [ -S /tmp/mthomas-agent.sock ]; then
|
||||
echo "Starting ssh-agent"
|
||||
ssh-agent -a /tmp/mthomas-agent.sock
|
||||
ssh-add
|
||||
else
|
||||
echo "Agent already running..."
|
||||
fi
|
||||
}
|
||||
|
||||
alias ssha=start_agent
|
||||
if ! [ -S /tmp/mthomas-agent.sock ]; then
|
||||
echo "Starting ssh-agent"
|
||||
ssh-agent -a /tmp/mthomas-agent.sock
|
||||
ssh-add
|
||||
fi
|
||||
|
||||
# ============================== vi-Mode
|
||||
bindkey -v
|
||||
|
||||
@@ -389,7 +389,20 @@
|
||||
treemacs-recenter-after-tag-follow t
|
||||
treemacs-tag-follow-delay 1)
|
||||
(treemacs-follow-mode t)
|
||||
(treemacs-load-theme "doom-atom")
|
||||
(treemacs-load-theme "Default")
|
||||
(dolist (face '(treemacs-root-face
|
||||
treemacs-git-unmodified-face
|
||||
treemacs-git-modified-face
|
||||
treemacs-git-renamed-face
|
||||
treemacs-git-ignored-face
|
||||
treemacs-git-untracked-face
|
||||
treemacs-git-added-face
|
||||
treemacs-git-conflict-face
|
||||
treemacs-directory-face
|
||||
treemacs-directory-collapsed-face
|
||||
treemacs-file-face
|
||||
treemacs-tags-face))
|
||||
(set-face-attribute face nil :family "Product Sans" :height 120))
|
||||
:bind
|
||||
(:map global-map
|
||||
("C-x t t" . treemacs)))
|
||||
|
||||
@@ -1,15 +0,0 @@
|
||||
#!/bin/bash
|
||||
|
||||
OUT=$2
|
||||
IN=$1
|
||||
|
||||
# /printer = bigger
|
||||
# /ebook = smaller
|
||||
|
||||
gs \
|
||||
-sOutputFile=${OUT} \
|
||||
-sDEVICE=pdfwrite \
|
||||
-dNOPAUSE \
|
||||
-dBATCH \
|
||||
-dPDFSETTINGS=/printer \
|
||||
${IN}
|
||||
7
files/scripts/terminal.sh
Executable file
7
files/scripts/terminal.sh
Executable file
@@ -0,0 +1,7 @@
|
||||
#!/bin/sh
|
||||
|
||||
if [ $USER == "marc" ]; then
|
||||
alacritty
|
||||
else
|
||||
xterm
|
||||
fi
|
||||
Reference in New Issue
Block a user