Skip to main content

2 posts tagged with "ubuntu"

View All Tags

· One min read

if you have ubuntu and your spotify keeps opening without a window or controls, this is a quick fix via your .bashrc file. enter the command on a terminal whenever spotify opens without a window.

# install wmctrl
sudo apt install wmctrl
# this is the wmctrl command to fix the windowed issue: `alias spotifix='wmctrl -r spotify -b toggle,fullscreen'`
# use the command below to append the above command to your bashrc
echo "alias spotifix='wmctrl -r spotify -b toggle,fullscreen'" >> ~/.bashrc
# source your bashrc, or restart your terminal
source ~/.bashrc

· One min read

a few quick aliases I keep in my .bashrc to make life easier. these are from scratch after shifting computers, so I will update this constantly!

# list all files including authors, indicators for diff types of objects
alias ll='ls -alF'
# list all files except . and ..
alias la='ls -A'
# list all files by columns, indicators for diff types of objects
alias l='ls -CF'

# make it easy to directly copy and paste commands from online tutorials!
alias pip=pip3
alias python=python3

# using the cloc plugin:
alias sloc='cloc $(git ls-files)'