add app launcher and fullscreen

This commit is contained in:
Sakooooo 2024-02-08 09:41:34 +04:00
parent be0dd7387e
commit a76167e432
Signed by: sako
GPG key ID: 3FD715D87D7725E0

View file

@ -313,6 +313,8 @@ Cause emacs overlay lol
) )
;; better commands ;; better commands
(use-package counsel (use-package counsel
:custon
(counsel-linux-app-format-function #'counsel-linux-app-format-function-name-only)
) )
;; autocompletion on commands (?) ;; autocompletion on commands (?)
(use-package ivy (use-package ivy
@ -1320,6 +1322,7 @@ RELEASE ME
:config :config
;; background ;; background
;; todo turn this info a function
(add-hook 'exwm-init-hook (lambda () (add-hook 'exwm-init-hook (lambda ()
;; background ;; background
(call-process-shell-command "feh --bg-fill ~/background.png" nil 0) (call-process-shell-command "feh --bg-fill ~/background.png" nil 0)
@ -1381,6 +1384,9 @@ RELEASE ME
;; Ctrl+Q will enable the next key to be sent directly ;; Ctrl+Q will enable the next key to be sent directly
(define-key exwm-mode-map [?\C-q] 'exwm-input-send-next-key) (define-key exwm-mode-map [?\C-q] 'exwm-input-send-next-key)
;; app launcher and fullscreen
(exwm-input-set-key (kbd "s-SPC") 'counsel-linux-app)
(exwm-input-set-key (kbd "s-f") 'exwm-layout-toggle-fullscreen)
;; Set up global key bindings. These always work, no matter the input state! ;; Set up global key bindings. These always work, no matter the input state!
;; Keep in mind that changing this list after EXWM initializes has no effect. ;; Keep in mind that changing this list after EXWM initializes has no effect.
(setq exwm-input-global-keys (setq exwm-input-global-keys