summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJozanLeClerc <bousset.rudy@gmail.com>2022-04-23 01:25:46 +0200
committerJozanLeClerc <bousset.rudy@gmail.com>2022-04-23 01:25:46 +0200
commit575db6052aa15cf135d1bea9efd04d4edef1b062 (patch)
tree2005b91d281d02b0aa757116cdd123b9093820f6
parentncmpc keys update and more (diff)
downloaddotfiles-bsd-575db6052aa15cf135d1bea9efd04d4edef1b062.tar.gz
dotfiles-bsd-575db6052aa15cf135d1bea9efd04d4edef1b062.tar.bz2
dotfiles-bsd-575db6052aa15cf135d1bea9efd04d4edef1b062.tar.xz
dotfiles-bsd-575db6052aa15cf135d1bea9efd04d4edef1b062.tar.zst
dotfiles-bsd-575db6052aa15cf135d1bea9efd04d4edef1b062.zip
udpate
-rw-r--r--.config/dunst/dunstrc2
-rw-r--r--.config/emacs/init.el2
-rw-r--r--.config/emacs/org/config.org16
-rw-r--r--.config/x11/xinitrc26
-rwxr-xr-x.local/bin/dmlog6
-rwxr-xr-x.local/bin/editorcmd2
-rwxr-xr-x.local/bin/idea3
-rwxr-xr-x.local/bin/startemacs6
-rwxr-xr-x.local/bin/stopemacs3
9 files changed, 43 insertions, 23 deletions
diff --git a/.config/dunst/dunstrc b/.config/dunst/dunstrc
index 2d69828..4569b19 100644
--- a/.config/dunst/dunstrc
+++ b/.config/dunst/dunstrc
@@ -1,7 +1,7 @@
[global]
monitor = 0
follow = none
- geometry = "750-40+40"
+ geometry = "1500x5-40+40"
indicate_hidden = yes
shrink = yes
transparency = 0
diff --git a/.config/emacs/init.el b/.config/emacs/init.el
index 5a97d25..48eeed4 100644
--- a/.config/emacs/init.el
+++ b/.config/emacs/init.el
@@ -40,7 +40,7 @@
'(jdee-db-spec-breakpoint-face-colors (cons "#1c1f2b" "#676E95"))
'(objed-cursor-color "#ff5370")
'(package-selected-packages
- '(rainbow-identifiers nginx-mode evil-quickscope vc-fossil crontab-mode go-mode mutt-mode pacmacs gemini-mode org-evil glsl-mode vimrc-mode windresize evil evil-collection evil-leader evil-search-highlight-persist evil-mc evil-surround evil-ediff evil-visual-mark-mode evil-nerd-commenter evil-vimish-fold evil-numbers yasnippet yasnippet-classic-snippets yasnippet-snippets auto-yasnippet el-autoyas helm helm-xref helm-etags-plus helm-fuzzy helm-themes helm-make helm-projectile projectile company company-box which-key magit undo-tree shell-pop treemacs treemacs-projectile treemacs-magit treemacs-evil autopair paredit rainbow-delimiters color-identifiers-mode ibuffer-vc ibuffer-projectile eyebrowse diff-hl fzf font-utils restart-emacs string-utils dired-icon kaolin-themes doom-themes spacemacs-theme doom-modeline dashboard org-superstar toc-org pdf-tools dockerfile-mode web-mode ssh sudo-ext vimish-fold bind-key all-the-icons all-the-icons-dired all-the-icons-ibuffer))
+ '(helm-ag rainbow-identifiers nginx-mode evil-quickscope vc-fossil crontab-mode go-mode mutt-mode pacmacs gemini-mode org-evil glsl-mode vimrc-mode windresize evil evil-collection evil-leader evil-search-highlight-persist evil-mc evil-surround evil-ediff evil-visual-mark-mode evil-nerd-commenter evil-vimish-fold evil-numbers yasnippet yasnippet-classic-snippets yasnippet-snippets auto-yasnippet el-autoyas helm helm-xref helm-etags-plus helm-fuzzy helm-themes helm-make helm-projectile projectile company company-box which-key magit undo-tree shell-pop treemacs treemacs-projectile treemacs-magit treemacs-evil autopair paredit rainbow-delimiters color-identifiers-mode ibuffer-vc ibuffer-projectile eyebrowse diff-hl fzf font-utils restart-emacs string-utils dired-icon kaolin-themes doom-themes spacemacs-theme doom-modeline dashboard org-superstar toc-org pdf-tools dockerfile-mode web-mode ssh sudo-ext vimish-fold bind-key all-the-icons all-the-icons-dired all-the-icons-ibuffer))
'(pdf-view-midnight-colors (cons "#EEFFFF" "#292D3E"))
'(pos-tip-background-color "#2E2A29")
'(pos-tip-foreground-color "#d4d4d6")
diff --git a/.config/emacs/org/config.org b/.config/emacs/org/config.org
index e9896f4..35813e4 100644
--- a/.config/emacs/org/config.org
+++ b/.config/emacs/org/config.org
@@ -1,6 +1,7 @@
* My emacs config
** Basic configs
#+BEGIN_SRC emacs-lisp
+ (server-start)
(setq x-alt-keysym 'meta)
(set-keyboard-coding-system 'utf-8)
@@ -10,8 +11,14 @@
(blink-cursor-mode 0)
(global-hl-line-mode 1)
(global-auto-revert-mode t)
-
- (set-frame-font "mononoki Nerd Font:pixelsize=15" nil t)
+ (defun my/disable-scroll-bars (frame)
+ (modify-frame-parameters frame
+ '((vertical-scroll-bars . nil)
+ (horizontal-scroll-bars . nil))))
+ (add-hook 'after-make-frame-functions 'my/disable-scroll-bars)
+
+ (setq default-frame-alist '((font . "mononoki Nerd Font:pixelsize=15")))
+ ;; (set-frame-font "mononoki Nerd Font:pixelsize=15" nil t)
(add-hook 'prog-mode-hook 'display-line-numbers-mode)
(add-hook 'text-mode-hook 'display-line-numbers-mode)
@@ -27,8 +34,6 @@
delete-old-versions t
kept-new-versions 20
kept-old-versions 5)
-
- (server-start)
#+END_SRC
** Desktop-save
@@ -200,6 +205,7 @@
(add-to-list 'auto-mode-alist '("env$" . shell-script-mode))
(add-to-list 'auto-mode-alist '("lfrc$" . vimrc-mode))
(add-to-list 'auto-mode-alist '("muttrc$" . mutt-mode))
+ (add-to-list 'auto-mode-alist '("dunstrc$" . conf-mode))
(add-to-list 'auto-mode-alist '("loader.conf$" . conf-mode))
#+END_SRC
@@ -798,5 +804,3 @@ then it takes a second \\[keyboard-quit] to abort the minibuffer."
(shell-pop--set-shell-type 'my/shell-pop-shell-type my/shell-pop-shell-type)
#+END_SRC
-
-
diff --git a/.config/x11/xinitrc b/.config/x11/xinitrc
index 3661337..5d1eaf3 100644
--- a/.config/x11/xinitrc
+++ b/.config/x11/xinitrc
@@ -1,17 +1,21 @@
# vim: filetype=sh
-pkill compton
-pkill dunst
-pkill mpd-notification
-pkill lowbat
+
+startif() {
+ if ! pgrep "$1"; then
+ bsdsetsid "$@" >/dev/null 2>&1
+ fi
+}
/home/jozan/.local/bin/scrmain
/home/jozan/.local/bin/kb
-/usr/local/bin/musicpd >/dev/null 2>&1
-/usr/local/bin/compton >/dev/null 2>&1 &
-/usr/local/bin/dunst >/dev/null 2>&1 &
-/usr/local/bin/mpd-notification >/dev/null 2>&1 &
-/usr/local/bin/lowbat >/dev/null 2>&1 &
+startif dunst
+startif compton
+startif musicpd
+startif mpd-notification
+startif lowbat
+startif emacs --daemon
+notify-send -u low -t 2000 'emacs' ' Emacs daemonized'
cd /home/jozan
xrdb /home/jozan/.config/x11/xresources
-/usr/local/bin/notify-send -u normal 'Welcome' " Welcome back, partner\!"
-dbus-launch dwm
+notify-send -u normal 'Welcome' " Welcome back, partner\!"
+exec dwm
diff --git a/.local/bin/dmlog b/.local/bin/dmlog
index 51edb8a..cc0f736 100755
--- a/.local/bin/dmlog
+++ b/.local/bin/dmlog
@@ -7,7 +7,8 @@ use constant {
ACPI_PATH => '/usr/sbin/acpiconf',
KILL_PATH => '/usr/bin/killall',
SHUTDOWN_PATH => '/sbin/shutdown',
- NOTIF_PATH => '/usr/local/bin/notify-send'
+ NOTIF_PATH => '/usr/local/bin/notify-send',
+ EMACS_PATH => '/usr/local/bin/emacsclient'
};
use constant LIST => [
'Lock screen',
@@ -58,16 +59,19 @@ sub action
}
elsif ($var eq ${+LIST}[2]) {
if (confirm($var) == 1) {
+ system(EMACS_PATH, '-e', '(save-buffers-kill-terminal)');
exec(KILL_PATH, 'dwm');
}
}
elsif ($var eq ${+LIST}[3]) {
if (confirm($var) == 1) {
+ system(EMACS_PATH, '-e', '(save-buffers-kill-terminal)');
exec(SHUTDOWN_PATH, '-r', 'now');
}
}
elsif ($var eq ${+LIST}[4]) {
if (confirm($var) == 1) {
+ system(EMACS_PATH, '-e', '(save-buffers-kill-terminal)');
system(
NOTIF_PATH,
'-u',
diff --git a/.local/bin/editorcmd b/.local/bin/editorcmd
index d7dd47b..f79baea 100755
--- a/.local/bin/editorcmd
+++ b/.local/bin/editorcmd
@@ -1,3 +1,3 @@
#!/usr/local/bin/dash
-exec emacsclient -t -a /usr/local/bin/nvim "$@"
+exec bsdsetsid emacsclient -c -a /usr/local/bin/nvim "$@"
diff --git a/.local/bin/idea b/.local/bin/idea
index d79983e..7fdd039 100755
--- a/.local/bin/idea
+++ b/.local/bin/idea
@@ -6,8 +6,7 @@ nl='
'
date=$(date)
-gsed -i '15i '"\\${nl}\\${nl}"'## '"\\${date}"' '"\\${nl}\\${nl}\\${1}" "$HOME"/dev/web/jozan_gemini/thoughts.gmi
-
+sed -i '' -e '15i '"\\${nl}\\${nl}"'## '"\\${date}"' '"\\${nl}\\${nl}\\${1}" "$HOME"/dev/web/jozan_gemini/thoughts.gmi
git -C "$HOME"/dev/web/jozan_gemini add -u
git -C "$HOME"/dev/web/jozan_gemini commit -m "Thought: ${date}"
git -C "$HOME"/dev/web/jozan_gemini push
diff --git a/.local/bin/startemacs b/.local/bin/startemacs
new file mode 100755
index 0000000..4a61641
--- /dev/null
+++ b/.local/bin/startemacs
@@ -0,0 +1,6 @@
+#!/bin/sh
+
+
+if ! pgrep emacs; then
+ bsdsetsid emacs --daemon >/dev/null 2>&1
+fi
diff --git a/.local/bin/stopemacs b/.local/bin/stopemacs
new file mode 100755
index 0000000..d661941
--- /dev/null
+++ b/.local/bin/stopemacs
@@ -0,0 +1,3 @@
+#!/bin/sh
+
+emacsclient -e '(save-buffers-kill-terminal)'