You are not logged in.

#1 2021-08-27 10:15:23

saleem
Member
Registered: 2011-09-21
Posts: 168

[SOLVED] X issue related to xinitrc

I installed i3-gaps on my old installation which had previously xfce4 but I removed all xfce4 packages , now it it has just i3 and it's related packages .

I am starting i3 by adding just one line to .xinitrc file i.e

exec i3

and do startx but Everytime I get error

-bash : startxfce4 : command not found and so login to i3 does not work .

Would appreciate some guidance here to fix this issue .

Last edited by saleem (2021-08-27 13:21:50)

Offline

#2 2021-08-27 10:18:31

Lone_Wolf
Administrator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 15,348

Re: [SOLVED] X issue related to xinitrc

You probably need to remove (or comment) xfce4 related lines .

Please post your ~/.xinitrc


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.

clean chroot building not flexible enough ?
Try clean chroot manager by graysky

Offline

#3 2021-08-27 10:49:53

saleem
Member
Registered: 2011-09-21
Posts: 168

Re: [SOLVED] X issue related to xinitrc

Lone_Wolf wrote:

You probably need to remove (or comment) xfce4 related lines .

Please post your ~/.xinitrc

This is the contents of my ~/.xinitrc


#!/bin/sh

exec i3

Offline

#4 2021-08-27 11:36:04

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,491

Re: [SOLVED] X issue related to xinitrc

1. please use code tags, https://bbs.archlinux.org/help.php#bbcode
2. see the last link below
3.

type startx

and also post your i3 config.

Offline

#5 2021-08-27 12:46:29

saleem
Member
Registered: 2011-09-21
Posts: 168

Re: [SOLVED] X issue related to xinitrc

Here is here my xinitrc and i3 config files

#!/bin/sh 
exec i3 
# For the benefit of emacs users: -*- shell-script -*-
#
#  _ _____                    __ _
# (_)___ /    ___ ___  _ __  / _(_) __ _
# | | |_ \   / __/ _ \| '_ \| |_| |/ _` |
# | |___) | | (_| (_) | | | |  _| | (_| |
# |_|____/   \___\___/|_| |_|_| |_|\__, |
#                                  |___/

# Default modkey
set $mod Mod4

# Hide titlebar
new_window pixel

# i3-gaps
gaps inner 4
gaps outer 4
smart_gaps on

default_border pixel 1
hide_edge_borders smart

# Font for window titles.
font pango: DejaVu Sans Regular 8

# Use Mouse+$mod to drag floating windows to their wanted position
floating_modifier $mod

# Start a terminal
bindsym $mod+Return exec termite

# Kill focused window
bindsym $mod+q kill

# Start rofi
bindsym $mod+d exec rofi -modi drun -show drun

# Move between windows
bindsym $mod+j focus left
bindsym $mod+k focus down
bindsym $mod+l focus up
bindsym $mod+semicolon focus right

# Alternatively, you can use the cursor keys:
bindsym $mod+Left focus left
bindsym $mod+Down focus down
bindsym $mod+Up focus up
bindsym $mod+Right focus right

# Move focused window
bindsym $mod+Shift+j move left
bindsym $mod+Shift+k move down
bindsym $mod+Shift+l move up
bindsym $mod+Shift+semicolon move right

# Alternatively, you can use the cursor keys:
bindsym $mod+Shift+Left move left
bindsym $mod+Shift+Down move down
bindsym $mod+Shift+Up move up
bindsym $mod+Shift+Right move right

# Split in horizontal orientation
bindsym $mod+h split h

# Split in vertical orientation
bindsym $mod+v split v

# Enter fullscreen mode for the focused container
bindsym $mod+f fullscreen toggle

# Change container layout (stacked, tabbed, toggle split)
bindsym $mod+s layout stacking
bindsym $mod+w layout tabbed
bindsym $mod+e layout toggle split

# Toggle tiling / floating
bindsym $mod+Shift+space floating toggle

# Change focus between tiling / floating windows
bindsym $mod+space focus mode_toggle

