Last active
February 9, 2024 19:51
-
-
Save YohannesTz/f3181635f7382fa03b2797d498ee690e to your computer and use it in GitHub Desktop.
Daily chore commands for my self and my potato pc.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# a command to adjust a screen to 1440x900_60.00 | |
# first do this to get the data | |
cvt 1440 900 | |
# then take the output and do this | |
xrandr --newmode "1440x900_60.00" 106.50 1440 1528 1672 1904 900 903 909 934 -hsync +vsync | |
# now add this mode to the monitor | |
xrandr --addmode DP-2 "1440x900_60.00" | |
# finally set the output at that screen to the new mode | |
xrandr --output DP-2 --mode "1440x900_90.00" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#first list all the input devices | |
xinput list | |
#then apply the disable command on device id (assume 9 is the ID) | |
xinput --disable 9 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#to enable my trackpad everytime I restart my pc. | |
sudo modprobe -r psmouse && sudo modprobe psmouse proto=imps |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# To increase my screen because function keys stopped working since I changed | |
# to a new motherboard. and I am too lazy to figure out why | |
# get all connected displays | |
xrandr -q | grep " connected" | |
# no take the name and set the brightness to it | |
xrandr --output eDP-1 --brightness 0.1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment