Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
packages list
fix external monitor configuration
add startup and touchpad shell scripts
  • Loading branch information
teddywaweru committed Jun 24, 2024
1 parent 2e671e0 commit 5bab729
Show file tree
Hide file tree
Showing 4 changed files with 32 additions and 2 deletions.
7 changes: 7 additions & 0 deletions .scripts/config_external_monitor_1610.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/bin/sh
#
xrandr --output eDP-1 --mode 1920x1080

xrandr --output HDMI-1 --mode 1920x1080 --scale 1x0.999 --above eDP-1 --refresh 60

xrandr --output eDP-1 --mode 1920x1200 --refresh 60
6 changes: 4 additions & 2 deletions .scripts/post_install/packages.txt
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
alsa-utils
bluez
bluez-utils
btop
dhcpcd
dunst
dust
flameshot
fprintd
fzf
htop
i3lock
intel-media-driver
iwd
Expand All @@ -21,8 +22,9 @@ pulseaudio-bluetooth
ripgrep
rofi
sof-firmware
s-tui
tmux
transmission-cli
tree
unzip
vifm
vivaldi
Expand Down
7 changes: 7 additions & 0 deletions .scripts/startup.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/bin/sh

set -e

sh $HOME/.config/.scripts/config_monitor.sh; sleep 1;
sh $HOME/.config/.scripts/touchpad.sh

14 changes: 14 additions & 0 deletions .scripts/touchpad.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
#!/bin/sh

set -e

enabled=1
disabled=0

touchpad_id=$(xinput list | grep "Touchpad" | awk '{print $6}' |cut -d "=" -f 2)

enable_tapping_button_id=$(xinput list-props $touchpad_id | grep "Tapping Enabled" | grep -v "Default" | awk '{print $4}' | grep -o '[0-9]\+' )
enable_natural_scrolling_id=$(xinput list-props $touchpad_id | grep "Natural Scrolling Enabled" | grep -v "Default" | awk '{print $5}' | grep -o '[0-9]\+' )

xinput set-prop $touchpad_id $enable_tapping_button_id $enabled
xinput set-prop $touchpad_id $enable_natural_scrolling_id $enabled

0 comments on commit 5bab729

Please sign in to comment.