All Projects → AguilarLagunasArturo → linux-workspace

AguilarLagunasArturo / linux-workspace

Licence: other
This is the greatest management of all time

Programming Languages

shell
77523 projects
lua
6591 projects
python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to linux-workspace

dotfiles
Config files for i3, polybar, rofi, mpv, Xresources, kitty and some bash-things...
Stars: ✭ 52 (+173.68%)
Mutual labels:  conky, xresources, rofi, kitty, picom
dotfiles
dotfiles of simonvic daily used enviroment
Stars: ✭ 75 (+294.74%)
Mutual labels:  rice, rofi, dunst, picom
dotfiles
My personal dotfiles repository
Stars: ✭ 36 (+89.47%)
Mutual labels:  rice, i3status, ranger, dunst
dotfiles
Arch Linux DotFiles - Managed by GNU stow
Stars: ✭ 30 (+57.89%)
Mutual labels:  neofetch, rofi, dunst, picom
Dotfiles
Collection of i3-gaps Dotfiles
Stars: ✭ 143 (+652.63%)
Mutual labels:  rice, rofi, i3-gaps
no-mans-sky-rice-i3wm
i3WM rice themed using No Man's Sky's colors
Stars: ✭ 34 (+78.95%)
Mutual labels:  rice, rofi, i3-gaps
The Glorious Dotfiles
A glorified personal dot files
Stars: ✭ 1,850 (+9636.84%)
Mutual labels:  rice, rofi, picom
dotfiles
My Linux settings and configs
Stars: ✭ 33 (+73.68%)
Mutual labels:  ranger, rofi, kitty
Singularis
My System Configuration ⚙️
Stars: ✭ 27 (+42.11%)
Mutual labels:  rofi, dunst, picom
dotfiles
files that start . and makes my Linux box awesome.
Stars: ✭ 57 (+200%)
Mutual labels:  rice, dunst, picom
dotfiles
cross-platform (linux (arch), macos, android (termux), windows (WSL)) dotfiles and scripts, using yadm
Stars: ✭ 17 (-10.53%)
Mutual labels:  ranger, rofi, i3-gaps
dotfiles
Gruvbox inspired Arch Linux i3wm rice.
Stars: ✭ 43 (+126.32%)
Mutual labels:  rice, urxvt, rofi
Dotfiles
🌸 Configuration for i3, kitty, picom, ZSH, gtk, qutebrowser, qbittorrent and more... (All tools for an arch linux new installation)
Stars: ✭ 15 (-21.05%)
Mutual labels:  i3status, kitty, picom
dotfiles
⚫📁 Dotfiles
Stars: ✭ 23 (+21.05%)
Mutual labels:  xresources, rofi, i3-gaps
dotfiles
My awesomewm dotfiles for awesome people! ✨
Stars: ✭ 1,764 (+9184.21%)
Mutual labels:  rice, rofi, picom
dotfiles
Config files for my linux rice
Stars: ✭ 60 (+215.79%)
Mutual labels:  rice, urxvt, dunst
dotfiles-manjaro-i3
Dotfiles for my old manjaro system.
Stars: ✭ 17 (-10.53%)
Mutual labels:  conky, i3-gaps
Dotfiles
Passionately crafted configs for CLI lovers 🐧❤️
Stars: ✭ 70 (+268.42%)
Mutual labels:  conky, ranger
i3wm-config
i3wm config files. Updated config files are in the repository below.
Stars: ✭ 13 (-31.58%)
Mutual labels:  rofi, dunst
Rofi Spotlight
Spotlight-like Rofi
Stars: ✭ 109 (+473.68%)
Mutual labels:  rice, rofi

Linux workspace (debian based distros - 2021)

This is the greatest management of all time.

Screenshots

Preview
Desktop
Desktop

Setup

# Update and install dependencies
sudo apt update
sudo apt upgrade -y
sudo apt install git stow jq

# Clone repo
cd ~
mkdir -p Github
cd Github
git clone https://github.com/AguilarLagunasArturo/linux-workspace.git

# Change directory and remove unneeded files
cd linux-workspace
rm README.md .gitignore

# Install main packages (basic dependencies)
bash home/.homemade/bin/management/install-main-apt-packages

# Create symlinks in the system and restore deleted files
stow --adopt -Svt ~ *
git checkout .

# Add settings to zshrc (optional)
echo "source ~/.rc_config &>/dev/null" >> ~/.zshrc

# Set default shell and terminal emulator (optional)
chsh
sudo update-alternatives --config x-terminal-emulator

# Reboot into an i3 session
systemctl reboot

Troubleshooting

If your distribution does not packages i3-gaps (check by running sudo apt policy i3-gaps) you can either:

  1. Install i3-gaps from source.
  2. Install i3 (without gaps) and remove the gaps settings from the config file.
    • sudo apt install i3-wm i3status i3lock
    • cat ~/.config/i3/config-no-gaps.bak > ~/.config/i3/config

Once in an i3 super+enter to open a terminal, see the shortcuts here.

Notes

  1. home/.homemade is a directory for my custom resources, scrips, etc.
  2. Some scrips from home/.homemade/bin might not work properly.
  3. To set up the latest color scheme run nohup set-global-color-scheme $HOME/.config/xresources/color-schemes/x-default &>/dev/null && exit.

System configuration

Utility Name
Desktop enviroment gnome
Window manager i3-gaps
Login screen sddm, sugar-candy
Bar i3bar, i3status
Compositor picom
Launcher rofi
Terminal kitty, urxvt
Notifications dunst, notify-send

