Merge pull request #78 from Sakooooo/refactor

Refactor configuration
This commit is contained in:
Sako 2024-07-30 03:25:13 +03:00 committed by GitHub
commit 6405e99586
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 8 additions and 8 deletions

View file

@ -1218,8 +1218,8 @@ I'm scared
(when (eq system-type 'gnu/linux)
(use-package exwm
:config
(set-frame-parameter nil 'alpha '(85 . 85))
(add-to-list 'default-frame-alist '(alpha . (85 . 85)))
(set-frame-parameter nil 'alpha '(90 . 90))
(add-to-list 'default-frame-alist '(alpha . (90 . 90)))
(defun sakomacs/exwm-init-hook ()
;; background
@ -1295,11 +1295,7 @@ I'm scared
(string-prefix-p "sun-awt-X11-" exwm-instance-name)
(string= "gimp" exwm-instance-name))
(exwm-workspace-rename-buffer exwm-title))))
;; floating
(add-hook 'exwm-floating-setup-hook
(lambda ()
(toggle-frame-tab-bar) ;; No tab bars on floating frames
(exwm-layout-hide-mode-line))
;; always use these keys in emacs
(setq exwm-input-prefix-keys
'(?\C-x
@ -1326,6 +1322,10 @@ I'm scared
(exwm-input-set-key (kbd "s-SPC") 'app-launcher-run-app)
(exwm-input-set-key (kbd "s-f") 'exwm-layout-toggle-fullscreen)
(exwm-input-set-key (kbd "s-<return>") 'vterm)
;; kill apps
(exwm-input-set-key (kbd "s-q") #'kill-current-buffer)
;; 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.
(setq exwm-input-global-keys

View file

@ -1,6 +1,6 @@
# load stuff
{
description = "horrible dotfiles for amazing distro";
description = "Sako's NixOS Configuration";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-24.05"; # nixpkgs stable branch