1
0
mirror of https://github.com/alrayyes/dotfiles/ synced 2023-11-14 15:56:30 +00:00

Compare commits

...

6 Commits

Author SHA1 Message Date
d3d3f4e150 use xss-lock & xautlock again 2020-01-10 15:28:32 +01:00
1501387e40 Handle system lock in systemd 2020-01-07 20:01:58 +01:00
d5c848487c Use slock instead of physlock 2020-01-07 19:57:40 +01:00
800cfad490 Added freelance to org mode config files 2020-01-07 19:55:27 +01:00
bf9080e69c Add prefixed to dmenu scripts 2020-01-06 00:05:06 +01:00
6fe44e6f94 Format config 2020-01-06 00:04:51 +01:00
6 changed files with 21 additions and 22 deletions

View File

@ -24,7 +24,6 @@ xdg-mime default org-protocol.desktop x-scheme-handler/org-protocol
- [[https://www.musicpd.org/][mpd]] - [[https://www.musicpd.org/][mpd]]
- [[https://neomutt.org/][neomutt]] - [[https://neomutt.org/][neomutt]]
- [[https://neovim.io/][neovim]] - [[https://neovim.io/][neovim]]
- [[https://github.com/muennich/physlock][physlock]]
- [[http://jonls.dk/redshift/][redshift]] - [[http://jonls.dk/redshift/][redshift]]
- [[https://github.com/baskerville/sxhkd][sxhkd]] - [[https://github.com/baskerville/sxhkd][sxhkd]]
- [[https://github.com/hlissner/doom-emacs][Doom Emacs]] - [[https://github.com/hlissner/doom-emacs][Doom Emacs]]

View File

@ -1,15 +1,15 @@
#!/bin/bash #!/bin/bash
# get hostnames from ~/.ssh/known_hosts # 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 } # split hostnames into array { hostname, port }
mapfile -t params < <(echo "$ssh_host" | awk -F ":" '{print $1} {if ($2) print $2}') mapfile -t params < <(echo "$ssh_host" | awk -F ":" '{print $1} {if ($2) print $2}')
if [ -n "$ssh_host" ]; then if [ -n "$ssh_host" ]; then
# If array size is two then second parameter is port number # If array size is two then second parameter is port number
if [ ${#params[@]} -eq 2 ]; then if [ ${#params[@]} -eq 2 ]; then
$TERMINAL -e ssh "${params[0]}" -p "${params[1]}" $TERMINAL -e ssh "${params[0]}" -p "${params[1]}"
else else
$TERMINAL -e ssh "${params[0]}" $TERMINAL -e ssh "${params[0]}"
fi fi
fi fi

View File

@ -7,8 +7,8 @@ SCREENCOUNT=$(xrandr | grep -c "\*")
# If multi screen add special mode for monitor so it supports 1440p over HDMI # If multi screen add special mode for monitor so it supports 1440p over HDMI
if [ "$SCREENCOUNT" -eq 2 ]; then if [ "$SCREENCOUNT" -eq 2 ]; then
bspc monitor DP-1 -d 2 3 4 5 6 7 8 9 10 bspc monitor DP-1 -d 2 3 4 5 6 7 8 9 10
bspc monitor HDMI-2 -d 1 bspc monitor HDMI-2 -d 1
if [ -f "$HOME/.local/bin/screen_desktop" ]; then if [ -f "$HOME/.local/bin/screen_desktop" ]; then
screen_desktop screen_desktop
fi fi
@ -21,14 +21,11 @@ else
screen screen
fi fi
if [ -f "$HOME/.local/bin/polybar-laptop" ]; then if [ -f "$HOME/.local/bin/polybar-laptop" ]; then
polybar laptop-top & polybar laptop-top &
polybar laptop-bottom & polybar laptop-bottom &
fi fi
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 & xcompmgr &
if [ -e ~/.cache/wall1.png ] && [ -e ~/.cache/wall2.png ]; then if [ -e ~/.cache/wall1.png ] && [ -e ~/.cache/wall2.png ]; then
@ -49,9 +46,12 @@ redshift-gtk &
nm-applet & nm-applet &
syncthing-gtk & syncthing-gtk &
gpodder & gpodder &
spotify & spotify &
# system lock
xss-lock -n ~/.local/bin/lock -- ~/.local/bin/lock &
xautolock -time 10 -locker ~/.local/bin/lock &
if [ -e /usr/bin/firefox ]; then if [ -e /usr/bin/firefox ]; then
firefox & firefox &
elif [ -e /usr/bin/iceweasel ]; then elif [ -e /usr/bin/iceweasel ]; then

View File

@ -1,3 +1,3 @@
#!/bin/sh #!/bin/sh
physlock -d slock

View File

@ -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 - Show images in buffers as default
#+BEGIN_SRC emacs-lisp #+BEGIN_SRC emacs-lisp
(setq org-directory "~/Documents/org" (setq org-directory "~/Documents/org"
org-agenda-files '("~/Documents/org") org-agenda-files '("~/Documents/org" "~/Documents/org/freelance")
org-log-done 'note org-log-done 'note
org-startup-with-inline-images t) org-startup-with-inline-images t)
#+END_SRC #+END_SRC
@ -219,7 +219,7 @@ Emacs frontend for weather web service [[http://wttr.in/][wttr.in]]
* Spelling * Spelling
#+BEGIN_SRC emacs-lisp #+BEGIN_SRC emacs-lisp
(after! ispell (after! ispell
(setq ispell-dictionary "en_GB-large,nl_NL") (setq ispell-dictionary "en_GB-large,nl_NL")
(ispell-set-spellchecker-params) (ispell-set-spellchecker-params)
(ispell-hunspell-add-multi-dic "en_GB-large,nl_NL")) (ispell-hunspell-add-multi-dic "en_GB-large,nl_NL"))
#+END_SRC #+END_SRC

View File

@ -26,7 +26,7 @@ F1
# dmenu password selector # dmenu password selector
F2 F2
passmenu passmenu -p Password:
# dmenu authenticator # dmenu authenticator
F3 F3
@ -34,7 +34,7 @@ F3
# ssh shell # ssh shell
F4 F4
ssh-dmenu ssh-dmenu -p SSH:
# scratchpad shell # scratchpad shell
F5 F5