Keyboard shortcuts

Combination Description
super+enter Open terminal
super+ctrl+enter Open file manager
super+a Application launcher
super+b Show or hide i3-bar
super+0-9 Move to workspace
super+shift+0-9 Move current window to workspace
super+ctrl+shift+0-9 Move all windows in current workspace to a new one
super+shift+w Kill current window
super+ctrl+shift Open conky
super+ctrl Close conky
super+l Brightness up
super+k Brightness down
super+alt+l Volume up
super+alt+k Volume down
super+v Next window opens below
super+h Next window opens to the right

See the other shortcuts in ~/.config/i3/config config file.

Stuff I have to do manually

  • Install third party software
  • Set up grub2 theme
  • Set default terminal and shell
    • Set up powerlevel10k for zsh
  • Set up sddm theme
  • Set up crontab
    • Twitter bot

Tutorials

Usefull stow commands

stow --adopt -nvt ~ <stow-folder> # Adds new config files to stow directory
stow -nSvt ~ <stow-folder>        # Symlink config files to $HOME directory
stow -nDvt ~ <stow-folder>        # Removes symlinks from $HOME directory

Read manpages

# Case: 0
man <program-name>
# Case: 1
man -P "less -p 'CONFIGURATION SETTINGS'" <program-name>

Load Xresources

xrdb ~/.Xresources

Set default applications

# fetch the default mimetype from file
xdg-mime query filetype <file.ext>

# fetch the default application from mimetype
xdg-mime query default <mimetype>

# set default application for a mimetype
xdg-mime default </usr/share/applications/app.desktop> <mimetype>

# alternatively for gnome desktop enviroment edit this file
nano ~/.config/mimeapps.list

Set default terminal emulator

sudo update-alternatives --config x-terminal-emulator

Set default shell

# Manual
chsh -s /bin/shell <user>
# Interactive
chsh

Get application name

xprop WM_CLASS

ImageMagick allow Image to PDF

sudo nano /etc/ImageMagick-6/policy.xml
  <!-- disable ghostscript format types -->
  <policy domain="coder" rights="none" pattern="PS" />
  <policy domain="coder" rights="none" pattern="EPS" />
  <policy domain="coder" rights="none" pattern="PDF" /> <!-- CHANGE THIS -->
  <policy domain="coder" rights="none" pattern="XPS" />
  <policy domain="coder" rights="read | write" pattern="PDF" /> <!-- TO THIS -->

Install language support

sudo nano /etc/locale.gen  # Uncomment lines
sudo locale-gen            # Install uncommented languages

Cache Github credentials

git config --global credential.helper 'cache --timeout 1200'

Reset PulseAudio

pulseaudio -k && sudo alsa force-reload

Manage monitors

# List monitors
xrandr

# Configure position
xrandr --output HDMI-0 --left-of eDP --auto

Change hardware properties

# Install xinput
sudo apt install xinput

# List devices
xinput list

# Lits device properties
xinput list-props <device id>

# Set property
xinput set-prop <device id> <property id> <state 1/0>

Set wallpapers

# using feh
feh --bg-fill <img>

# using hydrapaper
hydrapaper -c <img>

Video conversion

# .mkv -> .avi
ffmpeg -i "input.mkv" -f avi -c:v mpeg4 -b:v 4000k -c:a libmp3lame -b:a 320k "out.avi"

# .mkv -> .avi (dual audio -> single audio)
ffmpeg -i "input.mkv" -map 0:v -map 0:a:1 -f avi -c:v mpeg4 -b:v 4000k -c:a libmp3lame -b:a 320k "out.avi"

# speed change
ffmpeg -i input.mp4 -filter:v "setpts=0.005*PTS" output.mp4

# crop video
ffmpeg -i input.mp4 -filter:v "crop:1920:1080:100:50" output.mp4

# Change container
ffmpeg -i input.mkv -codec copy output.mp4

Usefull LaTex commands

# interactive compiler
latexmk -pdf -pvc <file.tex>
latexmk -lualatex -pvc <file.tex>

# just compile
latexmk -pdf <file.tex>
latexmk -lualatex <file.tex>

Redirect output

# redirects output
nohup commmand >/dev/null

# redirects stderr
nohup commmand 2>/dev/null

# redirects all
nohup commmand >/dev/null 2>&1
nohup commmand &>/dev/null

# redirects all and disown
nohup commmand > /dev/null 2>&1 & disown

Add .desktop file

# path to user .desktop files
cd /usr/share/applications

# path to snap .desktop files
cd /var/lib/snapd/desktop/applications
[Desktop Entry]
Type=Application
Name=A name
GenericName=Generic name
Comment=A comment
Exec=/path/to/bin
Icon=icon-name
Terminal=false
Categories=Development;IDE;Programming;
Keywords=software;programming;coding;

Change grub screen

# open config file
sudo nano /etc/default/grub
# Edit or add this lines
GRUB_BACKGROUND="/boot/grub/themes/your-theme/image.png"
GRUB_THEME="/boot/grub/themes/your-theme/theme.txt"
# update grub
sudo update-grub

Change timezone

# lists timezones
timedatectl list-timezones
# set new timezone
sudo timedatectl set-timezone <timezone>

Turn off screen saver for X Window Systems

xset s off

Sync clock with online services

# maintains the system time in synchronism with Internet standard time servers
sudo ntpd -qg

TODO

  • rlwrap
  • gdu
  • dmenu
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].