diff options
Diffstat (limited to '')
-rw-r--r-- | .config/emacs/init.el | 2 | ||||
-rwxr-xr-x | .local/bin/kb | 8 |
2 files changed, 5 insertions, 5 deletions
diff --git a/.config/emacs/init.el b/.config/emacs/init.el index 6eee7ed..c14f2e8 100644 --- a/.config/emacs/init.el +++ b/.config/emacs/init.el @@ -41,7 +41,7 @@ '(jdee-db-spec-breakpoint-face-colors (cons "#1c1f2b" "#676E95")) '(objed-cursor-color "#ff5370") '(package-selected-packages - '(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 lsp-mode lsp-treemacs lsp-ui ccls yasnippet yasnippet-classic-snippets yasnippet-snippets auto-yasnippet el-autoyas helm helm-xref helm-lsp helm-etags-plus helm-fuzzy helm-themes helm-make helm-projectile projectile company company-box which-key dap-mode 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 gruvbox-theme 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)) + '(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 lsp-mode lsp-treemacs lsp-ui ccls yasnippet yasnippet-classic-snippets yasnippet-snippets auto-yasnippet el-autoyas helm helm-xref helm-lsp helm-etags-plus helm-fuzzy helm-themes helm-make helm-projectile projectile company company-box which-key dap-mode 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 gruvbox-theme 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/.local/bin/kb b/.local/bin/kb index dfa3e5c..f2ea9f4 100755 --- a/.local/bin/kb +++ b/.local/bin/kb @@ -3,9 +3,9 @@ xset r rate 200 150 setxkbmap -layout us,fr -option grp:alt_shift_toggle setxkbmap -option caps:none -if ! xrandr | grep 'HDMI-1 connected' >/dev/null 2>&1; then - if ! xrandr | grep 'VGA-1 connected' >/dev/null 2>&1; then - echo +screens=$(xrandr | grep ' connected' | awk '{print $1}') +if ! echo "$screens" | grep 'HDMI-1' >/dev/null 2>&1; then + if ! echo "$screens" | grep 'VGA-1' >/dev/null 2>&1; then setxkbmap -option ctrl:swapcaps xmodmap -e 'keycode 9 = Tab' xmodmap -e 'keycode 23 = Escape' @@ -18,7 +18,7 @@ else xmodmap -e 'keycode 66 = Escape' fi mouse=$(xinput list | grep 'HARPOON' | awk '{print $10}' | sed 's/id=//') -xinput --set-prop $mouse 'libinput Accel Speed' -0.40 +xinput --set-prop "$mouse" 'libinput Accel Speed' -0.40 notify-send -u low -t 2000 'kb' ' Keyboard set' # vim: filetype=sh |