# Focus the parent container
bindsym $mod+a focus parent

# Name the workspaces
set $workspace1 "1  "
set $workspace2 "2  "
set $workspace3 "3  "
set $workspace4 "4  "
set $workspace5 "5  "
set $workspace6 "6  "
set $workspace7 "7  "
set $workspace8 "8  "
set $workspace9 "9  "
set $workspace0 "10  "

# Switch to workspace
bindsym $mod+1 workspace $workspace1
bindsym $mod+2 workspace $workspace2
bindsym $mod+3 workspace $workspace3
bindsym $mod+4 workspace $workspace4
bindsym $mod+5 workspace $workspace5
bindsym $mod+6 workspace $workspace6
bindsym $mod+7 workspace $workspace7
bindsym $mod+8 workspace $workspace8
bindsym $mod+9 workspace $workspace9
bindsym $mod+0 workspace $workspace0

# Move focused container to workspace
bindsym $mod+Shift+1 move container to workspace $workspace1
bindsym $mod+Shift+2 move container to workspace $workspace2
bindsym $mod+Shift+3 move container to workspace $workspace3
bindsym $mod+Shift+4 move container to workspace $workspace4
bindsym $mod+Shift+5 move container to workspace $workspace5
bindsym $mod+Shift+6 move container to workspace $workspace6
bindsym $mod+Shift+7 move container to workspace $workspace7
bindsym $mod+Shift+8 move container to workspace $workspace8
bindsym $mod+Shift+9 move container to workspace $workspace9
bindsym $mod+Shift+0 move container to workspace $workspace0

## Always open some programs on specified workspace
#assign [class="firefox"] → $workspace2
#assign [class="Chromium"] → $workspace2
#assign [class="chromium"] → $workspace2
#assign [class="Google-chrome"] → $workspace2
#assign [class="google-chrome"] → $workspace2
#assign [class="TelegramDesktop"] → $workspace3
#assign [class="thunar"] → $workspace4
#assign [class="Thunar"] → $workspace4
#assign [class="subl"] → $workspace5
#assign [class="Subl"] → $workspace5
#assign [class="geany"] → $workspace5
#assign [class="Geany"] → $workspace5
#assign [class="Atom"] → $workspace5
#assign [class="atom"] → $workspace5
#assign [class="Gimp"] → $workspace6
#assign [class="VirtualBox"]	→ $workspace8

# Enable float for some windows
for_window [class="Variety"] floating enable
for_window [class="Yad"] floating enable

# Reload the configuration file
bindsym $mod+Ctrl+c reload

# Restart i3 inplace (preserves your layout/session, can be used to upgrade i3)
bindsym $mod+Ctrl+r restart

# Lock screen
bindsym $mod+x exec power-menu

# Resize window (you can also use the mouse for that)
mode "resize"
{
    # Resize with the arrow keys
    bindsym Left resize shrink width 2 px or 2 ppt
    bindsym Down resize grow height 2 px or 2 ppt
    bindsym Up resize shrink height 2 px or 2 ppt
    bindsym Right resize grow width 2 px or 2 ppt

    # Back to normal: Enter or Escape
    bindsym Return mode "default"
    bindsym Escape mode "default"
}
bindsym $mod+r mode "resize"

# Defining colors
set $bg      #0d0d0d
set $fg      #5beedc
set $cyan    #5beedc
set $gray    #696c6c
set $white   #ffffff

title_align center

# class                 bord. bg. text  ind.  child_border
client.focused          $fg   $bg $fg   $bg   $fg
client.focused_inactive $gray $bg $gray $gray $gray
client.unfocused        $gray $bg $gray $gray $gray
client.urgent           $gray $bg $fg   $gray $gray
client.placeholder      $fg   $bg $fg   $gray $gray

# Start i3blocks to display a workspace bar
bar
{
    position top
    workspace_buttons yes
    separator_symbol ""
	  status_command i3blocks
	  font pango: DejaVu Sans Regular 9
	  colors
	  {
        #                    Border Background Text
		    focused_workspace   $fg    $fg    $bg
		    active_workspace    $bg    $bg    $white
		    inactive_workspace  $bg    $bg    $fg
		    urgent_workspace    $bg    $bg    $gray
		    background          $bg
    }
}


