forked from FG42/FG42
Make the exwm modeline minibuffer aware
This commit is contained in:
parent
92209e9e33
commit
f113baa3e7
24
flake.lock
24
flake.lock
|
@ -85,11 +85,11 @@
|
||||||
"systems": "systems"
|
"systems": "systems"
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1705309234,
|
"lastModified": 1710146030,
|
||||||
"narHash": "sha256-uNRRNRKmJyCRC/8y1RqBkqWBLM034y4qN7EprSdmgyA=",
|
"narHash": "sha256-SZ5L6eA7HJ/nmkzGG7/ISclqe6oZdOZTNoesiInkXPQ=",
|
||||||
"owner": "numtide",
|
"owner": "numtide",
|
||||||
"repo": "flake-utils",
|
"repo": "flake-utils",
|
||||||
"rev": "1ef2e671c3b0c19053962c07dbda38332dcebf26",
|
"rev": "b1d9ab70662946ef0850d488da1c9019f3a9752a",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
@ -164,11 +164,11 @@
|
||||||
},
|
},
|
||||||
"nixpkgs-stable": {
|
"nixpkgs-stable": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1707650010,
|
"lastModified": 1715106579,
|
||||||
"narHash": "sha256-dOhphIA4MGrH4ElNCy/OlwmN24MsnEqFjRR6+RY7jZw=",
|
"narHash": "sha256-gZMgKEGiK6YrwGBiccZ1gemiUwjsZ1Zv49KYOgmX2fY=",
|
||||||
"owner": "NixOS",
|
"owner": "NixOS",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"rev": "809cca784b9f72a5ad4b991e0e7bcf8890f9c3a6",
|
"rev": "8be0d8a1ed4f96d99b09aa616e2afd47acc3da89",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
@ -219,16 +219,16 @@
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1714648678,
|
"lastModified": 1715464233,
|
||||||
"narHash": "sha256-CxLSUYRk2quey0skgxa+v8mVE+pGSSPcxtK0uFq6YkQ=",
|
"narHash": "sha256-VPhsO6yVPq1h0pI+tBnH+/JCDWUZVaFrPy782dOmu2c=",
|
||||||
"ref": "refs/tags/v0.1.11",
|
"ref": "refs/tags/v0.3.0",
|
||||||
"rev": "b4e667a73a0de7d83f78910d6fa3acc3b3044675",
|
"rev": "5c40c1a5783b0904fb106bd6cc70671e7b1e7320",
|
||||||
"revCount": 53,
|
"revCount": 57,
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://devheroes.codes/lxsameer/noether"
|
"url": "https://devheroes.codes/lxsameer/noether"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
"ref": "refs/tags/v0.1.11",
|
"ref": "refs/tags/v0.3.0",
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://devheroes.codes/lxsameer/noether"
|
"url": "https://devheroes.codes/lxsameer/noether"
|
||||||
}
|
}
|
||||||
|
|
|
@ -18,7 +18,7 @@
|
||||||
|
|
||||||
inputs.nixpkgs.url = "github:NixOS/nixpkgs/442d407992384ed9c0e6d352de75b69079904e4e";
|
inputs.nixpkgs.url = "github:NixOS/nixpkgs/442d407992384ed9c0e6d352de75b69079904e4e";
|
||||||
inputs.noether = {
|
inputs.noether = {
|
||||||
url = "git+https://devheroes.codes/lxsameer/noether?ref=refs/tags/v0.1.11";
|
url = "git+https://devheroes.codes/lxsameer/noether?ref=refs/tags/v0.3.0";
|
||||||
inputs.nixpkgs.follows = "nixpkgs";
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -48,6 +48,7 @@
|
||||||
:binding (kbd "C-c 0")
|
:binding (kbd "C-c 0")
|
||||||
:buffer "*modeline*"
|
:buffer "*modeline*"
|
||||||
:visible? t
|
:visible? t
|
||||||
|
:separator " "
|
||||||
:timeout 0
|
:timeout 0
|
||||||
:on-parent-resize #'fg42/adjust-modeline
|
:on-parent-resize #'fg42/adjust-modeline
|
||||||
:frame
|
:frame
|
||||||
|
@ -115,6 +116,34 @@ Appears on the center of the current window."
|
||||||
(date-unit :label (format "%s " (nerd-icons-codicon "nf-cod-calendar")))
|
(date-unit :label (format "%s " (nerd-icons-codicon "nf-cod-calendar")))
|
||||||
(time-unit :label (format " %s " (nerd-icons-mdicon "nf-md-clock_time_three")))))
|
(time-unit :label (format " %s " (nerd-icons-mdicon "nf-md-clock_time_three")))))
|
||||||
|
|
||||||
|
(noether-defview fg42/exwm-modeline
|
||||||
|
"A super simple bar containing the line number and column number that
|
||||||
|
Appears on the center of the current window."
|
||||||
|
:managed? t
|
||||||
|
:buffer "*exwm-status*"
|
||||||
|
:binding (kbd "C-c 0")
|
||||||
|
:separator " "
|
||||||
|
:visible? t
|
||||||
|
:sticky t
|
||||||
|
:hide-when-minibuffer? t
|
||||||
|
:timeout 0
|
||||||
|
:on-parent-resize #'fg42/adjust-modeline
|
||||||
|
:frame
|
||||||
|
(list
|
||||||
|
:poshandler #'fg42/--bottom-right-padded
|
||||||
|
:border-width 0
|
||||||
|
:font (format "%s %s" (config-get font-name) (config-get font-size))
|
||||||
|
:border-color "#bd93f9")
|
||||||
|
|
||||||
|
:units
|
||||||
|
(list
|
||||||
|
(buffer-name-unit
|
||||||
|
:label (format "%s " (nerd-icons-codicon "nf-cod-layers"))
|
||||||
|
:len 30)
|
||||||
|
(fg42/exwm-input-mode-unit :label (format "%s " (nerd-icons-faicon "nf-fa-linux")))
|
||||||
|
(date-unit :label (format "%s " (nerd-icons-codicon "nf-cod-calendar")))
|
||||||
|
(time-unit :label (format " %s " (nerd-icons-mdicon "nf-md-clock_time_three")))))
|
||||||
|
|
||||||
|
|
||||||
(provide 'fg42/modeline/views)
|
(provide 'fg42/modeline/views)
|
||||||
;;; views.el ends here
|
;;; views.el ends here
|
||||||
|
|
|
@ -82,7 +82,8 @@ to Emacs modeline."
|
||||||
|
|
||||||
(when-wm
|
(when-wm
|
||||||
;; TODO: Fix `fg42/minimal-exwm' to pop up on every workspace
|
;; TODO: Fix `fg42/minimal-exwm' to pop up on every workspace
|
||||||
(setq-default noether-views nil)))
|
(setq-default noether-views (list fg42/exwm-modeline))))
|
||||||
|
|
||||||
|
|
||||||
(provide 'fg42/noether)
|
(provide 'fg42/noether)
|
||||||
;;; noether.el ends here
|
;;; noether.el ends here
|
||||||
|
|
Loading…
Reference in New Issue