Skip to main content

2 posts tagged with "ubuntu"

View All Tags

· One min read
shiv

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.

~\.bashrc
# 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
shiv

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!

~\.bashrc
# 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: https://github.com/AlDanial/cloc
alias sloc='cloc $(git ls-files)'