From 5573bbb562caf46faa5f4b6146c5e528228ec4b9 Mon Sep 17 00:00:00 2001 From: Kevin Mok Date: Mon, 3 Dec 2018 20:34:32 -0500 Subject: [PATCH] Added script to burn ISO using dd --- README.md | 3 ++- aliases/zsh_aliases | 8 ++++-- configs/neofetch/config.conf | 38 ++++++++++++++++++++-------- scripts/burn-iso.sh | 6 +++++ txt/key_files.txt | 4 ++- txt/pacman-pkgs/auto-pacman-pkgs.txt | 2 +- 6 files changed, 45 insertions(+), 16 deletions(-) create mode 100755 scripts/burn-iso.sh diff --git a/README.md b/README.md index be43424..692c577 100644 --- a/README.md +++ b/README.md @@ -13,7 +13,8 @@ are also for my Linux ## Basic Info -* **OS**: [Arch Linux](https://www.archlinux.org/) ([packages](https://github.com/Kevin-Mok/linux-config/blob/master/txt/pacman-pkgs/auto-pacman-pkgs.txt)) +* **OS**: [Arch Linux](https://www.archlinux.org/) ([packages](https://github.com/Kevin-Mok/linux-config/blob/master/txt/pacman-pkgs/auto-pacman-pkgs.txt)) + * 15s boot time, 25s restart time on an SSD. :smiley: * **Terminal**: [rxvt-unicode-pixbuf](https://www.wikiwand.com/en/Rxvt) * **Shell**: [Zsh](http://zsh.sourceforge.net/) + [oh-my-zsh](https://github.com/robbyrussell/oh-my-zsh) * **Window Manager**: [i3wm](https://i3wm.org/) + [i3-gaps](https://github.com/Airblader/i3) diff --git a/aliases/zsh_aliases b/aliases/zsh_aliases index a07b36d..504fa77 100644 --- a/aliases/zsh_aliases +++ b/aliases/zsh_aliases @@ -39,12 +39,16 @@ function rg() { grep -nr $1 * ; } function cpd() { cp -avr $1 $2 ; } # extract tar archive -function untar() { tar -xzvf $1 && rm $1; } +function utar() { tar -xzvf $1 && rm $1; } function rzip() { unzip $1 && rm $1; } function lzip() { unzip -l $1 | less; } alias mkpk="makepkg -sri" - alias mkex="chmod 777" +alias udm="udisksctl mount -b" +alias udu="udisksctl unmount -b" +alias mkex="chmod 777" +alias ctle="systemctl enable" +alias ctls="systemctl start" # }}} command line related # diff --git a/configs/neofetch/config.conf b/configs/neofetch/config.conf index 97982bd..4e34093 100644 --- a/configs/neofetch/config.conf +++ b/configs/neofetch/config.conf @@ -1,3 +1,5 @@ +# header {{{ # + # Neofetch config file # https://github.com/dylanaraps/neofetch @@ -8,36 +10,47 @@ print_info() { info title info underline - info "OS" distro +# }}} header # + +# enabled {{{ # + + info "Kernel" kernel info "Terminal" term info "Terminal Font" term_font info "Shell" shell - # info "Font" font info "Packages" packages info "WM" wm info "WM Theme" wm_theme + # info "Font" font # info "Theme" theme # info "Icons" icons info "CPU" cpu + info "CPU Usage" cpu_usage info "GPU" gpu - # info "CPU Usage" cpu_usage + info "GPU Driver" gpu_driver # Linux only info "Memory" memory info "Disk" disk info "Resolution" resolution - # info "Uptime" uptime - info "Install Date" install_date info "Song" song + # info "Install Date" install_date +# }}} enabled # + +# others {{{ # + + # info "Host" model + # info "Uptime" uptime + # info "DE" de # info "Users" users - # info "Host" model - # info "Kernel" kernel - # info "DE" de - # info "GPU Driver" gpu_driver # Linux only # info "Battery" battery # info "Local IP" local_ip # info "Public IP" public_ip # info "Locale" locale # This only works on glibc systems. +# }}} others # + +# options {{{ # + info line_break info cols info line_break @@ -136,7 +149,8 @@ shell_version="on" # Flag: --speed_type # Supports: Linux with 'cpufreq' # NOTE: Any file in '/sys/devices/system/cpu/cpu0/cpufreq' can be used as a value. -speed_type="bios_limit" +# speed_type="bios_limit" +speed_type="scaling_max_freq" # CPU speed shorthand # @@ -202,7 +216,7 @@ cpu_cores="logical" # C: 'Intel i7-6500U (4) @ 3.1GHz [27.2°C]' # F: 'Intel i7-6500U (4) @ 3.1GHz [82.0°F]' # off: 'Intel i7-6500U (4) @ 3.1GHz' -cpu_temp="off" +cpu_temp="on" # GPU @@ -732,3 +746,5 @@ stdout="off" # NOTE: Don't change this value, neofetch reads this to determine # how to handle backwards compatibility. config_version="3.3.0" + +# }}} options # diff --git a/scripts/burn-iso.sh b/scripts/burn-iso.sh new file mode 100755 index 0000000..d6677e6 --- /dev/null +++ b/scripts/burn-iso.sh @@ -0,0 +1,6 @@ +#!/bin/bash + +usb=/dev/sdc +iso=/run/media/kevin/pc-backup/isos/w10.iso + +sudo dd bs=4M if=$iso of=$usb conv=fdatasync status=progress diff --git a/txt/key_files.txt b/txt/key_files.txt index c6337c5..8339a46 100644 --- a/txt/key_files.txt +++ b/txt/key_files.txt @@ -4,6 +4,7 @@ d ~/linux-config/txt/key_dirs.txt f ~/linux-config/txt/key_files.txt i ~/.config/i3blocks/i3blocks.conf +p ~/linux-config/txt/pacman-pkgs/auto-pacman-pkgs.txt r ~/.config/ranger/rc.conf sr ~/linux-config/configs/ranger/shortcuts.conf ss ~/.shortcuts @@ -19,7 +20,8 @@ z ~/linux-config/aliases/zsh_aliases hlg ~/coding/spotify-lib-vis/src/api/management/commands/update-history.log jn ~/Documents/journal/todo/11.md jnt ~/Documents/journal/todo/todo.md -n ./.gitignore +no ./.gitignore +ne ~/linux-config/configs/neofetch/config.conf tm ~/.vim/plugged/vim-snippets/UltiSnips/texmath.snippets # }}} cdn * diff --git a/txt/pacman-pkgs/auto-pacman-pkgs.txt b/txt/pacman-pkgs/auto-pacman-pkgs.txt index cc6b51e..2a0fba2 100644 --- a/txt/pacman-pkgs/auto-pacman-pkgs.txt +++ b/txt/pacman-pkgs/auto-pacman-pkgs.txt @@ -39,7 +39,7 @@ redshift sed sudo tar -udiskie +udisks2 unzip vi wireless_tools