Saravanan666/pypi-org huggingface dataset:
Package: powerline-cpu-temp
powerline-cpu-temppowerline-cpu-tempis a Powerline segment to show CPU temperature.InstallationUsing pip:pip3 install powerline-cpu-tempOr clone this repository and run:python3 setup.py installUsageFirst, it is required to addcpu_tempandcpu_temp_gradienthighlight groups in the colorscheme configurations:
(You can easily customize the color scheme by changing the highlight group settings.){"cpu_temp":{"fg":"gray8","bg":"gray0","attrs":[]},"cpu_temp_gradient":{"fg":"green_yellow_orange_red","bg":"gray0","attrs":[]}}Then add the following settings to the Powerline configuration file:{"function":"powerline_cpu_temp.cpu_temp"}You can specify the arguments:{"function":"powerline_cpu_temp.cpu_temp","args":{"format":"{value:.0f}°C","threshold_good":50,"threshold_bad":90}}Available arguments:format(string): format string, receivesvalueas an argumentthreshold_good(float): threshold for gradient level 0:
temperature below this value will have this gradient level.threshold_bad(float): threshold for gradient level 100:
temperature above this value will have this gradient level.
Temperature betweenthreshold_goodandthreshold_badreceive gradient level that indicates relative position in this interval:
(100 * (cur-good) / (bad-good)).Dependenciespsutil
Package: powerline_date
Powerline Date Segment=======================This just has the minor feature of allowing time zones.Powerline date segment is a drop in replacement for the regular date segment.Usage:---------------------------```json{"function": "powerline_date.date","name": "sydney_time","args": {"format": "%H:%M %Z","istime": true,"timezone": "Australia/Sydney"}},{"function": "powerline_date.date","name": "utc_time","args": {"format": "%H:%M %Z","istime": true,"timezone": "UTC"}},{"function": "powerline_date.date","name": "edt_time","args": {"format": "%H:%M %Z","istime": true,"timezone": "America/New_York"}},```
Package: powerline-dice
POWERLINE DICEA toyPowerlinesegment. This segment shows a result of dice combination.ByMiguel de Dios Matias.InstallationUsing pippip install powerline-diceConfigurationYou can activate the Powerline Slotmachine segment by adding it to your segment configuration,
for example in.config/powerline/themes/shell/default.json:{"function":"powerline_dice.roll","priority":90}By default shows a roll of d6 (dice of six faces).ArgumentsdiceCombination (string): The combination of dices indice notation formatorwikipedia: Dice notation.Default: "d6"preContent (string): The string to show before the result.Default: ""postContent (string): The string to show after the result.Default: "🎲"facesDice list(string) or None: The faces of dice as list of string (can be emojis).Default: Nonecritical int or list(int) or None: The minimum or exact values to critical hit, the background change to critical success.Default: Nonefumble int or list(int) or None: The maximum or exact values to critical fumble, the background change to critical failture.Default: NoneExamplesRolls two dices of twenty faces and get critical hit with 40 and critical fumble with 1.{"function":"powerline_dice.roll","priority":30,"args":{"diceCombination":"2d20","critical":30,"fumble":15}},Flip a coin with the tail 🙂 and head ️☹️.{"function":"powerline_dice.roll","priority":30,"args":{"diceCombination":"d2","facesDice":["🙂","☹️"],"postContent":""}},ThanksPython Dice: for great library to parse dice combination.LicenseLicensed underthe GPL3 License.
Package: powerline-ifinfo-segment
powerline-ifinfo-segmentA Powerline Segment to Display Network Interface InfosInstallationpipinstallpowerline-ifinfo-segmentConfigurationDefine colorschemes to your liking# colorschemes/default.json
{
  "groups": {
    "interface_up":      { "fg": "gray8", "bg": "gray0", "attrs": [] },
    "default_interface": { "fg": "gray8", "bg": "gray0", "attrs": [] },
    ...
}Indicating if a certain interface is up# themes/tmux/default.json
{
  "segments": {
    "right": [
      {
        "function": "powerline_ifinfo.ifinfo.interface_up",
        "args": {
          "interface": "utun3",
          "interface_up": "VPN Up",
          "interface_down": null
        }
      },
      ...
    ]
  }
}Show the current default interface# themes/tmux/default.json
{
  "segments": {
    "right": [
      {
        "function": "powerline_ifinfo.ifinfo.default_interface",
        "args": {
          "format": "{device}"
        }
      },
      ...
    ]
  }
}
Package: powerline-k8s
A customPowerlinesegment for displaying the current Kubernetes context and namespace.InstallationUsing pip$ pip install powerline-k8sConfigurationColorschemeAdd the following config items to your Powerline colorscheme config file (usually located at~/.config/powerline/colorschemes/),
seePowerline Colorschemesfor more info.{"k8s":{"fg":"solarized:blue","bg":"solarized:base02","attrs":[]},"k8s_namespace":{"fg":"solarized:red","bg":"solarized:base02","attrs":[]},"k8s_context":{"fg":"solarized:blue","bg":"solarized:base02","attrs":[]},"k8s:divider":{"fg":"gray4","bg":"solarized:base02","attrs":[]}}SegmentAdd the following config item to your Powerline segments config file,
seePowerline Segment referencefor more info.{"function":"powerline_k8s.k8s","priority":30}If adding the segment to the shell, edit~/.config/powerline/themes/shell/default.json.If adding the segment to the tmux status line, edit~/.config/powerline/themes/tmux/default.json.Toggle visibilityToggle entire segment or specific section's visibility with the following environment variables:POWERLINE_K8S_SHOWPOWERLINE_K8S_SHOW_NSNote: Full segment visibility takes precedence over namespace section visibility.# toggle segment visibility$POWERLINE_K8S_SHOW=0powerline-daemon--replace# hide powerline-k8s segment$POWERLINE_K8S_SHOW=1powerline-daemon--replace# show powerline-k8s segment (default)# toggle namespace section visibility$POWERLINE_K8S_SHOW_NS=0powerline-daemon--replace# hide namespace section$POWERLINE_K8S_SHOW_NS=1powerline-daemon--replace# show namespace section (default)Alternatively you can add the following function to your shell for easier toggling:toggle_powerline_k8s(){case"$1"in# pass the '-ns' flag to toggle namespace visibility"-ns"|"--namespace")if[["${POWERLINE_K8S_SHOW_NS:-1}"-eq1]];thenexportPOWERLINE_K8S_SHOW_NS=0elseexportPOWERLINE_K8S_SHOW_NS=1fi;;*)# toggle segment visibilityif[["${POWERLINE_K8S_SHOW:-1}"-eq1]];thenexportPOWERLINE_K8S_SHOW=0elseexportPOWERLINE_K8S_SHOW=1fi;;esac}DemoStats
Package: powerline-k8sstatus
Powerline K8S StatusAPowerlinesegment for showing the status of current Kubernetes context.ByimjoseangelIt will show any or all of:context namenamespaceusernamecontrolplane versionYou can also:Toggle on or off the powerline-k8sstatus segment using an environment variable which can easily be mapped to a function in your ~/.profile file.Define certain contexts or namespaces to be colored differently for alerting purposes. For instance, you can have your production context or kube-system namespace showing up in bright red or solarized yellow respectively.RequirementsThe K8Sstatus segment requireskubectl. It can be installed following the instructionshere.InstallationUsing pippip install powerline-k8sstatusConfigurationThe K8Sstatus segment uses a couple of custom highlight groups. You'll need to define those groups in your colorscheme,
for example in.config/powerline/colorschemes/default.json:{"groups":{"k8sstatus":{"fg":"brightestorange","bg":"gray2","attrs":[]},"k8sstatus:alert":{"fg":"white","bg":"solarized:red","attrs":["bold"]},"k8sstatus_namespace":{"fg":"gray10","bg":"darkestblue","attrs":[]},"k8sstatus_namespace:alert":{"fg":"darkestred","bg":"solarized:yellow","attrs":[]},"k8sstatus_user":{"fg":"white","bg":"green","attrs":[]},"k8sstatus_version":{"fg":"white","bg":"mediumorange","attrs":[]},"k8sstatus:divider":{"fg":"white","bg":"mediumorange","attrs":[]}}}Then you can activate the K8Sstatus segment by adding it to your segment configuration,
for example in.config/powerline/themes/shell/default.json:{"function":"powerline_k8sstatus.k8sstatus","priority":50,"args":{"show_namespace":true,"show_user":true,"show_version":true,"context_alert":["minikube","production"],"namespace_alert":["kube-system","production"]}}Context names added to thecontext_alertarguments will be outlined in the segment by a different colour.Namespace names added to thenamespace_alertarguments will be outlined in the segment by a different colour. Note thatdefaultnamespace won't be shown and as result not colorized.Reload powerline runningpowerline-daemon --replaceto load the new settings.By defaultpowerline-k8sstatuswill display the Kubernetes status segment context. It can be disabled temporarily if the environment variablePOWERLINE_K8SSTATUSis set to0. One way to do this would be with a simple function, such as putting thisk8sstatusfunction in your~/.bash_profile:k8sstatus(){if[[$POWERLINE_K8SSTATUS="0"]];thenunsetPOWERLINE_K8SSTATUSelseexportPOWERLINE_K8SSTATUS=0fi}Toggle showing your Kubernetes segment in powerline by just typingk8sstatusin your terminalAuthorsOriginally created by@imjoseangelLicenseLicensed underthe MIT License.
Package: powerline-keebs
powerline-keebsA customPowerlinesegment for displaying currently connected keyboards.Keyboard detection and parsing based off ofkbdetector.InstallationUsing pip$ pip install powerline-keebsConfigurationColorschemeAdd the following config items to your Powerline colorscheme config file (usually located at~/.config/powerline/colorschemes/),
seePowerline Colorschemesfor more info.{"keebs":{"fg":"solarized:base3","bg":"solarized:base01","attrs":["bold"]},"keebs:divider":{"fg":"gray4","bg":"solarized:base02","attrs":[]}}SegmentAdd the following config item to your Powerline segments config file,
seePowerline Segment referencefor more info.{"function":"powerline_keebs.keebs","priority":30,"args":{"no_dongles":true,"exclude_list":"comma,separated,keyboard,list"}}If adding the segment to the shell, edit~/.config/powerline/themes/shell/default.json.If adding the segment to the tmux status line, edit~/.config/powerline/themes/tmux/default.json.Configuration itemsconfig_itemdescriptionvalueno_donglesexclude keyboard dongles and/or receiverstrueorfalse(defaults to false)exclude_listexclude pre-defined keyboard(s) from the resultcomma-separated stringToggle visibilityToggle entire segment or specific section's visibility with the following environment variables:POWERLINE_KEEBS_SHOW# toggle segment visibility$POWERLINE_KEEBS_SHOW=0powerline-daemon--replace# hide powerline-keebs segment$POWERLINE_KEEBS_SHOW=1powerline-daemon--replace# show powerline-keebs segment (default)Alternatively you can add the following function to your shell for easier toggling:toggle_powerline_keebs(){case"$1"in# toggle segment visibilityif[["${POWERLINE_KEEBS_SHOW:-1}"-eq1]];thenexportPOWERLINE_KEEBS_SHOW=0elseexportPOWERLINE_KEEBS_SHOW=1fi;;esac}Stats
Package: powerline-kubernetes
Powerline KubernetesAPowerlinesegment to show the current Kubernetes context.This segment shows the Kubernetes context together with a nice looking helm. Please feel free to propose more features and give me ideas on how to improve it.Update:Now completely compatible with Kubernetes API 9.0.## RequirementsThe Kubernetes segment requires kubectl and officialkubernetes Python API.## InstallationInstalling the Kubernetes segment can be done withpip:$ pip install powerline-kubernetesThe Kubernetes segment uses a couple of custom highlight groups. You'll need to define those groups in your colorscheme, for example in.config/powerline/colorschemes/default.json:{"groups":{"kubernetes_cluster":{"fg":"gray10","bg":"darkestblue","attrs":[]},"kubernetes_cluster:alert":{"fg":"gray10","bg":"darkestred","attrs":[]},"kubernetes_namespace":{"fg":"gray10","bg":"darkestblue","attrs":[]},"kubernetes_namespace:alert":{"fg":"gray10","bg":"darkred","attrs":[]},"kubernetes:divider":{"fg":"gray4","bg":"darkestblue","attrs":[]},}}Then you can activate the Kubernetes segment by adding it to your segment configuration, for example in.config/powerline/themes/shell/default.json:{"function":"powerline_kubernetes.kubernetes","priority":30,"args":{"show_kube_logo":true,// set to false to omit the Kube logo"show_cluster":true,// show cluster name"show_namespace":true,// show namespace name"show_default_namespace":false,// do not show namespace name if it's "default""alerts":["live",// show line in different color when namespace matches"cluster:live"// show line in different color when cluster name and namespace match]}}By default the segment will look for the Kubernetes config under~/.kube/config.## LicenseLicensed under theMIT License.AuthorsCreated byso0k. Code contributions by:bokysanInspired bypowerline-docker.
Package: powerline-notmuch
Notmuch powerline===========Easily query your [notmuch](https://notmuchmail.org/) database from [powerline](https://github.com/powerline/powerline).ISC licenced, see the LICENCE file.Examples:---------The most basic example would be:{"function": "powerline_notmuch.notmuch","args": {"searches": [{"search": "tag:unread and not tag:list"},]}}results in✉·2A bit more, playing around with before and after:{"function": "powerline_notmuch.notmuch","before": "[","after": "]","args": {"divider": "] [","searches": [{"search": "tag:unread and not tag:list"},{"icon": "", "search": "tag:unread and tag:list"},{"icon": "BUGS", "search": "tag:unread and tag:bugs"}]}}results in[✉ 2] [ 106] [BUGS 0]
Package: powerline-podman
A customPowerlinesegment for displaying the current state of Podman containers. Inspired bypowerline-docker.This segment also requires the Podman REST API service to be running:podman system service -t 0 &SeePodman docsfor more details.InstallationUsing pip$ pip install powerline-podmanConfigurationColorschemeAdd the following config items to your Powerline colorscheme config file (usually located at~/.config/powerline/colorschemes/),
seePowerline Colorschemesfor more info.{"podman":{"fg":"gray8","bg":"darkestpurple","attrs":[]},"podman_created":{"fg":"yellow","bg":"darkestpurple","attrs":[]},"podman_exited":{"fg":"brightred","bg":"darkestpurple","attrs":[]},"podman_paused":{"fg":"brightestorange","bg":"darkestpurple","attrs":[]},"podman_running":{"fg":"green","bg":"darkestpurple","attrs":[]},"podman_unknown":{"fg":"gray10","bg":"darkestpurple","attrs":[]},"podman:divider":{"fg":"gray4","bg":"darkestpurple","attrs":[]}}SegmentAdd the following config item to your Powerline segments config file,
seePowerline Segment referencefor more info.The segment tries to connect to the libpod service atunix:///run/user/1000/podman.sock, which is where it lives on most Unix systems. You can change the URI with theuriargument.Additionally, you can hide containers with specific states e.g. don't showexitedcontainers by adding it to theignore_statesargument list.
The valid states arecreated,exited,paused,running, andunknown.{"function":"powerline_podman.podman","priority":30,"args":{"uri":"unix:///run/user/1000/podman.sock","ignore_states":["exited","paused"]}}If adding the segment to the shell, edit~/.config/powerline/themes/shell/default.json.If adding the segment to the tmux status line, edit~/.config/powerline/themes/tmux/default.json.
Package: powerline-pulseaudio-volume-segment
Powerline PulseAudio Volume SegmentPowerline PulseAudio Volume Segment…Free software: MIT licenseDocumentation:https://powerline-pulseaudio-volume-segment.readthedocs.io.History0.1.0 (2021-04-12)First release on PyPI.0.1.1 (2021-04-12)Fix colorscheme.
Package: powerline-slotmachine
POWERLINE SLOTMACHINEA toyPowerlinesegment. This segment shows a slotmachine.ByMiguel de Dios Matias.InstallationUsing pippip install powerline-slotmachineConfigurationYou can activate the Powerline Slotmachine segment by adding it to your segment configuration,
for example in.config/powerline/themes/shell/default.json:{"function":"powerline_slotmachine.slotmachine","priority":90}But the Powerline Slotmachine store the last combination and money amount in<home>/.config/powerline_slotmachine.json.LicenseLicensed underthe GPL3 License.
Package: powerline-status
Author:Kim Silkebækken (kim.silkebaekken+vim@gmail.com)Source:https://github.com/powerline/powerlineVersion:betaPowerline is a statusline plugin for vim, and provides statuslines and
prompts for several other applications, including zsh, bash, fish, tmux,
IPython, Awesome, i3 and Qtile.Support forum(powerline-support@googlegroups.com)Development discussion(powerline-dev@googlegroups.com)FeaturesExtensible and feature rich, written in Python.Powerline was
completely rewritten in Python to get rid of as much vimscript as
possible. This has allowed much better extensibility, leaner and better
config files, and a structured, object-oriented codebase with no mandatory
third-party dependencies other than a Python interpreter.Stable and testable code base.Using Python has allowed unit testing
of all the project code. The code is tested to work in Python 2.6+ and
Python 3.Support for prompts and statuslines in many applications.Originally
created exclusively for vim statuslines, the project has evolved to
provide statuslines in tmux and several WMs, and prompts for shells like
bash/zsh and other applications. It’s simple to write renderers for any
other applications that Powerline doesn’t yet support.Configuration and colorschemes written in JSON.JSON is
a standardized, simple and easy to use file format that allows for easy
user configuration across all of Powerline’s supported applications.Fast and lightweight, with daemon support for even better performance.Although the code base spans a couple of thousand lines of code with no
goal of “less than X lines of code”, the main focus is on good performance
and as little code as possible while still providing a rich set of
features. The new daemon also ensures that only one Python instance is
launched for prompts and statuslines, which provides excellent
performance.But I hate Python / I don’t need shell prompts / this is just too much
hassle for me / what happened to the original vim-powerline project / …You should check out some of the Powerline derivatives. The most lightweight
and feature-rich alternative is currently Bailey Ling’svim-airlineproject.Consult thedocumentationfor more information and
installation instructions.Check outpowerline-fontsfor
pre-patched versions of popular, open source coding fonts.ScreenshotsVim statuslineMode-dependent highlightingAutomatic truncation of segments in small windowsThe font in the screenshots isPragmata Proby Fabrizio Schiavi.
Package: powerline-swissarmyknife
POWERLINE SWISSARMYKNIFEAPowerlinesegment. This segment shows the execution of complex command line defined by user.ByMiguel de Dios Matias.InstallationUsing pippip install powerline-swissarmyknifeConfigurationYou can activate the Powerline Slotmachine segment by adding it to your segment configuration,
for example in.config/powerline/themes/shell/default.json:{"function":"powerline_swissarmyknife.execute","priority":30,"args":{"commandLine":"ps aux --no-headers | wc -l","postContent":"⚙️"}},Show the number of processes running in your system.ArgumentscommandLine (string): The command line to execute, it can be complex (with pipes) (remember python3 runs as /bin/sh, not bash).line (string): The string to format the content of segment.Default: "{preContent}{output}{err}{postContent}"preContent (string): The string to show before the result.Default: ""postContent (string): The string to show after the result.Default: "🤖"successCodes (list(int) or None): The values are success code return (normally 0), the background change to critical success.Default: NonefailureCodes (list(int) or None): The values are fail code return, the background change to critical failture.Default: NoneExamplesShows the upload and download rate and count of torrents download in Deluge.{"function":"powerline_swissarmyknife.execute","priority":30,"args":{"commandLine":"deluge-console status | awk '/Total upload:/{print $3$4} /Total download:/{print $3$4} /Downloading:/{print $2\"D\"}' | tr '\n' ' '","postContent":"️"}},Show a random pornstar from redtube api.{"function":"powerline_swissarmyknife.execute","priority":30,"args":{"commandLine":"if [ -f /tmp/list.redtube.json ]; then list=$(cat /tmp/list.redtube.json); else list=$(curl 'https://api.redtube.com/?data=redtube.Stars.getStarList&output=json'); echo $list > /tmp/list.redtube.json; fi; list_length=$(echo $list | jq '.stars | length'); rand=$(echo 'ibase=16;' $(openssl rand -hex 4 | tr '[a-z]' '[A-Z]')  | bc); echo $list | jq \".stars[$(echo \\\"$rand % $list_length\\\" | bc)].star.star_name\" -r","postContent":" 🎥"}},LicenseLicensed underthe GPL3 License.
Package: powerline-taskwarrior
Powerline TaskwarriorA set ofPowerlinesegments for showing information retrieved fromTaskwarriortask manager.It shows a current context and the most urgent active task.RequirementsTaskwarrior segments require:taskv2.4.2 or later,Python^3.7(support for Python 2.7 was dropped)InstallationPIPpipinstall--user-Upowerline-taskwarriorIt can also be installed system-wide, but this is usually a bad idea.DebianOn Debian (testing or unstable), installation can be performed with apt:aptinstallpython-powerline-taskwarriorUsageActivate segmentsTo activate Taskwarrior segments add them to your segment configuration.
See more about powerline configuration inthe official documentation.
For example, I store powerline configuration in~/.config/powerline/themes/shell/default.json.These are available powerline-taskwarrior segments:display current context name{"function":"powerline_taskwarrior.context","priority":70}display the count of pending tasks{"function":"powerline_taskwarrior.pending_tasks_count","priority":70}display the most urgent active task{"function":"powerline_taskwarrior.active_task","priority":70}display the most urgent next task{"function":"powerline_taskwarrior.next_task","priority":70}obsoletesegment displays both of listed above{"function":"powerline_taskwarrior.taskwarrior","priority":70}Color schemeTaskwarrior-powerline requires custom colorscheme to be configured.
Add the following to your colorschemes (.config/powerline/colorschemes/default.json):{"groups":{"taskwarrior:context":"information:regular","taskwarrior:pending_tasks_count":"information:priority","taskwarrior:active_id":{"bg":"mediumgreen","fg":"black","attrs":[]},"taskwarrior:active_desc":{"bg":"green","fg":"black","attrs":[]},"taskwarrior:next_id":{"bg":"brightyellow","fg":"black","attrs":[]},"taskwarrior:next_desc":{"bg":"yellow","fg":"black","attrs":[]}}}And here you can configure the colors.Seepowerline colorschemes docsfor more details.Further customizationIf you have a custom name fortaskcommand, it should be specified viatask_aliasargument in the segment configuration.powerline_taskwarrior.active_taskandpowerline_taskwarrior.next_tasksegments acceptdescription_lengthparameter.
It is an integer which represents a maximum length of the description field.
If a description is longer thandescription_length, it is truncated by words.powerline_taskwarrior.next_tasksegment acceptsignore_activeparameter.
If it set totrue, the segment will be shown always, regardless of existence of an active task.{"function":"powerline_taskwarrior.next_task","priority":70,"args":{"task_alias":"taskwarrior","description_length":40}}LicenseLicensed underthe MIT License.ByGerman Lashevich.