Compare commits

...

8 Commits

9 changed files with 69 additions and 15 deletions

View File

@ -3,14 +3,14 @@
# Any items in the `env` entry below will be added as
# environment variables. Some entries may override variables
# set by alacritty itself.
#env:
env:
# TERM variable
#
# This value is used to set the `$TERM` environment variable for
# each instance of Alacritty. If it is not present, alacritty will
# check the local terminfo database and use 'alacritty' if it is
# available, otherwise 'xterm-256color' is used.
#TERM: xterm-256color
TERM: xterm-256color
window:
# Window dimensions (changes require restart)
@ -103,7 +103,7 @@ font:
style: Italic
# Point size
size: 8.0
size: 10
# 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.
@ -122,7 +122,7 @@ font:
# screens and make reading text a little easier.
# 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.
scale_with_dpi: true
# scale_with_dpi: true
# Display the time it takes to redraw each frame.
render_timer: false
@ -232,6 +232,8 @@ background_opacity: 1.0
# section.
mouse_bindings:
- { mouse: Middle, action: PasteSelection }
- { mouse: Middle, mods: Shift, action: PasteSelection }
mouse:
# Click settings

View File

@ -63,6 +63,7 @@ bindsym Control+Shift+Print exec --no-startup-id "i3-dropshot"
bindsym Control+Shift+Mod1+f exec rofi-clipboard
bindsym Control+$mod+w exec firefox
bindsym Control+$mod+e exec emacs
bindsym Control+$mod+f exec pcmanfm
bindsym Control+Shift+Mod1+p exec rofi-pass
bindsym --release Control+Shift+mod1+j exec rofi-marks &
bindsym $mod+d exec "i3-rofi"
@ -73,8 +74,8 @@ bindsym $mod+q kill
# change focus
bindsym $mod+j focus left
bindsym $mod+k focus down
bindsym $mod+l focus up
bindsym $mod+odiaeresis focus right
bindsym $mod+i focus up
bindsym $mod+l focus right
bindsym $mod+Left focus left
bindsym $mod+Down focus down
bindsym $mod+Up focus up
@ -83,8 +84,8 @@ bindsym $mod+Right focus right
# move focused window
bindsym $mod+Shift+j move left
bindsym $mod+Shift+k move down
bindsym $mod+Shift+l move up
bindsym $mod+Shift+odiaeresis move right
bindsym $mod+Shift+i move up
bindsym $mod+Shift+l move right
bindsym $mod+Shift+Left move left
bindsym $mod+Shift+Down move down
bindsym $mod+Shift+Up move up

View File

@ -0,0 +1 @@
/usr/lib/systemd/user/emacs.service

View File

@ -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

View File

@ -98,6 +98,7 @@ values."
flycheck-yamllint
flymake-shellcheck
logstash-conf
ox-epub
)
;; A list of packages that cannot be updated.
dotspacemacs-frozen-packages '()
@ -309,7 +310,7 @@ values."
;; If non nil unicode symbols are displayed in the mode line. (default 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
;; scrolling overrides the default behavior of Emacs which recenters point
;; 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"))
(spaceline-toggle-minor-modes-off)
;(spaceline-toggle-minor-modes-off)
(load-file "~/.spacemacs.d/public/org-config.el")
(add-hook 'yaml-mode-hook
'indent-guide-mode
@ -429,6 +430,8 @@ you should place your code here."
(require 'atomic-chrome)
(atomic-chrome-start-server)
(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

View File

@ -209,7 +209,7 @@
(add-to-list 'org-global-properties
'("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)
;;; org-config.el ends here

View File

@ -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"
setenv -g SSH_AUTH_SOCK $HOME/.ssh/ssh_auth_sock
set -g update-environment -r
# Blinky linky
set -gw monitor-activity on
set -g visual-activity on

View File

@ -8,6 +8,7 @@ source $ZSH/oh-my-zsh.sh
zplug "plugins/fasd", 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 "junegunn/fzf", use:shell/key-bindings.zsh
zplug "urbainvaes/fzf-marks"

View File

@ -27,17 +27,39 @@ binaries = {
url: "https://github.com/mikefarah/yq/releases/download/<%= version %>/yq_linux_amd64",
version: "2.1.1",
version_argument: "--version",
version_match: '^yq version: :(?<version><%= version %>) '
version_match: '^yq version <%= version %>'
},
lab: {
url: "https://github.com/zaquestion/lab/releases/download/v<%= version %>/lab_<%= version %>_linux_amd64.tar.gz",
version: "0.14.0",
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|
target = File.expand_path("~/bin/#{binary}")
version = download[:version]
@ -52,7 +74,17 @@ binaries.each do |binary, download|
else
puts "→ Installing #{binary} #{download[:version]}"
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)
end
end