How to add features to antiX (and make it look more Window 10 like) with tint2

Forum Forums General Tips and Tricks How to add features to antiX (and make it look more Window 10 like) with tint2

  • This topic has 79 replies, 11 voices, and was last updated Nov 11-11:15 am by PPC.
Viewing 15 posts - 46 through 60 (of 78 total)
  • Author
    Posts
  • #43503
    Member
    sleekmason
      Helpful
      Up
      0
      ::

      Hi everyone, just a kick tip, to apply the previous scripts, directly on tint’s config GUI, instead of having to create costume scripts:

      #Exit one liner, that can be added directly on tint2rc "Exit button" Left Click command:
      WINID=$(wmctrl -lx | grep 'Exit Session' | awk 'NR==1{print $1}'); if [ $WINID ]; then  wmctrl -ia $WINID & else    desktop-session-exit & fi
      
      #Internet one liner, that can be added directly on tint2rc "Internet button" Left Click command:
      WINID=$(wmctrl -lx | grep 'Network Settings' | awk 'NR==1{print $1}'); if [ $WINID ]; then  wmctrl -ia $WINID & else    connman-gtk & fi
      
      #Drill one liner, that can be added directly on tint2rc "Search button" Left Click command:
      WINID=$(wmctrl -lx | grep 'Drill' | awk 'NR==1{print $1}'); if [ $WINID ]; then  wmctrl -ia $WINID & else    drill-search-gtk & fi

      Nicely Done! Thank you:)

      #43521
      Member
      PPC
        Helpful
        Up
        0
        ::

        I tried and got a “volume” script that can be used in a tint2 “executor”. This means the user gets an interactive icon (that changes according to the volume level) AND also displays numeric volume level! [you can turn off the numeric display by removing all the echo “$vol” lines, but I quite like it!)
        TODO: no “mute” option… and I probably wont work on that… feel free to experiment adding that to the script. I’m quite happy with it as is…

        Volume script:

        #!/bin/bash
        vol=$(awk -F"[][]" '/dB/ { print $2 }' <(amixer sget Master)s)
        high=65
        medium=40
        low=0
        	if [ "${vol::-1}" -ge 65 ]; then
        		echo /usr/share/icons/papirus-antix/48x48/actions/audio-volume-high.png
        		echo "$vol"
        	elif [ "${vol::-1}" -ge 40 ]; then
        			echo /usr/share/icons/papirus-antix/48x48/actions/audio-volume-medium.png
        			echo "$vol"
        	elif
        	       [ "${vol::-1}" -ge 0 ]; then
               			echo /usr/share/icons/papirus-antix/48x48/actions/audio-volume-low.png
        	 		echo "$vol"	
        	elif
        	       [ "${vol::-1}" -eq 0 ]; then
               			echo /usr/share/icons/papirus-antix/48x48/actions/audio-volume-muted.png
        	 		echo "$vol"	 			
         fi

        Example of Tint2 “executor” code (left click summons the volume slider bar, scroll button up/down increases/decreases volume, right click toggle of volume slider bar):

        #-------------------------------------
        # Executor 3
        execp = new
        execp_command = ~/vol
        execp_interval = 0
        execp_has_icon = 1
        execp_cache_icon = 1
        execp_continuous = 0
        execp_markup = 1
        execp_tooltip = Volume
        execp_lclick_command = yad-volume
        execp_rclick_command = pkill yad
        execp_mclick_command = 
        execp_uwheel_command = amixer sset Master,0 1+
        execp_dwheel_command = amixer sset Master,0 1-
        execp_font_color = #f8f3c7 100
        execp_padding = 0 0
        execp_background_id = 2
        execp_centered = 0
        execp_icon_w = 0
        execp_icon_h = 0
        
        #-------------------------------------

        With this executor, running Tint2 even saves memory when compared with Fluxbox / rox-fluxbox /space-fluxbox because there’s no need to run volumeicon on your startup (or, in my case, Conky to monitor cpu/ram)!

        With my current setup, I have no need to run a systray for most tasks (tint2 supplies volume indicador, a ” network” icon, and indicators for CPU and RAM usage! Not bad for such a tiny piece of software!

        P.

        • This reply was modified 2 years, 6 months ago by PPC.
        • This reply was modified 2 years, 6 months ago by PPC.
        #43526
        Member
        ile
          Helpful
          Up
          0
          ::

          Hello PPC and Everyone
          The launcher for single instance drill has a real confusion problem when a webpage with the word Drill is on the desktop. Bad behavior. revision.
          Capital D Drill was just too easy. Need to tune that. to

          wmctrl -lx | awk '/drill-search-gtk.Drill-search-gtk/ {print $1}'
          

          in that part of

          WINID=$(wmctrl -lx | awk '/drill-search-gtk.Drill-search-gtk/ {print $1}'); if [ $WINID ]; then  wmctrl -ia $WINID & else    drill-search-gtk & fi
          
          #43561
          Member
          olsztyn
            Helpful
            Up
            0
            ::

            I am impressed with the images of the integrated desktop posted above and my thanks again to contributors…
            As I am writing this from Tinted2 Fluxbox my desktop is still a far cry from the one nicely integrated by PPC and ile. There have been many pieces of significant progress as described in the thread and I am hoping this idea will be perfected and adopted by antiX as an alternate and superior desktop, but so far for my limited skills, to acquire and integrate various pieces proved to be a challenge…

            I am not asking for help here as I do not want to waste precious time of contributors still working on perfecting this desktop, but just want to emphasize again my interest in this concept and I hope it will end up as easier to implement.
            If made easier to implement this will be a great asset to antiX beyond mere choice, as superior desktop…
            Thanks again and best Regards…

            Live antiX Boot Options (Previously posted by Xecure):
            https://antixlinuxfan.miraheze.org/wiki/Table_of_antiX_Boot_Parameters

            #43565
            Member
            PPC
              Helpful
              Up
              0
              ::

              @olsztyn: feel free to ask for help, when possible, I’ll try to provide it.

              Also, there’ a link to my latest toolbar config file (I probably won’t change it any more, it does all I want, and looks, at least to me, very cool)

              The “how-to” I provided above is not complex, but does have many steps that do have to be done in order to get the best final result possible:

              1- Install tint2 and skippy-xd (that I believe was recently added to antiX’s repo- because it just got upgraded on both my test machines, if not, please ignore the skippy-xd part, that’s not essential):
              sudo apt install tint2 skippy-xd

              2- before using tint2, you have to correctly configure fluxbox:
              Follow all parts of step 2, on my Original Post.
              Please not that the “single quotes” on step 2.1 are NOT to be entered into the fluxbox “init” file! (they were an error on the OP, they were supposed to be a “code” box)
              The same applies for the text you are supposed to enter in the “apps” file, on step 2.3

              3- Edit tint2’s config file, by running this command:
              geany ~/.config/tint2/tint2rc

              and replace all the text there with the one you can find here, if you want my original toolbar: https://pastebin.com/raw/hkX09Zzs

              OR, if you want the slightly redesigned toolbar:
              https://pastebin.com/raw/xkLBtWQJ

              (EDIT: you’ll have to edit Drill’s appimage path in “Button 2” in the file I linked, sorry… It also has an button to run “Microsoft Office On-line” that you may have to delete in “Button 4”)

              Changes:
              -It’s black, shows colored bars under running application icons.
              -The “find” icon now works even without “Drill”- left click it to search for files in your “home” folder using SpaceFM, right click it to search for applications using “app-select”. If you have a working Drill appimage, placed on your home folder, middle click the icon, to launch it …
              -I changed the start menu, internet and skippy-xd icons, to have a unified “system icon’s” theme and color. Also moved skippy-xd nearer to the start menu.
              (Note that what the start menu display is not an icon, but a character, that looks like a “X”, or a bit like the windows logo sideways! If you want to use an icon, remember to delete that character)
              -I added the code to display CPU and RAM usage, also an interactive Volume icon (you can disable the more memory hungry default “volumeicon”, and also conky, if you don’t need it) BUT there are only displayed if you have the respective executable scripts on your home folder, if not they don’t display at all.

              4- Save all the changes, restart your computer… If you are not already using a fluxbox desktop, switch to it. you should now be able to see tint2’s taskbar, with all the icons and functionalities (like a start menu, that summons fluxbox root menu), a “find” icon, a “show previews” of running apps icon, a File Manager button and all the applications on the launcher. Near the clock you should get the “internet/wi-fi” icon, and, to the left of the clock, the “exit” button.

              5- To add/remove icons to the “launcher” part of the toolbar: right click the start menu > 2 windows pop up, the important one is “Proprieties”. click the horizontal tab “launcher” and add/remove/reorder the applications you want to have on the the launcher. click “apply” when done and close both tint2 windows…

              6- If you want to have tint2’s own “volume icon”, and also see CPU and RAM usage displayed on the toolbar, you can to this steps to install the scripts that the respective toolbar “executors” need:

              -For CPU:
              Save this link in you “home” folder, under the name “cpu”:
              https://raw.githubusercontent.com/I-LeCorbeau/tint2-executors/master/cpu

              -For MEM:
              Save this link in you “home” folder, under the name “mem”:
              https://raw.githubusercontent.com/I-LeCorbeau/tint2-executors/master/mem

              -For Volume:
              Copy the text inside the “Volume script”, on this post, to an empty text file called “vol”, on your “home” folder. https://www.antixforum.com/forums/topic/how-to-add-feature-to-antix-and-also-more-window-10-like-with-tint2/page/4/#post-43521

              Navigate to your home folder using SpaceFM, right click each file that you just created, then press CTRL+P, to enter their proprieties, and check all 3 “execute” boxes, to be on the safe side, then click the “ok” button.

              7- log off and back on, to see the changes (or reboot, there are faster ways, but, doing this you can’t go wrong)

              8- If you also want to change the menu, simply follow the 5th step on my second post, it’s just copy and paste inside the “menu” file, no restart required- the menu updates in real time…

              P.

              • This reply was modified 2 years, 6 months ago by PPC.
              • This reply was modified 2 years, 6 months ago by PPC.
              #43568
              Member
              PPC
                Helpful
                Up
                0
                ::

                I just noticed I never showed a screen grab of my current set up… So, here it is… Very low RAM use, great looking and, more than that, a very useful toolbar (in my humble opinion).

                P.

                Attachments:
                #43571
                Member
                olsztyn
                  Helpful
                  Up
                  0
                  ::

                  It also has an button to run “Microsoft Office On-line” that you may have to delete in “Button 4”)

                  Thank you PPC for this updated procedure, which I will attempt to follow… Your desktop image looks very nice. I may not need to delete link from Button 4, as this seems a good thing to have…
                  Thanks and Regards…

                  Live antiX Boot Options (Previously posted by Xecure):
                  https://antixlinuxfan.miraheze.org/wiki/Table_of_antiX_Boot_Parameters

                  #43582
                  Moderator
                  christophe
                    Helpful
                    Up
                    0
                    ::

                    Yeah. Thanks, PPC for the update, making it clear for future readers. I’m using tint2 with your theme (modified a little bit) in my default antiX (fluxbox) desktop. I love it!

                    confirmed antiX frugaler, since 2019

                    #43587
                    Member
                    olsztyn
                      Helpful
                      Up
                      0
                      ::

                      Thank you PPC for this updated procedure, which I will attempt to follow…

                      After updates to the process (Thanks PPC!) I made some progress and running now a much better Tinted Fluxbox…
                      My observations/points I would like to mention relative to the original steps documented in PPC post:
                      – Step 5 Option: I did not go for modifying Fluxbox menu according to PPC preference. I tested that sample and considered the original menu, consistent with IceWM menu is what I like better. This is not only to retain consistency with IceWM menu but also I would not want to assign apps to run various functions, such as media player or something. Such preference I want on the toolbar instead and leave the main menu to include all apps as currently designed.
                      – Step 6: The toolbar manager (right click on toolbar menu icon) works very nicely to configure what apps you want on toolbar. IMHO it is better designed and polished than the IceWM one. It is great the way it is now.
                      – Some icons on the toolbar are not very good and not consistent with provided by apps and those in IceWM. E.g. Adobe PDF Reader icon is quite crude and different, although after starting Adobe the icon of the running Adobe PDF Reader is correct.
                      – Icons on the toolbar should be more consistent in size and spacing between them. Where can I control such their attributes? E.g. FreeOffice or Connectshares icons are too big. Where their size is defined?
                      – On the flip side, as very positive note, the Tint2 toolbar manager had no problem with finding and placing some apps, such as Google Earth on the toolbar. IceWM toolbar manager was not able to recognize Google Earth existence at all in my experience.
                      – Remains for me to map sound volume to hardware keys but noticed that pointing mouse to volume icon the mouse wheel changes volume level. Still for me to figure brightness mapping…
                      – The stock Internet icon seems dead to me but luckily in my config the Network Manager icon does show nicely, properly shows the strength of signal and continues to function properly.

                      Overall it is very nice accomplishment and with some more work this could be a very nicely working desktop and with no additional RAM usage as I can notice…

                      Thanks again PPC for discovering this great enhancement to stock desktop. Greatly appreciated.
                      Now looks like we have a potential for a leading desktop for antiX to adopt…
                      Thanks and Regards…

                      Live antiX Boot Options (Previously posted by Xecure):
                      https://antixlinuxfan.miraheze.org/wiki/Table_of_antiX_Boot_Parameters

                      #43589
                      Member
                      ile
                        Helpful
                        Up
                        0
                        ::

                        Hello PPC and Everyone
                        example the new colors version can see active leafpad in middle with line at Bottom.

                        Attachments:
                        #43610
                        Member
                        ile
                          Helpful
                          Up
                          0
                          ::
                          #Internet one liner, that can be added directly on tint2rc "Internet button" Left Click command:
                          WINID=$(wmctrl -lx | awk '/cmst.CMST/ {print $1}'); if [ $WINID ]; then  wmctrl -ia $WINID & else    cmst & fi
                          
                          #Exit one liner, that can be added directly on tint2rc "Exit button" Left Click command:
                          WINID=$(wmctrl -lx | awk '/Exit Session/ {print $1}'); if [ $WINID ]; then  wmctrl -ia $WINID & else    desktop-session-exit & fi
                          

                          The other launchers to fit revised code write minus grep. like the drill example. might not be the last change. connman-gtk may be the better choice regarding system tray or something, I like it for that and i like the look better than cmst, but default antiX is seeing cmst in this _full version since 19final; beta was -gtk. so i filled in for cmst instead of connman-gtk. it gives the cmSystem tray of course. quit or exit the cmst tray icon or have two with cmst.
                          I will keep looking at wmctrl for a better code for this launch-type.
                          the previous image of new colors: well i made taller the panel by just two ticks and the font changed color… …. now it does not look like the picture, just the color of name and hostname. are better color.

                          #43612
                          Member
                          PPC
                            Helpful
                            Up
                            0
                            ::

                            @olsztyn:
                            You’r welcome!

                            About your observations:
                            -On the menu: I adapted the menu for my own personal use, because the original one always felt a bit too crammed… I have always removed the “personal” and “help” submenus, and put the “update menu” were it should be, in my opinion, inside the “applications” sub-menu… I’ve also gone the other way, fattening the menu, and put all the categories directly into the first level of the menu, to better access them, windows XP style…
                            One note: you don’t have to set any of the default apps that I have on the menu- antiX does that for you, but you can choose what default app you want for a given task (like default browser, default music player, etc) My menu is organized in tasks, nor applications- you don’t have to know the name of the video player to use the menu and start it, etc… which is ideal for newbies…
                            – On managing the icons on tint2’s toolbar: “it is better designed and polished than the IceWM one”. Yep… because IceWM does not provide any GUI way to do that… I wrote the script that allows antiX users to have a GUI way to add / remove toolbar icons (I had a version that also allowed to move icons around, but anticapitalista chose not to run with it). I have no idea why google earth does not work with icewm’s icon toolbar GUI… I’ll take a look at that when I have the time (probably: not this millennium 🙂 )
                            – “Some icons on the toolbar are not very good and not consistent with provided by apps”- true. I think I address this on the first 2 posts- you’ll have to change Tint2’s “launcher” icon set to the same one antiX uses ( Properties > Launcher > Icon-theme: “Papirus antiX”)
                            – “Icons on the toolbar should be more consistent in size and spacing between them. Where can I control such their attributes?” – as far as I know, that’s done on the app’s desktop file itself… Check if changing tint2’s icon set also solves that problem… Spacing is controled by tint2 in ( Properties > Launcher > Spacing) But spacing differs between normal “launcher” icons, “Buttons” (like the “start menu”, “find”, “skippy-xd/show desktop” and “Exit”) and executors (like “CPU”, “MEM” and “Volume control”)
                            – “Remains for me to map sound volume to hardware keys but noticed that pointing mouse to volume icon the mouse wheel changes volume level. Still for me to figure brightness mapping…” – I tweaked the volume script to allow using the scrool weel bevause I thought that would be handy… For what you want to do, you’ll have to edit fluxbox’s “keys” file- to use the same keys and actions that work for you in IceWM…
                            With a bit of work you can write a script and the executor that runs it, on tint2’s toolbar, to manage screen brightness- I won’t mess with that because I never could antiX (or any other OS) to control my screen’s brightness… If hardware keys work for you, managing brightness, on icewm, use the same scripts and key codes on fluxbox’s key’s file…
                            – “The stock Internet icon seems dead to me” – if you don’t need it, simply remove that “button”, or search for an icon that your system has and use it instead, on it’s “button” entry… I only put it there to have a handy logical place to launch connman- there’s an “executor” that does for networking what my volume icon does for volume- allows to turn network on/off and shows connection status… but I could not get it to work with antiX… and it didn’t seem to be worth the extra work, since I do love my “icon” solution, and connman can be configured to show a systray icon…

                            P.

                            #43618
                            Member
                            ile
                              Helpful
                              Up
                              0
                              ::
                              WINID=$(wmctrl -lx | awk '/drill-search-gtk.Drill-search-gtk/ {print $1}'); if [ $WINID ]; then  wmctrl -iR $WINID & else    drill-search-gtk & fi
                              

                              again. for onesmall switch wmctrl -ia is take me to the window. wmctrl -iR is bring the window to me, hopefully with focus.

                              ((the edit time is no lomger 48 hours. one character would have been easier to edit than repost.))

                              #43619
                              Member
                              PPC
                                Helpful
                                Up
                                0
                                ::

                                My “how to” is meant for the fluxbox desktop (because it’s toolbar isn’t very costumizable), but you can run tint2 in icewm. To make the best of it:

                                sudo apt install tint2 skippy-xd

                                Menu > Control Centre > Edit ICEWM… > “Preferences” tab. Add this lines to the end of the text and save:

                                ###To use tint2 with IceWM: 
                                TaskBarBelow=1
                                TaskBarEnableSystemTray=0

                                And the “startup” file add, after the first line:
                                tint2 &

                                In tint2’s toolbar proprieties window, available from the menu:
                                In “Panel” tab, select the lower right position; set “Lenght” to something like 97%, to be able to see the “Start Menu”; set Size to a value that complety covers up the top of IceWM’s toolbar (33, in my system).

                                If you want to, you can replace tint2 config file with the one I supply above:
                                geany ~/.config/tint2/tint2rc

                                and replace it’s contents with the one from here:

                                https://pastebin.com/raw/xkLBtWQJ

                                Log off and log back on, to see the changes

                                P.

                                #43624
                                Member
                                olsztyn
                                  Helpful
                                  Up
                                  0
                                  ::

                                  I’ve also gone the other way, fattening the menu, and put all the categories directly into the first level of the menu, to better access them, windows XP style…

                                  Thanks for your extensive explanation of some observations and I see your point on the menu organization.
                                  I will try to work on some other items but aside from irregularity of icons on the toolbar the entire desktop seems to be already working very nicely.
                                  It seems to me the main structure is in place already and just details remain to be polished. Also I think the themes (styles) of Fluxbox need to be also updated with better ones for the sake of the entire desktop experience.
                                  Overall it is shaping up as leading antiX desktop in my opinion.
                                  Thanks very much. Greatly appreciated…

                                  Live antiX Boot Options (Previously posted by Xecure):
                                  https://antixlinuxfan.miraheze.org/wiki/Table_of_antiX_Boot_Parameters

                                Viewing 15 posts - 46 through 60 (of 78 total)
                                • You must be logged in to reply to this topic.