void audio

#installing  

extract void tarball
example:https://alpha.de.repo.voidlinux.org/live/current/void-x86_64-ROOTFS-20181111.tar.xz
#cfdisk
#mkfs.ext4 /dev/sdax
#mount /dev/sdax /mn
$ cd Downlaods
#mv void-x86_64-ROOTFS-20181111.tar.xz /mnt
#tar -xvpf  void-x86_64-ROOTFS-20181111.tar.xz
#arch-chroot /mnt or
https://wiki.voidlinux.org/Installation_on_UEFI,_via_chroot
# mount -t proc proc /mnt/proc
# mount -t sysfs sys /mnt/sys
# mount -o bind /dev /mnt/dev
# mount -t devpts pts /mnt/dev/pts
# cp -L /etc/resolv.conf /mnt/etc/
# cd /mnt
# chroot /mnt
 
# passwd root
# chown root:root /
# chmod 755 / 
 
#blkid
replace uuid here to ur own of /dev/sdax of root partition 
UUID=162ba999-40d6-4825-8011-49bbeba1143f / ext4 rw,noatime,discard 0 1


#vi /etc/default/libc-locales
#uncomment needed locales
en_US.UTF-8 UTF-8
 
#xbps-reconfigure -f glibc-locales
 
sudo xbps-install leafpad
xbps-query  xbacklight xwinfo xprop ranger polybar i3 xorg-minimal sxiv st firefox
 

sudo vi /etc/dhcpcd.conf 
#using cloudflare dns use 8.8.8.8 or opendns
static domain_name_serverS=1.0.0.1
  

 

Network

 
esc :wq to write quit vi or ZZ to write quit 
 
vi ~/wpa_supplicant.conf 
 ctrl_interface=/run/wpa_supplicant 
ctrl_interface_group=wheel
network={
ssid="your_ssid"
psk="wpa2password"
}
 
https://wiki.archlinux.org/index.php/Wpa_supplicant

 
 
vi ~/wify.sh
sudo  wpa_supplicant -B  -i wlp0s20u3  -c ~/wpa_supplicant.conf 

run with sh wify.sh
 

man wpa_supplicant

man wpa_supplicant.conf


 
vi ~/dh.sh
sudo dhcpcd wlp0s20u3









ip link to show interface here its wlp0s20u3


i3 configs

#alsa audio
bindsym XF86AudioRaiseVolume exec "amixer -c 1 sset Master,0 1+ unmute"
bindsym XF86AudioLowerVolume exec "amixer -c 1 sset Master,0 1- unmute"
bindsym XF86AudioMute exec "amixer -c 1 sset Master,0 toggle"
#floating
for_window [class="st-256color"] floating enable
for_window [class="Leafpad"] floating enable
for_window [window_role="pop-up"] floating enable
for_window [window_role="bubble"] floating enable
for_window [window_role="task_dialog"] floating enable
for_window [window_role="Preferences"] floating enable
for_window [window_type="dialog"] floating enable
for_window [window_type="menu"] floating enable
for_window [class="Gnome-mpv"] floating enable
for_window [window_role="app"] floating enable
for_window [window_role="GtkFileChooserDialog"] resize set 800 600
for_window [window_role="GtkFileChooserDialog"] move position center
for_window [class="java"] floating enable
#brightness mode

set $mode_brightness brightness

bindsym $mod+b mode "$mode_brightness"
mode "$mode_brightness" {
    bindsym plus  exec --no-startup-id xbacklight -time 50 -inc 1
    bindsym minus exec --no-startup-id  xbacklight -time 50 -dec 1
    bindsym Shift+plus  exec --no-startup-id xbacklight -time 50 -inc 1
    bindsym Shift+minus exec --no-startup-id xbacklight -time 50 -dec 1

    bindsym 0     mode "default", exec --no-startup-id xbacklight -time 50 -set 100
    bindsym 1     mode "default", exec --no-startup-id xbacklight -time 50 -set 10
    bindsym 2     mode "default", exec --no-startup-id xbacklight -time 50 -set 20
    bindsym 3     mode "default", exec --no-startup-id xbacklight -time 50 -set 30
    bindsym 4     mode "default", exec --no-startup-id xbacklight -time 50 -set 40
    bindsym 5     mode "default", exec --no-startup-id xbacklight -time 50 -set 50
    bindsym 6     mode "default", exec --no-startup-id xbacklight -time 50 -set 60
    bindsym 7     mode "default", exec --no-startup-id xbacklight -time 50 -set 70
    bindsym 8     mode "default", exec --no-startup-id xbacklight -time 50 -set 80
    bindsym 9     mode "default", exec --no-startup-id xbacklight -time 50 -set 90

    bindsym Return mode "default"
    bindsym Escape mode "default"
}

# Sreen brightness controls
bindsym XF86MonBrightnessUp exec xbacklight -inc 1
bindsym XF86MonBrightnessDown exec xbacklight -dec 1

#polkit auth
#exec_always --no-startup-id /usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1
#exec_always --no-startup-id dunst


sudo rm /var/service/agetty-tty6
sudo rm /var/service/agetty-tty5
sudo rm /var/service/agetty-tty4
sudo rm /var/service/agetty-tty3

audio


usermod -aG video username
usermod -aG audio username


xbps-install alsa-tools alsa-utils sox
 
speaker-test -t sin -f 800
speaker-test
 
 
aplay -l
 
 
~/.asoundrc 

--------------------------------------

pcm.!default {
 type plug
 slave.pcm "dmixer"
}

pcm.dmixer  {
  type dmix
  ipc_key 1024
  slave {
  pcm "hw:1,0"
  period_time 0
  period_size 1024
  buffer_size 4096
  rate 44100
 }
 bindings {
  0 0
  1 1
 }
}

ctl.dmixer {
 type hw
 card 1
}
-----------------------------------------------------------
 

Time 

ln -sf /usr/share/zoneinfo/Zone/SubZone /etc/localtime
 

src
https://wiki.voidlinux.org/Main_Page
http://www.troubleshooters.com/linux/void/voidtips.html

Comments

Popular posts from this blog

[SOLVED] IDM WAS REGISTERED WITH A FAKE SERIAL NUMBER

The Twitter Followers Playbook

Hidden Wiki