Search Results for 'xinitrc'

Forum Forums Search Search Results for 'xinitrc'

Viewing 15 results - 31 through 45 (of 96 total)
  • Author
    Search Results
  • #64629

    In reply to: dwm as default wm

    Member
    ex_Koo

      One of the best patches for me is autostart as I can keep all my dwm stuff, separate and I don’t have to use .xinitrc for autostart’s in dwm. I don’t use a GUI login manager as use I tbsm to switch between window managers.

      ~/.dwm folder

      #! /bin/bash
      
      nitrogen --restore &
      dunst &
      picom --config ~/.config/picom/picom.conf &
      nm-applet &
      dwmbar &
      ##~/suckless/dwmbar/dwmbar.sh &
      #62175

      In reply to: Openbox users group

      Member
      stevesr0

        [UPDATE: I believe the mechanism involves the file /etc/X11/Xsession.d/50×11-common_determine-startup, which references a user’s .xsession file. Since I don’t have a .xsession file, I believe openbox-session is used as a .xsession file. I found this info at https://unix.stackexchange.com/questions/594213/xsession-and-startx-in-debian. Still interested in any comments, as I like to understand when things work in spite of not being built right <g>. (Also, this info might be helpful to people whose xsession DOESN’T work.) stevesr0]

        To all respondents, I APOLOGIZE…for not being clear.

        Openbox works GREAT!! — BUT it SHOULDN’T!!

        because

        I don’t have the “exec” calls in xinit or xinitrc. Nothing, NADA!

        So, I am “complaining” WHY it WORKS when it SHOULDN’T!!

        I type startx from a command line and BOOM – in one second, my (black) Openbox GUI is launched. I right click and I have a box listing a terminal, a browser, a file manager, a text editor.

        Super terrific!!

        So, as one might ask about a flying carpet – How come it is working??

        Appreciate any enlightenment; thanks in advance.

        stevesr0

        P.S. in response to skidoo – I just looked at man startx and man xinit – I don’t have entries where it says I should. I also just checked man X, but that didn’t have specific configuration data.

        • This reply was modified 1 year, 10 months ago by stevesr0.
        #62149

        In reply to: Openbox users group

        Anonymous

          So my question is how does startx use openbox-session to launch openbox?

          man startx
          ^---> SEE ALSO section also steers you read to "man xinit" "man X"...

          https://wiki.debian.org/Xinitrc
          https://wiki.debian.org/xinit
          https://wiki.debian.org/Xsession

          .

          http://forum.mxlinux.org/search.php?keywords=xinitrc
          good stuff, informative, especially the topic titled
          “Can’t login to MX linux, possible Xsessions issue after typing ‘startx’ into terminal [SOLVED]”

          #62141

          In reply to: Openbox users group

          Moderator
          christophe

            @ stevesr0
            Unless/Until someone who uses openbox has something “exact” – look at this:

            https://bbs.archlinux.org/viewtopic.php?id=114602

            (When you type startx, .xinitrc is run automatically.) It’s saying to start openbox-session from .xinitrc, then that script starts the “startup” programs.

            Here, there is a sample .xinitrc file:

            https://wiki.debian.org/Xinitrc

            My understanding is to change the exec line in the .xinitrc to exec openbox-session then letting the openbox-session script take you to the desktop.

            Again: if someone who actually uses openbox replies, then follow that. Othrwise, give this a go. 😉

            • This reply was modified 1 year, 10 months ago by christophe. Reason: code box

            confirmed antiX frugaler, since 2019

            #62138

            In reply to: Openbox users group

            Member
            stevesr0

              I have a NON problem with Openbox. I installed it from the repositories and it works. I boot to a command line and then use startx to launch my GUI.

              My reason for posting is that the “exec openbox” that supposedly is needed to make it work doesn’t exist in the xinit or .xinitrc files. All the documentation I have read about launching Openbox point to the need for an entry in xinit or .xinitrc.

              I do have an openbox-session file that does have an exec line in it. However, I don’t understand what launches it. When I use htop without launching X, it is not listed.

              So my question is how does startx use openbox-session to launch openbox? htop shows dbus as involved with openbox-session, but I am unclear how openbox-session is automagically recognized as a program that should be launched when startx is invoked.

              I am aware that this reflects my great ignorance of how things get launched – that is fine if I can gain some enlightenment <g>.

              In my “defense”, I have spent the past hour searching for an explanation. If there is some “tag” that identifies openbox-session as a file that should be launched by dbus when startx is invoked, then that would enable me to search in a more focussed fashion.

              Thanks in advance.

              stevesr0

              #56487
              Member
              ex_Koo

                Full install..antiX-bullseye-a2-runit_x64-full

                repo error no release file on any server. deb http://mx.debian.nz/antix// bullseye nonfree nosystemd main
                Had some error from slim about execute login. Easy fixed dumped slim and use tty .xinitrc Happy Days
                With spacefm the first folder icon in the list is pixelated just for a few seconds.
                Connman works just fine here.

                Member
                ex_Koo

                  This may help you..

                  https://wiki.archlinux.org/index.php/Feh

                  Set the wallpaper
                  feh can be used to set the desktop wallpaper, for example for window managers without this feature such as Openbox, Fluxbox, and xmonad.
                  
                  The following command is an example of how to set the initial background:
                  
                  $ feh --bg-scale /path/to/image.file
                  Other scaling options include:
                  
                  --bg-tile FILE
                  --bg-center FILE
                  --bg-max FILE
                  --bg-fill FILE
                  To restore the background on the next session, add the following to your startup file (e.g. ~/.xinitrc, ~/.config/openbox/autostart, etc.):
                  
                  ~/.fehbg &
                  To change the background image, edit the file ~/.fehbg which gets created after running the command feh --bg-scale /path/to/image.file mentioned above.
                  
                  One can explicitly disable the creation of the ~/.fehbg, by passing the --no-fehbg flag as well.
                  
                  To setup different wallpapers for different monitors one should pass as many file paths as many monitors are available. For example, for a dual monitor setup it would be:
                  
                  $ feh --bg-center path/to/file/for/first/monitor path/to/file/for/second/monitor
                  #55514
                  Member
                  ex_Koo

                    The way I see your auto logging is just remember you need to start your desktop environment as well. What I do with ~/.xinitrc and adding exec i3.

                    I’ve never had anything auto login, I always like to login even from tty. I will be dumping all login managers as soon as I get my main system running and reinstalling hopefully this weekend. Which will also end my testing of antiX-21a as I won’t be reinstalling it.. And putting away my T430..

                    #48384
                    Forum Admin
                    Dave

                      I think this is likely because you are running via startx / ~/.xinitrc rather than through desktop-session (so the desktop-session command would not work). Will have to look into it to see if this can be made possible. That way the exit dialog can be independent of desktop-session if desktop-session is not running (no pid recorded in ~/.desktop-session). Seeing how you have desktop-session installed: If you run startx like
                      startx /usr/local/bin/desktop-session icewm
                      Does the session start?
                      Does the logout button work?

                      Computers are like air conditioners. They work fine until you start opening Windows. ~Author Unknown

                      Member
                      bluedxca93

                        Hi,
                        am new to antix but not to linux in genereal.

                        Downloaded the core to install it inside virtualbox.
                        First runs crashed. Almost i had given up at that point already but then i tought try failsafe maybe it works. And voila it booted up on virtualbox.
                        The login and text install was very easy despite being only text also it seemed very clean and the questions where very precise. The reboot to the command prompt worked without errors.
                        Then i did update the package list as you would do in debian . Installing slim icewm and xterm worked with apt.

                        What did not work out of the box was setting the xinitrc for slim. That was expected and got it running adter reading the archlinux slim article some times.

                        Then i was very frustrated again second time after the required failsafe thing on first boot. There are antix packages for icewm that is great. What i don’t get though is why is icewm-menu-fdo binary is missing on antix. Without this using icewm is only a mess imho.
                        Is there anybody using icewm with antix and did install it from the core variant?

                        And is there a way to set another application as rox as default file manager?

                        Despite these flaws that can be fixed trough configuration i m sure it runs very fast. Tomorrow i will test my install again. Maybe its only my fault thinking everything should work as in ubuntu.

                        kind and best reagrds
                        bluedxca93

                        #41842
                        Member
                        ex_Koo

                          I just did a core install on my x220 antiX 19 core x64.

                          A lan connection is a must if you want access to the internet.

                          Use Safe Video Mode Thanks anticapitalista I forgot this one.

                          During the install I was ask (do you want to install packagers) said yes to this just to check my lan was working. checked upgrades sure was 52 upgrades did not install them.
                          Next said yes to Timezone setup my time zone. Nice screen too.

                          After installing & rebooting

                          Logged into tty
                          Ran sudo apt update (worked just fine)
                          Then sudo apt upgrade (52 upgrades upgraded) I rebooted said yes to grub update MBR.
                          Back to tty and loggged in.
                          Ran sudo apt install xorg xserver-xorg xutils mesa-utils xinit this was to get Xorg working as in GUI. If not you live in the terminal world. Also if you have an nvidia card install nvidia-detect as well.

                          As I use i3wm I installed i3wm you may use fluxbox rox icewm etc just install what you use in desktop environments. And did did not install a login manager like Slim LightDM or whatever I went the .xinitrc way.

                          With .xinitrc their is no login screen just tty to start X11 after logging in type startx

                          sudo apt install i3 dmenu rofi thunar geany this is for starters just to give me a desktop. (If I used

                            fluxbox

                          dmenu and rofi are not needed)

                          Now the above is installed I have everything that is need to get to my desktop and start X11

                            NON of the below is needed if you installed Slim or LighDM

                          All I need to do now is create .xinitrc in my home directory and tell it what desktop enviroment I want to start which is i3wm in my case. With the command below.

                          echo “exec i3” >> ~/.xinitrc

                          Just reboot loggin from tty and type startx

                          That it really.

                          #41780
                          Member
                          ex_Koo

                            So Safe Video Mode do not work ?

                            I just did a core install on my x220 antiX 19 core x64.

                            A lan connection is a must if you want access to the internet.

                            Use Safe Video Mode Thanks anticapitalista I forgot this one.

                            During the install I was ask (do you want to install packagers) said yes to this just to check my lan was working. checked upgrades sure was 52 upgrades did not install them.
                            Next said yes to Timezone setup my time zone. Nice screen too.

                            After installing & rebooting

                            Logged into tty
                            Ran sudo apt update (worked just fine)
                            Then sudo apt upgrade (52 upgrades upgraded) I rebooted said yes to grub update MBR.
                            Back to tty and loggged in.
                            Ran sudo apt install xorg xserver-xorg xutils mesa-utils xinit << this was to get Xorg working as in GUI. If not you live in the terminal world. Also if you have an nvidia card install nvidia-detect as well.

                            As I use i3wm I installed i3wm you may use fluxbox rox icewm etc just install what you use in desktop environments. And did did not install a login manager like Slim LightDM or whatever I went the .xinitrc way.

                            With .xinitrc their is no login screen just tty to start X11 after logging in type startx

                            sudo apt install i3 dmenu rofi thunar geany this is for starters just to give me a desktop. (If I used

                              fluxbox

                            dmenu and rofi are not needed)

                            Now the above is installed I have everything that is need to get to my desktop and start X11

                              NON of the below is needed if you installed Slim or LighDM

                            All I need to do now is create .xinitrc in my home directory and tell it what desktop enviroment I want to start which is i3wm in my case. With the command below.

                            echo “exec i3” >> ~/.xinitrc

                            Just reboot loggin from tty and type startx

                            That it really.

                            • This reply was modified 2 years, 7 months ago by ex_Koo.
                            • This reply was modified 2 years, 7 months ago by ex_Koo.
                            Anonymous

                              Hi,

                              I have recently installed antiX on a PC and as it’s based on debian I was hoping I will be able to manage the machine using debops (an Ansible-based host management framework). This framework however requires me to install the libuser package which fails reporting a conflict for the /etc/libuser.conf file:

                              
                              $ LC_ALL=C sudo apt install libuser
                              Reading package lists... Done
                              Building dependency tree
                              Reading state information... Done
                              The following packages were automatically installed and are no longer required:
                                gconf-service gconf2-common libboost-python1.67.0 libexiv2-14 libgconf-2-4 libgnome-keyring-common libgnome-keyring0 libgtksourceview2.0-0 libgtksourceview2.0-common
                                libgtop-2.0-11 libgtop2-common libpango1.0-0 libpangox-1.0-0 libqt5designer5 libqt5help5 libqt5script5 libqt5test5 libxklavier16 ndiswrapper ndiswrapper-utils-1.9
                                python3-distro-info unattended-upgrades
                              Use 'sudo apt autoremove' to remove them.
                              The following NEW packages will be installed:
                                libuser
                              0 upgraded, 1 newly installed, 0 to remove and 28 not upgraded.
                              1 not fully installed or removed.
                              Need to get 0 B/273 kB of archives.
                              After this operation, 2052 kB of additional disk space will be used.
                              (Reading database ... 148760 files and directories currently installed.)
                              Preparing to unpack .../libuser_1%3a0.62~dfsg-0.1_i386.deb ...
                              Unpacking libuser (1:0.62~dfsg-0.1) ...
                              dpkg: error processing archive /var/cache/apt/archives/libuser_1%3a0.62~dfsg-0.1_i386.deb (--unpack):
                               trying to overwrite '/etc/libuser.conf', which is also in package desktop-defaults-core-antix 0.6.5
                              dpkg-deb: error: paste subprocess was killed by signal (Broken pipe)
                              Errors were encountered while processing:
                               /var/cache/apt/archives/libuser_1%3a0.62~dfsg-0.1_i386.deb
                              E: Sub-process /usr/bin/dpkg returned an error code (1)
                              enki@gauss:~
                              $
                              

                              The /etc/libuser.conf file is indeed owned by the desktop-defaults-core-antix package:

                              
                              $ dpkg -L package desktop-defaults-core-antix
                              dpkg-query: pakiet "package" nie jest zainstalowany
                              
                              /.
                              /etc
                              /etc/X11
                              /etc/X11/xorg.conf.d
                              /etc/X11/xorg.conf.d/synaptics.conf
                              /etc/X11/xorg.conf.in
                              /etc/init.d
                              /etc/init.d/umountnfs-alternative.sh
                              /etc/libuser.conf
                              /etc/modprobe.d
                              /etc/modprobe.d/hang-on-shutdown.conf
                              /etc/modprobe.d/i915-power-saving.conf
                              /etc/modprobe.d/iwlwifi-no-blink.conf
                              /etc/skel
                              /etc/skel/.Xresources
                              /etc/skel/.config
                              /etc/skel/.config/htop
                              /etc/skel/.config/htop/htoprc
                              /etc/skel/.config/xresources.d
                              /etc/skel/.config/xresources.d/xcalc
                              /etc/skel/.config/xresources.d/xcalc/xcalc.conf
                              /etc/skel/.config/xresources.d/xcolours
                              /etc/skel/.config/xresources.d/xcolours/antix.conf
                              /etc/skel/.config/xresources.d/xcolours/zenburn.conf
                              /etc/skel/.conkyrc
                              /etc/skel/.conkyrc-lua
                              /etc/skel/.nanorc
                              /etc/skel/.xinitrc-custom
                              /etc/udev
                              /etc/udev/rules.d
                              /etc/udev/rules.d/61-optical-polling-rules.rules
                              /etc/udev/rules.d/80-net-name-slot.rules
                              /etc/udev/rules.d/80-net-setup-link.rules
                              /etc/udev/rules.d/90-fstab-automount.rules
                              /etc/udev/rules.d/90-usb-semiauto.rules
                              /root
                              /root/.config
                              /root/.config/htop
                              /root/.config/htop/htoprc
                              /usr
                              /usr/local
                              /usr/local/bin
                              /usr/local/bin/conky-colors
                              /usr/sbin
                              /usr/sbin/autologin
                              /usr/share
                              /usr/share/X11
                              /usr/share/X11/xkb
                              /usr/share/X11/xkb/symbols
                              /usr/share/X11/xkb/symbols/br-abnt2
                              /usr/share/X11/xorg.conf.d
                              /usr/share/X11/xorg.conf.d/20-thinkpad.conf
                              /usr/share/doc
                              /usr/share/doc/desktop-defaults-core-antix
                              /usr/share/doc/desktop-defaults-core-antix/changelog.gz
                              /usr/share/doc/desktop-defaults-core-antix/copyright
                              /usr/share/keymaps
                              /usr/share/keymaps/i386
                              /usr/share/keymaps/i386/azerty
                              /usr/share/keymaps/i386/qwerty
                              /usr/share/keymaps/i386/qwertz
                              /usr/share/keymaps/i386/azerty/be.kmap.gz
                              /usr/share/keymaps/i386/qwerty/br.kmap.gz
                              /usr/share/keymaps/i386/qwerty/cz.kmap.gz
                              /usr/share/keymaps/i386/qwerty/gb.kmap.gz
                              /usr/share/keymaps/i386/qwerty/is.kmap.gz
                              /usr/share/keymaps/i386/qwerty/jp.kmap.gz
                              /usr/share/keymaps/i386/qwerty/lv.kmap.gz
                              /usr/share/keymaps/i386/qwerty/pt.kmap.gz
                              /usr/share/keymaps/i386/qwerty/se.kmap.gz
                              /usr/share/keymaps/i386/qwerty/sk.kmap.gz
                              /usr/share/keymaps/i386/qwerty/tr.kmap.gz
                              /usr/share/keymaps/i386/qwertz/hr.kmap.gz
                              /usr/share/keymaps/i386/qwertz/si.kmap.gz
                              Użyj dpkg --contents (= dpkg-deb --contents), aby sprawdzić zawartość pakietu.
                              enki@gauss:~
                              $
                              

                              but it’s empty on my system:

                              
                              $ cat /etc/libuser.conf
                              enki@gauss:~
                              $
                              

                              Why is it installed by the default antix installation when libuser is not? Why isn’t it treated as a normal config file with dpkg asking me whether I want to update it? How to fix this?

                              Mandatory inxi output:

                              
                              root@gauss:~# inxi -Fxz
                              System:    Host: gauss Kernel: 4.9.212-antix.1-486-smp i686 bits: 32 compiler: gcc v: 8.3.0 Console: tty 0
                                         Distro: antiX-19.2_386-full Hannie Schaft 27 March 2020 base: Debian GNU/Linux 10 (buster)
                              Machine:   Type: Laptop System: Dell product: OptiPlex SX280 v: N/A serial: <filter>
                                         Mobo: Dell model: 0D8695 serial: <filter> BIOS: Dell v: A09 date: 03/07/2007
                              CPU:       Topology: Single Core model: Intel Pentium 4 bits: 32 type: MT arch: Netburst Smithfield rev: 1 L2 cache: 1024 KiB
                                         flags: nx pae sse sse2 sse3 bogomips: 11172
                                         Speed: 2793 MHz min/max: N/A Core speeds (MHz): 1: 2793 2: 2793
                              Graphics:  Device-1: Intel 82915G/GV/910GL Integrated Graphics vendor: Dell driver: N/A bus ID: 00:02.0
                                         Display: server: X.org 1.20.4 driver: vesa tty: 173x43
                                         Message: Advanced graphics data unavailable in console for root.
                              Audio:     Device-1: Intel 82801FB/FBM/FR/FW/FRW AC97 Audio vendor: Dell Optiplex GX280 driver: snd_intel8x0 v: kernel
                                         bus ID: 00:1e.2
                                         Sound Server: ALSA v: k4.9.212-antix.1-486-smp
                              Network:   Device-1: Broadcom Limited NetXtreme BCM5751 Gigabit Ethernet PCI Express vendor: Dell Optiplex GX280 driver: tg3
                                         v: 3.137 port: e8a0 bus ID: 02:00.0
                                         IF: eth0 state: up speed: 1000 Mbps duplex: full mac: <filter>
                              Drives:    Local Storage: total: 465.76 GiB used: 3.56 GiB (0.8%)
                                         ID-1: /dev/sda vendor: Seagate model: ST500DM002-1BD142 size: 465.76 GiB
                              Partition: ID-1: / size: 455.45 GiB used: 3.56 GiB (0.8%) fs: ext4 dev: /dev/sda1
                                         ID-2: swap-1 size: 2.00 GiB used: 0 KiB (0.0%) fs: swap dev: /dev/sda2
                              Sensors:   Message: No sensors data was found. Is sensors configured?
                              Info:      Processes: 139 Uptime: 42m Memory: 990.8 MiB used: 143.7 MiB (14.5%) Init: SysVinit runlevel: 5 Compilers:
                                         gcc: 8.3.0 Shell: bash v: 5.0.3 inxi: 3.0.36
                              
                              
                              root@gauss:~# inxi -r
                              Repos:     Active apt repos in: /etc/apt/sources.list
                                         1: deb http://deb.debian.org/debian buster main contrib non-free
                                         2: deb http://deb.debian.org/debian buster-updates main contrib non-free
                                         3: deb http://deb.debian.org/debian buster-backports main contrib non-free
                                         4: deb http://security.debian.org/ buster/updates main contrib non-free
                                         Active apt repos in: /etc/apt/sources.list.d/antix.list
                                         1: deb http://ftp.icm.edu.pl/pub/Linux/dist/antix-workspace/antix/buster buster main nonfree nosystemd
                                         Active apt repos in: /etc/apt/sources.list.d/buster-backports.list
                                         1: deb http://deb.debian.org/debian buster-backports main contrib non-free
                                         Active apt repos in: /etc/apt/sources.list.d/debian-stable-updates.list
                                         1: deb http://ftp.pl.debian.org/debian/ buster-updates main contrib non-free
                                         Active apt repos in: /etc/apt/sources.list.d/debian.list
                                         1: deb http://ftp.pl.debian.org/debian/ buster main contrib non-free
                                         2: deb http://security.debian.org/ buster/updates main contrib non-free
                                         No active apt repos in: /etc/apt/sources.list.d/onion.list
                                         No active apt repos in: /etc/apt/sources.list.d/various.list
                              root@gauss:~#
                              
                              Member
                              anilkagi

                                Skidoo, thank you for the suggestions.

                                I just re-installed the OS and did as you had suggested earlier;

                                I would try to do the following:
                                A) List the installed packages:
                                dpkg -l | grep “<desktop>” | grep ‘^ii’, with <desktop> standing for e.g. jwm, fluxbox etc.
                                B) Write the command to remove them but do not confirm blindly!
                                sudo apt remove <packages from step A>
                                See what it outputs, e.g.
                                The following packages will be REMOVED:
                                and make sure (by inspecting it) that some additional stuff related to ‘Icewm’ is not removed as well.
                                C) If OK, then confirm and proceed with the removal.

                                However, the same thing happened again. When I removed, everything went off. This time there were no DE-FM to show at all. The last time there were some hotch-potch entries. This time it was clean. I rebooted twice. I could boot into the previously selected Rox-Icewm without problems. But there were no entries on the menu.

                                Now I again installed the DE-FM with;

                                sudo apt install --reinstall desktop-session-antix

                                Again all the entries were back in the menu.

                                Now after that I checked the /etc/slim.conf file. However, there are no sessions listed there as suggested by you. There is one line, which has been hashed out. Here below is the contents of the file;

                                # Path, X server and arguments (if needed)
                                # Note: -xauth $authfile is automatically appended
                                #
                                default_path        /usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games
                                default_xserver     /usr/bin/X11/X
                                xserver_arguments   -nolisten tcp -background none
                                
                                # Commands for halt, login, etc. on live antiX
                                halt_cmd            /usr/local/bin/persist-config --shutdown --command halt 
                                reboot_cmd          /usr/local/bin/persist-config --shutdown --command reboot 
                                # Commands for halt, login, etc. on installed antiX
                                #halt_cmd            sudo halt 
                                #reboot_cmd        sudo reboot 
                                console_cmd         /usr/bin/urxvt -C -fg white -bg black +sb -T "Console login" -e /bin/sh -c "/bin/cat /etc/issue.net; exec /bin/login"
                                #suspend_cmd        /usr/sbin/suspend
                                
                                # Full path to the xauth binary
                                xauth_path         /usr/bin/X11/xauth
                                
                                # Xauth file for server
                                authfile           /var/run/slim.auth
                                
                                # Activate numlock when slim starts. Valid values: on|off
                                # numlock             on
                                
                                # Hide the mouse cursor (note: does not work with some WMs).
                                # Valid values: true|false
                                # hidecursor          false
                                
                                # This command is executed after a succesful login.
                                # you can place the %session and %theme variables
                                # to handle launching of specific commands in .xinitrc
                                # depending of chosen session and slim theme
                                #
                                # NOTE: if your system does not have bash you need
                                # to adjust the command according to your preferred shell,
                                # i.e. not using desktop-session-antix:
                                #login_cmd         exec /bin/bash -login /etc/X11/Xsession %session 
                                #################OLD COMMAND####################
                                # login_cmd         exec /bin/bash -login ~/.xinitrc %session >~/.xsession-errors$DISPLAY 2>&1
                                ################################################
                                #LOGIN COMMAND FOR DESKTOP SESSION BELOW#
                                #############################################################################################
                                login_cmd   setsid /usr/local/bin/desktop-session %session
                                #############################################################################################
                                
                                # login_cmd exec dbus-launch /bin/bash -login ~/.xinitrc %session >~/.xsession-errors 2>&1
                                
                                # Commands executed when starting and exiting a session.
                                # They can be used for registering a X11 session with
                                # sessreg. You can use the %user variable
                                #
                                # sessionstart_cmd	some command
                                # sessionstop_cmd	some command
                                
                                # Start in daemon mode. Valid values: yes | no
                                # Note that this can be overriden by the command line
                                # options "-d" and "-nodaemon"
                                # daemon	yes
                                
                                # Available sessions (first one is the default).
                                # The current chosen session name is replaced in the login_cmd
                                # above, so your login command can handle different sessions.
                                # see the xinitrc.sample file shipped with slim sources
                                #sessions rox-fluxbox,space-fluxbox,fluxbox,rox-icewm,space-icewm,icewm,rox-jwm,space-jwm,jwm,herbstluftwm
                                sessiondir /usr/share/xsessions
                                
                                # Executed when pressing F11 (requires scrot)
                                screenshot_cmd      scrot /root/slim.png
                                
                                # welcome message. Available variables: %host, %domain
                                welcome_msg         (Press F1 to toggle sessions)
                                
                                # Session message. Prepended to the session name when pressing F1
                                # session_msg         Session: 
                                
                                # shutdown / reboot messages
                                shutdown_msg 	The system is shutting down...
                                reboot_msg 		The system is rebooting...
                                
                                # Focus the password field on start when #default_user is set
                                # Set to "yes" to enable this feature
                                #focus_password      no
                                
                                # Automatically login the default user (without entering
                                # the password. Set to "yes" to enable this feature
                                #auto_login          yes
                                
                                # default user, leave blank or remove this line
                                # for avoid pre-loading the username.
                                #default_user        XX
                                
                                # current theme, use comma separated list to specify a set to 
                                # randomly choose from
                                current_theme 	BlueLines
                                #current_theme 	BlueLinesLight
                                #current_theme 	antiXIce
                                #current_theme 	DarkCity
                                #current_theme 	PrettyPink
                                #current_theme 	SunnyDay
                                
                                # Lock file
                                lockfile            /var/run/slim.lock
                                
                                # Log file
                                logfile             /var/log/slim.log

                                Thanks for your efforts, Skidoo.

                                #39271
                                Member
                                macondo

                                  HOWTO: Basic Ratpoison Configuration

                                  This is a basic configuration, I haven’t learned all the tricks to it but i do
                                  know what works for me smile.

                                  Ratpoison (rp) is not for everybody, eye-candy, icons, title/taskbar are absent. It’s
                                  all business, uses every pixel of space and uses 1 MB of RAM. Apps are maximized
                                  by default. If you spend time comparing desktops with your buddies to see which is
                                  prettier, stop reading, this is not for you.

                                  Gamers, devs, and all sort of miscreants love rp.

                                  #apt-get install ratpoison dmenu

                                  BIND KEY
                                  The way it works is: you press a ‘bind’ key plus another letter you
                                  assign to a package you want to launch.

                                  The default keybind (or bind key) is C-t (Control + letter t) but to me, it’s
                                  cumbersome and painful on the wrist or fingers. If you google you’ll find tons
                                  of material on ‘.ratpoisonrc’ or ‘ratpoison configuration’.

                                  Other examples of bind keys are: C-z, C-a, C-d …etc

                                  I found this article by Dion Moult which explains how to change the bind key to
                                  the Caps Lock (the key next to your left pinky finger). It’s a very good
                                  article, you should read it. It explains how to make the Caps Lock key your bind
                                  key.

                                  https://thinkmoult.com/ratpoison-an-efficient-and-minimalist-wm.html

                                  IMHO, the easiest way to configure rp is from another wm/DE you’re using at the moment.

                                  Create the file .xmodmaprc in your /home:

                                  $ touch .xmodmaprc

                                  Once created, enter it with favorite editor:

                                  $ nano .xmodmaprc

                                  And paste this:

                                  remove lock = Caps_Lock
                                  keycode 66 = F13

                                  Put xmodmaprc in your .xinitrc:

                                  $ nano .xinitrc

                                  Paste this:

                                  xmodmap .xmodmaprc

                                  LAUNCHING RP
                                  You can launch rp from your .xinitrc, here is mine:

                                  Example:

                                  #!/bin/sh
                                  
                                  setxkbmap -option terminate:ctrl_alt_bksp
                                  xsetroot -solid black
                                  xrdb -merge .Xdefaults
                                  unclutter -idle 2 &
                                  numlockx &
                                  xmodmap .xmodmaprc
                                  
                                  exec ratpoison

                                  save/exit/reboot

                                  CONFIGURATION FILE
                                  It’s called .ratpoisonrc, so you create it:

                                  $ touch .ratpoisonrc

                                  Then you enter it:

                                  $ nano .ratpoisonrc

                                  You’ll notice is blank, then paste and post something like this:
                                  Here’s my .ratpoisonrc:

                                  alias term exec lxterminal
                                  escape F13
                                  unbind k
                                  bind j focusdown
                                  bind h focusleft
                                  bind k focusup
                                  bind l focusright
                                  
                                  bind J exchangedown
                                  bind H exchangeleft
                                  bind K exchangeup
                                  bind L exchangeright
                                  
                                  exec /usr/bin/rpws init 2 -k
                                  exec rpws 1
                                  exec /usr/bin/rpws init 6 -k
                                  bind F1 exec rpws 1
                                  bind F2 exec rpws 2
                                  
                                  exec xsetroot -solid black -cursor_name left_ptr
                                  bind semicolon colon
                                  set winname class
                                  set fgcolor yellow
                                  set bgcolor black
                                  set bargravity sw
                                  defborder 0
                                  defpadding 0 0 0 0
                                  defbarpadding 0 0
                                  
                                  definekey top M-Tab next
                                  bind space exec lxterminal 
                                  definekey top F2 exec xfe
                                  bind f exec firefox
                                  bind b exec brave-browser-stable
                                  definekey top F4 kill
                                  definekey top F7 exec mirage
                                  definekey top F8 exec hexchat
                                  definekey top F9 exec geany
                                  definekey top Print exec lxterminal -e scrot -cd 10  
                                  
                                  SOUND
                                  definekey top C-Down exec amixer -q set Master 5- unmute && ratpoison -c "echo Master Vol Down"
                                  definekey top C-Up exec amixer -q set Master 5+ unmute && ratpoison -c "echo Master Vol Up"
                                  
                                  bind d exec dmenu_run
                                  bind r restart
                                  bind w windows
                                  bind Escape abort
                                  bind q only
                                  bind b banish
                                  rudeness 12
                                  
                                  #Run box (sudo and apps launching)
                                  definekey top C-space exec

                                  save/exit/reboot


                                  HOW DOES IT WORK?

                                  To launch a terminal: press bind key (caps lock) and the spacebar, a white small square will
                                  appear , and the xterm (or whatever terminal you
                                  specify in .ratpoisonrc) will appear. Ditto for all the other apps.

                                  You want to abort in the middle of an operation? Bind key + Escape.
                                  Close an app? F4
                                  Want to know what windows you got open? bind + w
                                  Want to go to one of them? bind + the window #
                                  Want to launch dmenu? bind + d
                                  After every change ‘restart rp’ with: bind + r
                                  What time/date is it? bind + a
                                  Snapshot? press the key Print.
                                  You miss fbrun? Control key + Space bar
                                  If you want to split the screen horizontally: bind + s
                                  Vertically? Bind + S
                                  Go back to normal? Bind + q
                                  alt-tab as usual OR tap the bind key twice

                                  Play with it, it’s addictive.
                                  Happy trails,
                                  macondo

                                  PS: Contrary to common wisdom, you CAN use your mouse as in any other wm.

                                  • This topic was modified 2 years, 9 months ago by macondo.
                                  • This topic was modified 2 years, 9 months ago by macondo.

                                  antiX Core 64 Bit Runit IceWM

                                  "Sometimes a man finds his destiny on the road he took to avoid it."

                                Viewing 15 results - 31 through 45 (of 96 total)