void audio


extract void tarball
#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
# 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 / 
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 or opendns
static domain_name_serverS=



esc :wq to write quit vi or ZZ to write quit 
vi ~/wpa_supplicant.conf 

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"
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


usermod -aG video username
usermod -aG audio username

xbps-install alsa-tools alsa-utils sox
speaker-test -t sin -f 800
aplay -l


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


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



Popular posts from this blog

sxhkd volume andbrightness config for dwm on void

fix idm integration on chrome

Hidden Wiki