mirror of
https://github.com/alrayyes/dotfiles/
synced 2023-11-14 15:56:30 +00:00
Compare commits
No commits in common. "d3d3f4e1504b04885d47c710767b0b1e87935f9a" and "6e9214aeb13fe692cef0be67fd38c9602d2d2ab2" have entirely different histories.
d3d3f4e150
...
6e9214aeb1
@ -24,6 +24,7 @@ xdg-mime default org-protocol.desktop x-scheme-handler/org-protocol
|
||||
- [[https://www.musicpd.org/][mpd]]
|
||||
- [[https://neomutt.org/][neomutt]]
|
||||
- [[https://neovim.io/][neovim]]
|
||||
- [[https://github.com/muennich/physlock][physlock]]
|
||||
- [[http://jonls.dk/redshift/][redshift]]
|
||||
- [[https://github.com/baskerville/sxhkd][sxhkd]]
|
||||
- [[https://github.com/hlissner/doom-emacs][Doom Emacs]]
|
||||
|
@ -1,15 +1,15 @@
|
||||
#!/bin/bash
|
||||
|
||||
# get hostnames from ~/.ssh/known_hosts
|
||||
ssh_host="$(awk -F "[ ,]+" '{print $1}' ~/.ssh/known_hosts | tr -d '[]' | uniq | sort -n | dmenu "$@")"
|
||||
ssh_host="$(awk -F "[ ,]+" '{print $1}' ~/.ssh/known_hosts | tr -d '[]' | uniq | sort -n | dmenu)"
|
||||
# split hostnames into array { hostname, port }
|
||||
mapfile -t params < <(echo "$ssh_host" | awk -F ":" '{print $1} {if ($2) print $2}')
|
||||
|
||||
if [ -n "$ssh_host" ]; then
|
||||
# If array size is two then second parameter is port number
|
||||
if [ ${#params[@]} -eq 2 ]; then
|
||||
$TERMINAL -e ssh "${params[0]}" -p "${params[1]}"
|
||||
else
|
||||
$TERMINAL -e ssh "${params[0]}"
|
||||
fi
|
||||
if [ -n "$ssh_host" ]; then
|
||||
# If array size is two then second parameter is port number
|
||||
if [ ${#params[@]} -eq 2 ]; then
|
||||
$TERMINAL -e ssh "${params[0]}" -p "${params[1]}"
|
||||
else
|
||||
$TERMINAL -e ssh "${params[0]}"
|
||||
fi
|
||||
fi
|
||||
|
@ -7,8 +7,8 @@ SCREENCOUNT=$(xrandr | grep -c "\*")
|
||||
|
||||
# If multi screen add special mode for monitor so it supports 1440p over HDMI
|
||||
if [ "$SCREENCOUNT" -eq 2 ]; then
|
||||
bspc monitor DP-1 -d 2 3 4 5 6 7 8 9 10
|
||||
bspc monitor HDMI-2 -d 1
|
||||
bspc monitor DP-1 -d 2 3 4 5 6 7 8 9 10
|
||||
bspc monitor HDMI-2 -d 1
|
||||
if [ -f "$HOME/.local/bin/screen_desktop" ]; then
|
||||
screen_desktop
|
||||
fi
|
||||
@ -21,11 +21,14 @@ else
|
||||
screen
|
||||
fi
|
||||
if [ -f "$HOME/.local/bin/polybar-laptop" ]; then
|
||||
polybar laptop-top &
|
||||
polybar laptop-bottom &
|
||||
polybar laptop-top &
|
||||
polybar laptop-bottom &
|
||||
fi
|
||||
fi
|
||||
|
||||
# lock screen after x minutes and on laptop close lid
|
||||
xautolock -time 10 -locker ~/.local/bin/lock &
|
||||
xss-lock -- ~/.local/bin/lock &
|
||||
xcompmgr &
|
||||
|
||||
if [ -e ~/.cache/wall1.png ] && [ -e ~/.cache/wall2.png ]; then
|
||||
@ -46,11 +49,8 @@ redshift-gtk &
|
||||
nm-applet &
|
||||
syncthing-gtk &
|
||||
gpodder &
|
||||
spotify &
|
||||
|
||||
# system lock
|
||||
xss-lock -n ~/.local/bin/lock -- ~/.local/bin/lock &
|
||||
xautolock -time 10 -locker ~/.local/bin/lock &
|
||||
spotify &
|
||||
|
||||
if [ -e /usr/bin/firefox ]; then
|
||||
firefox &
|
||||
|
@ -1,3 +1,3 @@
|
||||
#!/bin/sh
|
||||
|
||||
slock
|
||||
physlock -d
|
||||
|
@ -81,7 +81,7 @@ When moving entries up and down in the buffer use `j` and `k` instead of `↑` a
|
||||
- Show images in buffers as default
|
||||
#+BEGIN_SRC emacs-lisp
|
||||
(setq org-directory "~/Documents/org"
|
||||
org-agenda-files '("~/Documents/org" "~/Documents/org/freelance")
|
||||
org-agenda-files '("~/Documents/org")
|
||||
org-log-done 'note
|
||||
org-startup-with-inline-images t)
|
||||
#+END_SRC
|
||||
@ -219,7 +219,7 @@ Emacs frontend for weather web service [[http://wttr.in/][wttr.in]]
|
||||
* Spelling
|
||||
#+BEGIN_SRC emacs-lisp
|
||||
(after! ispell
|
||||
(setq ispell-dictionary "en_GB-large,nl_NL")
|
||||
(setq ispell-dictionary "en_GB-large,nl_NL")
|
||||
(ispell-set-spellchecker-params)
|
||||
(ispell-hunspell-add-multi-dic "en_GB-large,nl_NL"))
|
||||
#+END_SRC
|
||||
|
@ -26,7 +26,7 @@ F1
|
||||
|
||||
# dmenu password selector
|
||||
F2
|
||||
passmenu -p Password:
|
||||
passmenu
|
||||
|
||||
# dmenu authenticator
|
||||
F3
|
||||
@ -34,7 +34,7 @@ F3
|
||||
|
||||
# ssh shell
|
||||
F4
|
||||
ssh-dmenu -p SSH:
|
||||
ssh-dmenu
|
||||
|
||||
# scratchpad shell
|
||||
F5
|
||||
|
Loading…
Reference in New Issue
Block a user