Coder Social home page Coder Social logo

polybar-fcitx5-script's Introduction

polybar-fcitx5-script.sh

A script to show Fcitx5 status. Fork from polybar-fcitx-scripts on ArchLinux AUR and I can't find it now. I adapt it to fcitx5.

Setup

Copy polybar-fcitx5-script.sh to your ~/.config/polybar folder and add this to your config file:

[module/fcitx]
type = custom/script
exec = ~/.config/polybar/polybar-fcitx5-script.sh
tail = true
interval = 0
format-prefix = "KBD"

You can replace format-prefix with the symbol you like.

If you want to change the up arrow that indicates uppercase into another symbol, modify CAPS_SYMBOL in the script.

polybar-fcitx5-script's People

Contributors

rrrrrm avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

polybar-fcitx5-script's Issues

seems that i can't get imlist and capslock

1.polybar label always show EN
2. when i change to pinyin the label become empty

fcitx5 version: 5.0.19
polybar version: 3.6.3
OS: archcraft 5.19.13-arch1-1

I don't find where IMLIST_FILE in the tmp folder; So i suppose it's because the IMLIST_FILE and the script can't get my caplock state;

thanks for you job ,have a good day!

Cannot execute script.

Hey,

Thank you for making this bash script. I am having issues executing the script through polybar giving me the following result.

not-working

[module/fcitx]
type = custom/script
exec = ~/Documents/dotFiles/.config/polybar/fcitx5.sh
tail = true
interval = 0
format-prefix = "KBD"

Current polybar folder structure

dotFiles/.config/polybar on  main [$!] took 18s
❯ pwd
/home/henri/Documents/dotFiles/.config/polybar

dotFiles/.config/polybar on  main [$!]
❯ ls
.rw-r--r-- 5.1k henri 18 Jul 19:44 config.ini
.rwxrwxrwx 2.1k henri 17 Jul 19:46 fcitx5.sh
.rw-------  305 henri 15 Jul 22:15 launch.sh
.rw-r--r--  774 henri 17 Jul 19:33 mocha.ini

Any help is appreciated. I feel the fix is simple but it evades me.
Thank you

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.