Skip to content
  • Home
  • Questions
    • Ubuntu solutions
  • Tutorials
  • Privacy Policy
  • Contact

Dev solutions

Solutions for development problems

Tag: i3-wm

Convert a ruby ​script to a bash script

Advertisements I need to turn this ruby ​​script into bash for i3 on Ubuntu: #!/usr/bin/env ruby sink = %x`pacmd list-sinks | grep -e ‘name:’ -e ‘index:’ -e ‘active’` er = /\* index: ([0-9])/ er.match sink if $1 == "1" print ‘usb’ else print ‘mic’ end The script must be used for i3block and displayed on… Read More Convert a ruby ​script to a bash script

January 11, 2022 MRLeave a comment
Privacy & Cookies: This site uses cookies. By continuing to use this website, you agree to their use.
To find out more, including how to control cookies, see here: Cookie Policy

api arrays c c# c++ console css dart dataframe dictionary django dom dplyr express flutter frame ggplot2 go html http https java javascript jquery json laravel list mysql numpy oop orm pandas php postgresql python python-3.x r react-hooks reactjs regex rust sql sql-server sse typescript

Proudly powered by WordPress | Theme: Cerauno by Automattic.
Exit mobile version
%%footer%%