mirror of
https://github.com/stumpwm/stumpwm-contrib.git
synced 2026-09-10 07:26:25 -04:00
Fix modules to handle being in separate packages.
This commit is contained in:
parent
3a8a93ce1a
commit
1d479ef3c5
|
|
@ -3,3 +3,8 @@
|
|||
(defpackage #:ttf-fonts
|
||||
(:use #:cl #:stumpwm))
|
||||
|
||||
(in-package #:ttf-fonts)
|
||||
|
||||
(import '(stumpwm::font-exists-p stumpwm::open-font stumpwm::close-font
|
||||
stumpwm::font-ascent stumpwm::font-descent stumpwm::text-line-width
|
||||
stumpwm::draw-image-glyphs stumpwm::font-height))
|
||||
|
|
|
|||
|
|
@ -3,3 +3,10 @@
|
|||
(defpackage #:windowtags
|
||||
(:use #:cl :stumpwm))
|
||||
|
||||
(in-package #:windowtags)
|
||||
|
||||
(import '(
|
||||
; string wrappers for tag data storage
|
||||
stumpwm::string-to-utf8
|
||||
stumpwm::utf8-to-string
|
||||
))
|
||||
|
|
|
|||
|
|
@ -11,6 +11,8 @@
|
|||
;; This file is part of stumpwm.
|
||||
;;
|
||||
|
||||
(export '(window-tags clear-tags))
|
||||
|
||||
; String parsing for commands
|
||||
|
||||
(defun string-split-by-spaces (x)
|
||||
|
|
@ -106,19 +108,6 @@
|
|||
|
||||
; Window manipulations using tags
|
||||
|
||||
; General function
|
||||
|
||||
(defun move-windows-to-group (windows &optional (arggroup nil))
|
||||
"Move all windows from the list to the group"
|
||||
(let*
|
||||
((group
|
||||
(if (stringp arggroup)
|
||||
(or
|
||||
(find-group (current-screen) arggroup)
|
||||
(add-group (current-screen) arggroup))
|
||||
(or arggroup (current-group)))))
|
||||
(mapcar (lambda (w) (move-window-to-group w group)) windows)))
|
||||
|
||||
; And convenient instances
|
||||
|
||||
(defcommand pull-tag (argtag) ((:rest "Tag(s) to pull: "))
|
||||
|
|
|
|||
Loading…
Reference in a new issue