# Volume
bindsym XF86AudioRaiseVolume exec --no-startup-id "amixer set Master 5%+ unmute && pkill -RTMIN+2 i3blocks"
bindsym XF86AudioLowerVolume exec --no-startup-id "amixer set Master 5%- unmute && pkill -RTMIN+2 i3blocks"
bindsym XF86AudioMute exec --no-startup-id "amixer -q set Master toggle && pkill -RTMIN+2 i3blocks"
bindsym Mod1+Ctrl+l exec --no-startup-id "betterlockscreen -l dim"
bindsym Print exec --no-startup-id "h-screenshot"

# Startup programs
exec_always --no-startup-id "sh ~/.config/i3/startup.sh"
#!/bin/sh
#

pkill conky
(sleep 6 ; conky -c $HOME/.config/i3/conky.conkyrc) &

autotiling &

######## DO NOT REMOVE THIS BLOCK ########
systemctl --user restart utilities
######## DO NOT REMOVE THIS BLOCK ######## 

Offline

#6 2021-08-27 12:50:46

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,491

Re: [SOLVED] X issue related to xinitrc

Your xinitrc is still broken.

Is ~/.config/i3/startup.sh the last code block you posted?

seth wrote:
type startx

Offline

#7 2021-08-27 13:09:06

saleem
Member
Registered: 2011-09-21
Posts: 168

Re: [SOLVED] X issue related to xinitrc

seth wrote:

Your xinitrc is still broken.

Is ~/.config/i3/startup.sh the last code block you posted?

seth wrote:
type startx

yes its the last code block

Offline

#8 2021-08-27 13:11:57

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,491

Re: [SOLVED] X issue related to xinitrc

Broadsword:

grep -r startxfce4 ~

It's probably in your .bashrc or so…

Offline

#9 2021-08-27 13:33:29

saleem
Member
Registered: 2011-09-21
Posts: 168

Re: [SOLVED] X issue related to xinitrc

seth wrote:

Broadsword:

grep -r startxfce4 ~

It's probably in your .bashrc or so…

Bingo!

Thank you and you were right and I don`t know how or why my .bashrc has a line

alias startx=startxfce4 which I commented out and now I can startx to i3 .


Just to add to here instead of starting a new thread , on current stock kernel I can not use any login manager to login to i3 but only startx , with a login manager in few seconds I am back to login manager login window . This issue does not occur on current lts version of kernel available on repos . Any clue what is the reason for this issue?

Offline

#10 2021-08-27 13:40:44

Slithery
Administrator
From: Norfolk, UK
Registered: 2013-12-01
Posts: 5,776

Re: [SOLVED] X issue related to xinitrc

saleem wrote:

Just to add to here instead of starting a new thread , on current stock kernel I can not use any login manager to login to i3 but only startx , with a login manager in few seconds I am back to login manager login window . This issue does not occur on current lts version of kernel available on repos . Any clue what is the reason for this issue?

Please start a new thread...
https://wiki.archlinux.org/title/Genera … ow_to_post


No, it didn't "fix" anything. It just shifted the brokeness one space to the right. - jasonwryan
Closing -- for deletion; Banning -- for muppetry. - jasonwryan

aur - dotfiles

Offline

#11 2021-08-27 14:08:48

saleem
Member
Registered: 2011-09-21
Posts: 168

Re: [SOLVED] X issue related to xinitrc

Slithery wrote:
saleem wrote:

Just to add to here instead of starting a new thread , on current stock kernel I can not use any login manager to login to i3 but only startx , with a login manager in few seconds I am back to login manager login window . This issue does not occur on current lts version of kernel available on repos . Any clue what is the reason for this issue?

Please start a new thread...
https://wiki.archlinux.org/title/Genera … ow_to_post

Thanks I will right now

Offline

Board footer

Powered by FluxBB