diff options
| author | Enrico Maria De Angelis <enricomaria.dean6elis@gmail.com> | 2026-02-28 08:51:16 +0100 |
|---|---|---|
| committer | Enrico Maria De Angelis <enricomaria.dean6elis@gmail.com> | 2026-02-28 09:05:11 +0100 |
| commit | 39fd70308c3aef5402abe7152ade76ff7bb331bb (patch) | |
| tree | d4f1e202d97d75f55a8980ffc3989379ecf28ffa /src/Xmobar | |
| parent | 50ed21ea8cde2402d8ed139eb0c63f23826f1b1a (diff) | |
| download | xmobar-39fd70308c3aef5402abe7152ade76ff7bb331bb.tar.gz xmobar-39fd70308c3aef5402abe7152ade76ff7bb331bb.tar.bz2 | |
Remove deprecated ArchUpdates plugin
Users should have long switched to PacmanUpdates, as communicated in #723.
Furthemore, we had forgotten to list PacmanUpdates in the plugins wrappable in Runnable. Fixed now.
Diffstat (limited to 'src/Xmobar')
| -rw-r--r-- | src/Xmobar/Plugins/ArchUpdates.hs | 36 | ||||
| -rw-r--r-- | src/Xmobar/Run/Types.hs | 4 |
2 files changed, 2 insertions, 38 deletions
diff --git a/src/Xmobar/Plugins/ArchUpdates.hs b/src/Xmobar/Plugins/ArchUpdates.hs deleted file mode 100644 index 0dcfd04..0000000 --- a/src/Xmobar/Plugins/ArchUpdates.hs +++ /dev/null @@ -1,36 +0,0 @@ -{-# LANGUAGE CPP #-} - ------------------------------------------------------------------------------ - ------------------------------------------------------------------------------ - -{- | -Module : Plugins.Monitors.ArchUpdates -Copyright : (c) 2024 Enrico Maria De Angelis -License : BSD-style (see LICENSE) - -Maintainer : Enrico Maria De Angelis <enricomaria.dean6elis@gmail.com> -Stability : unstable -Portability : unportable - -An ArchLinux updates availablility plugin for Xmobar --} -module Xmobar.Plugins.ArchUpdates (ArchUpdates (..)) where - -import Xmobar.Plugins.Command (Rate) -import Xmobar.Plugins.PacmanUpdates (PacmanUpdates (PacmanUpdates)) -import Xmobar.Run.Exec - -data ArchUpdates = ArchUpdates (String, String, String) Rate - deriving (Read, Show) - -intoPacmanUpdates :: ArchUpdates -> PacmanUpdates -intoPacmanUpdates (ArchUpdates (z, o, m) r) = - PacmanUpdates (z <> deprecation, o, m, "pacman: Unknown cause of failure.") r - where - deprecation = " <fc=#ff0000>(<action=`xdg-open https://codeberg.org/xmobar/xmobar/pulls/723`>deprecated plugin, click here</action>)</fc>" - -instance Exec ArchUpdates where - alias = const "arch" - rate = rate . intoPacmanUpdates - run = run . intoPacmanUpdates diff --git a/src/Xmobar/Run/Types.hs b/src/Xmobar/Run/Types.hs index bb573c8..6b51b2d 100644 --- a/src/Xmobar/Run/Types.hs +++ b/src/Xmobar/Run/Types.hs @@ -19,7 +19,7 @@ module Xmobar.Run.Types(runnableTypes) where import {-# SOURCE #-} Xmobar.Run.Runnable() -import Xmobar.Plugins.ArchUpdates +import Xmobar.Plugins.PacmanUpdates import Xmobar.Plugins.Command import Xmobar.Plugins.Monitors import Xmobar.Plugins.Date @@ -60,7 +60,7 @@ infixr :*: runnableTypes :: Command :*: Monitors :*: Date :*: PipeReader :*: BufferedPipeReader :*: CommandReader :*: StdinReader :*: XMonadLog :*: EWMH :*: Kbd :*: Locks :*: NotmuchMail :*: - ArchUpdates :*: + PacmanUpdates :*: #ifdef INOTIFY Mail :*: MBox :*: #endif |
