Compare commits
8 Commits
1c1daeb736
...
459675937b
Author | SHA1 | Date |
---|---|---|
Sebastian Schulze | 459675937b | |
Sebastian Schulze | 27a3a3de82 | |
Sebastian Schulze | 7991cc7881 | |
Sebastian Schulze | 0c1d7c8b5c | |
Sebastian Schulze | f433d51252 | |
Sebastian Schulze | 8a0d5c93de | |
Sebastian Schulze | 03224ed9ee | |
Sebastian Schulze | 81ea03a473 |
|
@ -3,14 +3,14 @@
|
||||||
# Any items in the `env` entry below will be added as
|
# Any items in the `env` entry below will be added as
|
||||||
# environment variables. Some entries may override variables
|
# environment variables. Some entries may override variables
|
||||||
# set by alacritty itself.
|
# set by alacritty itself.
|
||||||
#env:
|
env:
|
||||||
# TERM variable
|
# TERM variable
|
||||||
#
|
#
|
||||||
# This value is used to set the `$TERM` environment variable for
|
# This value is used to set the `$TERM` environment variable for
|
||||||
# each instance of Alacritty. If it is not present, alacritty will
|
# each instance of Alacritty. If it is not present, alacritty will
|
||||||
# check the local terminfo database and use 'alacritty' if it is
|
# check the local terminfo database and use 'alacritty' if it is
|
||||||
# available, otherwise 'xterm-256color' is used.
|
# available, otherwise 'xterm-256color' is used.
|
||||||
#TERM: xterm-256color
|
TERM: xterm-256color
|
||||||
|
|
||||||
window:
|
window:
|
||||||
# Window dimensions (changes require restart)
|
# Window dimensions (changes require restart)
|
||||||
|
@ -103,7 +103,7 @@ font:
|
||||||
style: Italic
|
style: Italic
|
||||||
|
|
||||||
# Point size
|
# Point size
|
||||||
size: 8.0
|
size: 10
|
||||||
|
|
||||||
# Offset is the extra space around each character. `offset.y` can be thought of
|
# Offset is the extra space around each character. `offset.y` can be thought of
|
||||||
# as modifying the line spacing, and `offset.x` as modifying the letter spacing.
|
# as modifying the line spacing, and `offset.x` as modifying the letter spacing.
|
||||||
|
@ -122,7 +122,7 @@ font:
|
||||||
# screens and make reading text a little easier.
|
# screens and make reading text a little easier.
|
||||||
# On X11 it is possible to change the DPI for each instance of alacritty by using
|
# On X11 it is possible to change the DPI for each instance of alacritty by using
|
||||||
# `WINIT_HIDPI_FACTOR=1.0 alacritty` to scale the font.
|
# `WINIT_HIDPI_FACTOR=1.0 alacritty` to scale the font.
|
||||||
scale_with_dpi: true
|
# scale_with_dpi: true
|
||||||
|
|
||||||
# Display the time it takes to redraw each frame.
|
# Display the time it takes to redraw each frame.
|
||||||
render_timer: false
|
render_timer: false
|
||||||
|
@ -232,6 +232,8 @@ background_opacity: 1.0
|
||||||
# section.
|
# section.
|
||||||
mouse_bindings:
|
mouse_bindings:
|
||||||
- { mouse: Middle, action: PasteSelection }
|
- { mouse: Middle, action: PasteSelection }
|
||||||
|
- { mouse: Middle, mods: Shift, action: PasteSelection }
|
||||||
|
|
||||||
|
|
||||||
mouse:
|
mouse:
|
||||||
# Click settings
|
# Click settings
|
||||||
|
|
|
@ -63,6 +63,7 @@ bindsym Control+Shift+Print exec --no-startup-id "i3-dropshot"
|
||||||
bindsym Control+Shift+Mod1+f exec rofi-clipboard
|
bindsym Control+Shift+Mod1+f exec rofi-clipboard
|
||||||
bindsym Control+$mod+w exec firefox
|
bindsym Control+$mod+w exec firefox
|
||||||
bindsym Control+$mod+e exec emacs
|
bindsym Control+$mod+e exec emacs
|
||||||
|
bindsym Control+$mod+f exec pcmanfm
|
||||||
bindsym Control+Shift+Mod1+p exec rofi-pass
|
bindsym Control+Shift+Mod1+p exec rofi-pass
|
||||||
bindsym --release Control+Shift+mod1+j exec rofi-marks &
|
bindsym --release Control+Shift+mod1+j exec rofi-marks &
|
||||||
bindsym $mod+d exec "i3-rofi"
|
bindsym $mod+d exec "i3-rofi"
|
||||||
|
@ -73,8 +74,8 @@ bindsym $mod+q kill
|
||||||
# change focus
|
# change focus
|
||||||
bindsym $mod+j focus left
|
bindsym $mod+j focus left
|
||||||
bindsym $mod+k focus down
|
bindsym $mod+k focus down
|
||||||
bindsym $mod+l focus up
|
bindsym $mod+i focus up
|
||||||
bindsym $mod+odiaeresis focus right
|
bindsym $mod+l focus right
|
||||||
bindsym $mod+Left focus left
|
bindsym $mod+Left focus left
|
||||||
bindsym $mod+Down focus down
|
bindsym $mod+Down focus down
|
||||||
bindsym $mod+Up focus up
|
bindsym $mod+Up focus up
|
||||||
|
@ -83,8 +84,8 @@ bindsym $mod+Right focus right
|
||||||
# move focused window
|
# move focused window
|
||||||
bindsym $mod+Shift+j move left
|
bindsym $mod+Shift+j move left
|
||||||
bindsym $mod+Shift+k move down
|
bindsym $mod+Shift+k move down
|
||||||
bindsym $mod+Shift+l move up
|
bindsym $mod+Shift+i move up
|
||||||
bindsym $mod+Shift+odiaeresis move right
|
bindsym $mod+Shift+l move right
|
||||||
bindsym $mod+Shift+Left move left
|
bindsym $mod+Shift+Left move left
|
||||||
bindsym $mod+Shift+Down move down
|
bindsym $mod+Shift+Down move down
|
||||||
bindsym $mod+Shift+Up move up
|
bindsym $mod+Shift+Up move up
|
||||||
|
|
|
@ -0,0 +1 @@
|
||||||
|
/usr/lib/systemd/user/emacs.service
|
|
@ -0,0 +1,11 @@
|
||||||
|
[Unit]
|
||||||
|
Description=Emacs: the extensible, self-documenting text editor
|
||||||
|
|
||||||
|
[Service]
|
||||||
|
Type=forking
|
||||||
|
ExecStart=/usr/bin/emacs --daemon
|
||||||
|
ExecStop=/usr/bin/emacsclient --eval "(kill-emacs)"
|
||||||
|
Restart=always
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=default.target
|
|
@ -98,6 +98,7 @@ values."
|
||||||
flycheck-yamllint
|
flycheck-yamllint
|
||||||
flymake-shellcheck
|
flymake-shellcheck
|
||||||
logstash-conf
|
logstash-conf
|
||||||
|
ox-epub
|
||||||
)
|
)
|
||||||
;; A list of packages that cannot be updated.
|
;; A list of packages that cannot be updated.
|
||||||
dotspacemacs-frozen-packages '()
|
dotspacemacs-frozen-packages '()
|
||||||
|
@ -309,7 +310,7 @@ values."
|
||||||
;; If non nil unicode symbols are displayed in the mode line. (default t)
|
;; If non nil unicode symbols are displayed in the mode line. (default t)
|
||||||
dotspacemacs-mode-line-unicode-symbols t
|
dotspacemacs-mode-line-unicode-symbols t
|
||||||
|
|
||||||
dotspacemacs-mode-line-theme '(spacemacs)
|
dotspacemacs-mode-line-theme '(doom)
|
||||||
;; If non nil smooth scrolling (native-scrolling) is enabled. Smooth
|
;; If non nil smooth scrolling (native-scrolling) is enabled. Smooth
|
||||||
;; scrolling overrides the default behavior of Emacs which recenters point
|
;; scrolling overrides the default behavior of Emacs which recenters point
|
||||||
;; when it reaches the top or bottom of the screen. (default t)
|
;; when it reaches the top or bottom of the screen. (default t)
|
||||||
|
@ -405,7 +406,7 @@ you should place your code here."
|
||||||
(load-file "~/.spacemacs.d/private/mail-config.el"))
|
(load-file "~/.spacemacs.d/private/mail-config.el"))
|
||||||
|
|
||||||
|
|
||||||
(spaceline-toggle-minor-modes-off)
|
;(spaceline-toggle-minor-modes-off)
|
||||||
(load-file "~/.spacemacs.d/public/org-config.el")
|
(load-file "~/.spacemacs.d/public/org-config.el")
|
||||||
(add-hook 'yaml-mode-hook
|
(add-hook 'yaml-mode-hook
|
||||||
'indent-guide-mode
|
'indent-guide-mode
|
||||||
|
@ -429,6 +430,8 @@ you should place your code here."
|
||||||
(require 'atomic-chrome)
|
(require 'atomic-chrome)
|
||||||
(atomic-chrome-start-server)
|
(atomic-chrome-start-server)
|
||||||
(setq atomic-chrome-default-major-mode 'markdown-mode)
|
(setq atomic-chrome-default-major-mode 'markdown-mode)
|
||||||
|
(setq web-mode-engines-alist
|
||||||
|
'(("go" . "\\.phtml\\'")))
|
||||||
)
|
)
|
||||||
|
|
||||||
;; Do not write anything past this comment. This is where Emacs will
|
;; Do not write anything past this comment. This is where Emacs will
|
||||||
|
|
|
@ -209,7 +209,7 @@
|
||||||
(add-to-list 'org-global-properties
|
(add-to-list 'org-global-properties
|
||||||
'("Effort_ALL". "0:05 0:15 0:30 1:00 2:00 3:00 4:00"))
|
'("Effort_ALL". "0:05 0:15 0:30 1:00 2:00 3:00 4:00"))
|
||||||
|
|
||||||
(spacemacs/toggle-mode-line-org-clock-on)
|
;(spacemacs/toggle-mode-line-org-clock-on)
|
||||||
|
|
||||||
(provide 'org-config)
|
(provide 'org-config)
|
||||||
;;; org-config.el ends here
|
;;; org-config.el ends here
|
||||||
|
|
|
@ -38,6 +38,9 @@ set -g automatic-rename-format '#{b:pane_current_path}'
|
||||||
|
|
||||||
set -g update-environment "SSH_ASKPASS SSH_AUTH_SOCK SSH_AGENT_PID SSH_CONNECTION"
|
set -g update-environment "SSH_ASKPASS SSH_AUTH_SOCK SSH_AGENT_PID SSH_CONNECTION"
|
||||||
|
|
||||||
|
setenv -g SSH_AUTH_SOCK $HOME/.ssh/ssh_auth_sock
|
||||||
|
set -g update-environment -r
|
||||||
|
|
||||||
# Blinky linky
|
# Blinky linky
|
||||||
set -gw monitor-activity on
|
set -gw monitor-activity on
|
||||||
set -g visual-activity on
|
set -g visual-activity on
|
||||||
|
|
|
@ -8,6 +8,7 @@ source $ZSH/oh-my-zsh.sh
|
||||||
|
|
||||||
zplug "plugins/fasd", from:oh-my-zsh
|
zplug "plugins/fasd", from:oh-my-zsh
|
||||||
zplug "plugins/tmux", from:oh-my-zsh
|
zplug "plugins/tmux", from:oh-my-zsh
|
||||||
|
zplug "plugins/tmuxinator", from:oh-my-zsh
|
||||||
zplug "denysdovhan/spaceship-prompt", use:spaceship.zsh, from:github, as:theme
|
zplug "denysdovhan/spaceship-prompt", use:spaceship.zsh, from:github, as:theme
|
||||||
zplug "junegunn/fzf", use:shell/key-bindings.zsh
|
zplug "junegunn/fzf", use:shell/key-bindings.zsh
|
||||||
zplug "urbainvaes/fzf-marks"
|
zplug "urbainvaes/fzf-marks"
|
||||||
|
|
|
@ -27,17 +27,39 @@ binaries = {
|
||||||
url: "https://github.com/mikefarah/yq/releases/download/<%= version %>/yq_linux_amd64",
|
url: "https://github.com/mikefarah/yq/releases/download/<%= version %>/yq_linux_amd64",
|
||||||
version: "2.1.1",
|
version: "2.1.1",
|
||||||
version_argument: "--version",
|
version_argument: "--version",
|
||||||
version_match: '^yq version: :(?<version><%= version %>) '
|
version_match: '^yq version <%= version %>'
|
||||||
},
|
},
|
||||||
lab: {
|
lab: {
|
||||||
url: "https://github.com/zaquestion/lab/releases/download/v<%= version %>/lab_<%= version %>_linux_amd64.tar.gz",
|
url: "https://github.com/zaquestion/lab/releases/download/v<%= version %>/lab_<%= version %>_linux_amd64.tar.gz",
|
||||||
version: "0.14.0",
|
version: "0.14.0",
|
||||||
version_argument: "version",
|
version_argument: "version",
|
||||||
version_match: '^yq version: :(?<version><%= version %>) ',
|
version_match: '^lab version <%= version %>',
|
||||||
},
|
},
|
||||||
|
gopass: {
|
||||||
|
url: "https://github.com/gopasspw/gopass/releases/download/v<%= version %>/gopass-<%= version %>-linux-amd64.tar.gz",
|
||||||
|
version: "1.8.3",
|
||||||
|
version_argument: "version",
|
||||||
|
version_match: '^gopass <%= version %> ',
|
||||||
|
extractor: lambda() do
|
||||||
|
Dir.glob("gopass*/gopass")
|
||||||
|
end
|
||||||
|
},
|
||||||
|
greenclip: {
|
||||||
|
url: "https://github.com/erebe/greenclip/releases/download/<%= version %>/greenclip",
|
||||||
|
version: "3.1",
|
||||||
|
version_argument: "version",
|
||||||
|
version_match: '^greenclip v<%= version %>',
|
||||||
|
},
|
||||||
|
packer: {
|
||||||
|
url: "https://releases.hashicorp.com/packer/<%= version %>/packer_<%= version %>_linux_amd64.zip",
|
||||||
|
version: "1.3.3",
|
||||||
|
version_argument: "version",
|
||||||
|
version_match: "<%= version %>"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
tmpdir = Dir.mktmpdir
|
||||||
|
|
||||||
binaries.each do |binary, download|
|
binaries.each do |binary, download|
|
||||||
target = File.expand_path("~/bin/#{binary}")
|
target = File.expand_path("~/bin/#{binary}")
|
||||||
version = download[:version]
|
version = download[:version]
|
||||||
|
@ -52,7 +74,17 @@ binaries.each do |binary, download|
|
||||||
else
|
else
|
||||||
puts "→ Installing #{binary} #{download[:version]}"
|
puts "→ Installing #{binary} #{download[:version]}"
|
||||||
File.unlink target if File.exists? target
|
File.unlink target if File.exists? target
|
||||||
system "curl -s -L -o #{target} #{download_url}"
|
|
||||||
|
download_dir = File.join(tmpdir, binary.to_s)
|
||||||
|
Dir.mkdir(download_dir)
|
||||||
|
Dir.chdir(download_dir) do
|
||||||
|
system "curl -s -L -O #{download_url}"
|
||||||
|
downloaded_file = Dir.glob("*").first
|
||||||
|
|
||||||
|
system("tar xvf #{downloaded_file} > /dev/null") if downloaded_file.end_with?(".gz")
|
||||||
|
system("unzip #{downloaded_file} > /dev/null") if downloaded_file.end_with?(".zip")
|
||||||
|
FileUtils.mv(File.realpath(Dir.glob("#{binary}-*/#{binary}*").first), target)
|
||||||
|
end
|
||||||
File.chmod(0755, target)
|
File.chmod(0755, target)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue