Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (Darkly)
  • No Skin
Collapse
Brand Logo
  1. Home
  2. Uncategorized
  3. we do a little shell scripting

we do a little shell scripting

Scheduled Pinned Locked Moved Uncategorized
27 Posts 3 Posters 0 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • φF φ

    we do a little shell scripting

    workspace_name=$(niri msg workspaces | sed 's/\*//' | sed '1d' | awk '{ if (NF==2) print $2 ; else print $1 }' | sed 's/"//g' | fuzzel --dmenu)
    
    adzuki-11C This user is from outside of this forum
    adzuki-11C This user is from outside of this forum
    adzuki-11
    wrote last edited by
    #2
    @fiore composability is huge i love scripting so much this was like legit my enlightenment like 2 years ago. realising i can just do this i dont need a dedicated tool for things
    φF 1 Reply Last reply
    0
    • adzuki-11C adzuki-11
      @fiore composability is huge i love scripting so much this was like legit my enlightenment like 2 years ago. realising i can just do this i dont need a dedicated tool for things
      φF This user is from outside of this forum
      φF This user is from outside of this forum
      φ
      wrote last edited by
      #3

      @coolbean i wish the shell was actually good .

      φF 1 Reply Last reply
      0
      • φF φ

        @coolbean i wish the shell was actually good .

        φF This user is from outside of this forum
        φF This user is from outside of this forum
        φ
        wrote last edited by
        #4

        @coolbean like bourne messed it up so badly . LITERALLY a couple adjustments and it wouldve been PEAK but no we have to deal with an annoyingly obscure dsl instead

        adzuki-11C 1 Reply Last reply
        0
        • φF φ

          @coolbean like bourne messed it up so badly . LITERALLY a couple adjustments and it wouldve been PEAK but no we have to deal with an annoyingly obscure dsl instead

          adzuki-11C This user is from outside of this forum
          adzuki-11C This user is from outside of this forum
          adzuki-11
          wrote last edited by
          #5
          @fiore thoughts on rc?
          φF 1 Reply Last reply
          0
          • adzuki-11C adzuki-11
            @fiore thoughts on rc?
            φF This user is from outside of this forum
            φF This user is from outside of this forum
            φ
            wrote last edited by
            #6

            @coolbean rc is peakware but im not gonna run it because i want my scripts to be sh(1) compatible

            adzuki-11C 1 Reply Last reply
            0
            • φF φ

              @coolbean rc is peakware but im not gonna run it because i want my scripts to be sh(1) compatible

              adzuki-11C This user is from outside of this forum
              adzuki-11C This user is from outside of this forum
              adzuki-11
              wrote last edited by
              #7
              @fiore but consider: why
              φF 1 Reply Last reply
              0
              • adzuki-11C adzuki-11
                @fiore but consider: why
                φF This user is from outside of this forum
                φF This user is from outside of this forum
                φ
                wrote last edited by
                #8

                @coolbean portability , since rc(1) is super obscure and mostly unavailable on basically all distros

                adzuki-11C 1 Reply Last reply
                0
                • φF φ

                  @coolbean portability , since rc(1) is super obscure and mostly unavailable on basically all distros

                  adzuki-11C This user is from outside of this forum
                  adzuki-11C This user is from outside of this forum
                  adzuki-11
                  wrote last edited by
                  #9
                  @fiore es is in a slightly better position and derived from it
                  φF 1 Reply Last reply
                  0
                  • adzuki-11C adzuki-11
                    @fiore es is in a slightly better position and derived from it
                    φF This user is from outside of this forum
                    φF This user is from outside of this forum
                    φ
                    wrote last edited by
                    #10

                    @coolbean still , obscureware that i dont wanna depend on

                    like , even fish is too "obscure" for my taste

                    adzuki-11C 1 Reply Last reply
                    0
                    • φF φ

                      @coolbean still , obscureware that i dont wanna depend on

                      like , even fish is too "obscure" for my taste

                      adzuki-11C This user is from outside of this forum
                      adzuki-11C This user is from outside of this forum
                      adzuki-11
                      wrote last edited by
                      #11
                      @fiore i just dont get why

                      its your system. if you really need to you can package the shell yourself. sure its nice if others can copy things from your dotfiles easily but realistically i just dont think thats a common thing
                      φF 1 Reply Last reply
                      0
                      • adzuki-11C adzuki-11
                        @fiore i just dont get why

                        its your system. if you really need to you can package the shell yourself. sure its nice if others can copy things from your dotfiles easily but realistically i just dont think thats a common thing
                        φF This user is from outside of this forum
                        φF This user is from outside of this forum
                        φ
                        wrote last edited by
                        #12

                        @coolbean i just like to reduce the dependencies i have on stuff , yknow

                        like . the shell is ok . its fine . its not pretty , but . its functional . i can live w it

                        φF 1 Reply Last reply
                        0
                        • φF φ

                          @coolbean i just like to reduce the dependencies i have on stuff , yknow

                          like . the shell is ok . its fine . its not pretty , but . its functional . i can live w it

                          φF This user is from outside of this forum
                          φF This user is from outside of this forum
                          φ
                          wrote last edited by
                          #13

                          @coolbean also remember : i LOVE complaining about shit

                          adzuki-11C 1 Reply Last reply
                          0
                          • φF φ

                            @coolbean also remember : i LOVE complaining about shit

                            adzuki-11C This user is from outside of this forum
                            adzuki-11C This user is from outside of this forum
                            adzuki-11
                            wrote last edited by
                            #14
                            @fiore oh i mightve just not been escaping the % and # correctly. i have to put a singlequote before those to escape them
                            adzuki-11C 1 Reply Last reply
                            0
                            • adzuki-11C adzuki-11
                              @fiore oh i mightve just not been escaping the % and # correctly. i have to put a singlequote before those to escape them
                              adzuki-11C This user is from outside of this forum
                              adzuki-11C This user is from outside of this forum
                              adzuki-11
                              wrote last edited by
                              #15
                              @fiore friggin ^ to concatenate ' to escape and then the character. this is stupid
                              adzuki-11C 1 Reply Last reply
                              0
                              • adzuki-11C adzuki-11
                                @fiore friggin ^ to concatenate ' to escape and then the character. this is stupid
                                adzuki-11C This user is from outside of this forum
                                adzuki-11C This user is from outside of this forum
                                adzuki-11
                                wrote last edited by
                                #16
                                @fiore anyway now the syntax error is on the last } line. fascinating
                                φF 1 Reply Last reply
                                0
                                • adzuki-11C adzuki-11
                                  @fiore anyway now the syntax error is on the last } line. fascinating
                                  φF This user is from outside of this forum
                                  φF This user is from outside of this forum
                                  φ
                                  wrote last edited by
                                  #17

                                  @coolbean whack-a-mole

                                  adzuki-11C 1 Reply Last reply
                                  0
                                  • φF φ

                                    @coolbean whack-a-mole

                                    adzuki-11C This user is from outside of this forum
                                    adzuki-11C This user is from outside of this forum
                                    adzuki-11
                                    wrote last edited by
                                    #18
                                    @fiore this would be so much easier of they just gave me a fucking switch statement oh my fucking god
                                    φF 1 Reply Last reply
                                    0
                                    • adzuki-11C adzuki-11
                                      @fiore this would be so much easier of they just gave me a fucking switch statement oh my fucking god
                                      φF This user is from outside of this forum
                                      φF This user is from outside of this forum
                                      φ
                                      wrote last edited by
                                      #19

                                      @coolbean rc(1) - a shell doesnt have that ???????? downgrade moment ??

                                      adzuki-11C 1 Reply Last reply
                                      0
                                      • φF φ

                                        @coolbean rc(1) - a shell doesnt have that ???????? downgrade moment ??

                                        adzuki-11C This user is from outside of this forum
                                        adzuki-11C This user is from outside of this forum
                                        adzuki-11
                                        wrote last edited by
                                        #20
                                        @fiore theres a github discussion about adding a switch statement and noones really opposed to it since itd simplify things when enumerating a variable but this isnt even what im doing im evaluating 2 variables to make for ultimately 3 cases
                                        φF 1 Reply Last reply
                                        0
                                        • adzuki-11C adzuki-11
                                          @fiore theres a github discussion about adding a switch statement and noones really opposed to it since itd simplify things when enumerating a variable but this isnt even what im doing im evaluating 2 variables to make for ultimately 3 cases
                                          φF This user is from outside of this forum
                                          φF This user is from outside of this forum
                                          φ
                                          wrote last edited by
                                          #21

                                          @coolbean imean its crazy tho , i think when pike made rc , the bourne shell already had case statements ?

                                          adzuki-11C 1 Reply Last reply
                                          0
                                          Reply
                                          • Reply as topic
                                          Log in to reply
                                          • Oldest to Newest
                                          • Newest to Oldest
                                          • Most Votes


                                          • Login

                                          • Don't have an account? Register

                                          • Login or register to search.
                                          Powered by NodeBB Contributors
                                          • First post
                                            Last post
                                          0
                                          • Categories
                                          • Recent
                                          • Tags
                                          • Popular
                                          • World
                                          • Users
                                          • Groups