WIP emacs

This commit is contained in:
Daniel Flanagan 2020-03-26 16:32:32 -05:00
parent a07b3e6f63
commit 4cb3de339a
Signed by: lytedev
GPG key ID: 5B2020A0F9921EF4
7 changed files with 40 additions and 9 deletions

18
apps/config Normal file
View file

@ -0,0 +1,18 @@
;; Added by Package.el. This must come before configurations of
;; installed packages. Don't delete this line. If you don't want it,
;; just comment it out by adding a semicolon to the start of the line.
;; You may delete these explanatory comments.
;; jk<up><down><escape>
(require 'package)
(add-to-list 'package-archives '("org" . "https://orgmode.org/elpa/"))
(add-to-list 'package-archives '("melpa" . "https://melpa.org/packages/"))
(add-to-list 'package-archives '("melpa-stable" . "https://stable.melpa.org/packages/"))
(package-initialize)
;; Given all of this, just `package-refresh-contents`
(require 'evil)
(evil-mode 5)

View file

@ -5,6 +5,7 @@
. "$DOTFILES_PATH/bin/prelude"
# killall -9 dunst &> /dev/null
# killall -9 urxvtd
# urxvtd &
@ -25,11 +26,9 @@ export MOZ_ENABLE_WAYLAND=1
# configuration flag for some of my dotfiles scripts
export IS_WAYLAND=1
mako &
killall -9 dunst &> /dev/null
sway
# mako &
# has_command libinput-gestures-setup && libinput-gestures-setup start
# has_command kdeconnect-indicator && kdeconnect-indicator &
# has_command gnome-keyring-daemon && eval "$(gnome-keyring-daemon --start --components=pkcs11,secrets,ssh)"

View file

@ -1,7 +1,13 @@
#!/usr/bin/env sh
xclip -selection primary
xclip -selection primary -out | xclip -selection clipboard
xclip -selection primary -out | xclip -selection secondary
echo "Your input was stored in all clipboards."
sleep 5 && killall xclip &>/dev/null &
if is_wayland; then
# echo "Clip: YES. THIS IS WAYLAND SPEAKING." >&2
sed 's/^\s+//g' | wl-copy "$@"
echo "Your trimmed input was stored in all clipboards."
else
xclip -selection primary
xclip -selection primary -out | xclip -selection clipboard
xclip -selection primary -out | xclip -selection secondary
echo "Your input was stored in all clipboards."
sleep 5 && killall xclip > /dev/null 2>&1 &
fi

3
bin/field Executable file
View file

@ -0,0 +1,3 @@
#!/usr/bin/env sh
gawk '{print $'${1:-1}'}'

4
bin/getip Executable file
View file

@ -0,0 +1,4 @@
#!/usr/bin/env sh
curl -s --connect-timeout 3 --max-time 10 --retry 5 --retry-delay 0 \
--retry-max-time 40 "$@" ifconfig.co/json | jq

View file

@ -1,3 +1,3 @@
#!/usr/bin/env bash
(test -z "$DISPLAY" || test -n "$WAYLAND_DISPLAY" || test -n "$SWAYSOCK" || test "$IS_WAYLAND" -eq 1)
test "$IS_WAYLAND" == "1" || test -n "$WAYLAND_DISPLAY" || test -n "$SWAYSOCK" || test -z "$DISPLAY"

View file

@ -48,6 +48,7 @@ links=(
"apps/neovim/" "$HOME/.vim"
"apps/neovim/init.vim" "$HOME/.vimrc"
"bin/lib/colors/vim" "$XDG_CONFIG_HOME/nvim/colors/base16-donokai.vim"
"apps/emacs/config" "$HOME/.emacs"
# gtk configuration files
"apps/de/gtk/2rc" "$HOME/.gtkrc-2.0"