Compare commits

...

13 Commits

Author SHA1 Message Date
Tuan-Dat Tran
c24fd84b7b Added notes for pcmanfm and some other tools
Signed-off-by: Tuan-Dat Tran <tuan-dat.tran@tudattr.dev>
2024-03-15 22:17:47 +01:00
Tuan-Dat Tran
1fdd8d0276 added dust
Signed-off-by: Tuan-Dat Tran <tuan-dat.tran@tudattr.dev>
2024-03-15 16:55:30 +01:00
Tuan-Dat Tran
ac0d51e712 Fixed i3config
Signed-off-by: Tuan-Dat Tran <tuan-dat.tran@tudattr.dev>
2024-03-15 16:54:27 +01:00
Tuan-Dat Tran
4be55c69b4 Removed unused software
Signed-off-by: Tuan-Dat Tran <tuan-dat.tran@tudattr.dev>
2024-03-15 16:39:01 +01:00
Tuan-Dat Tran
5f3703da07 cleanup
Signed-off-by: Tuan-Dat Tran <tuan-dat.tran@tudattr.dev>
2024-03-15 16:37:48 +01:00
Tuan-Dat Tran
172702b289 merge
Signed-off-by: Tuan-Dat Tran <tuan-dat.tran@tudattr.dev>
2024-03-15 16:32:15 +01:00
TuDatTr
59e661e620 Configurations and Enhancements: Added Alacritty terminal settings, adjusted Cava audio visualizer and i3 window manager configurations, updated Nushell settings, refined Ranger bookmarks, introduced a battery statistics script, updated SSH configurations, fine-tuned Emacs and Zsh settings. Also, included new files for battery statistics and Emacs-related configurations. This commit enhances the overall user experience and system configurations.
Signed-off-by: TuDatTr <tuan-dat.tran@tudattr.dev>
2024-02-15 21:19:02 +01:00
TuDatTr
38b7133cfb Removed history.txt
Signed-off-by: TuDatTr <tuan-dat.tran@tudattr.dev>
2023-10-09 01:21:40 +02:00
TuDatTr
fd2da739e8 Added nuconfig
Signed-off-by: TuDatTr <tuan-dat.tran@tudattr.dev>
2023-10-09 01:14:30 +02:00
TuDatTr
a046134f7e Added local git in gitconfig
Signed-off-by: TuDatTr <tuan-dat.tran@tudattr.dev>
2023-10-09 01:10:23 +02:00
TuDatTr
49118bbc01 Added auto completion for nmcli c u on nushell
Signed-off-by: TuDatTr <tuan-dat.tran@tudattr.dev>
2023-08-03 18:31:50 +02:00
TuDatTr
5fa0681986 Updated for nushell v0.83 and some changes in doom emacs config
Signed-off-by: TuDatTr <tuan-dat.tran@tudattr.dev>
2023-07-29 16:16:29 +02:00
TuDatTr
48eace8cee Update various configuration files
Signed-off-by: TuDatTr <tuan-dat.tran@tudattr.dev>
2023-06-01 14:06:18 +02:00
8 changed files with 112 additions and 28 deletions

View File

@@ -2,24 +2,35 @@
This is my ArchLinux configuration.
Tested on Acer Travelmate X349-G2-M and Lenovo Thinkpad E14 G5.
First one was a Intel machine, the current one a AMD machine, hence the changes
towards AMD graphics.
## Install dependencies
```bash
paru -S syncthing feh bottom zellij eza bat maim vlc python-pillow i3lock-color \
vlc fd ripgrep unzip npm bacon simple-scan dunst picom \
adobe-source-han-sans-jp-fonts obs-studio git zsh wget lightdm \
lightdm-webkit2-greeter xorg-server i3-gaps xorg-xbacklight xorg-xrandr \
alsa-utils pulseaudio pulseaudio-alsa pulseaudio-bluetooth playerctl \
pavucontrol btrfs-progs udiskie blueman acpi acpid tlp conky stow openssh \
firefox veracrypt keepassxc ranger rofi chromium delta-git xdotool xclip \
neofetch
vlc fd ripgrep unzip npm bacon simple-scan dunst picom zathura-pdf-mupdf dust \
adobe-source-han-sans-jp-fonts obs-studio git zsh wget lightdm zathura pcmanfm \
lightdm-webkit2-greeter xorg-server i3-gaps xorg-xbacklight xorg-xrandr xclip \
alsa-utils pulseaudio pulseaudio-alsa pulseaudio-bluetooth playerctl xdotool \
pavucontrol btrfs-progs udiskie blueman acpi acpid tlp conky stow openssh xsel \
firefox veracrypt keepassxc ranger rofi chromium delta-git tesseract-data-eng \
neofetch xf86-video-amdgpu lib32-mesa libva-mesa-driver lxappearance mesa-vdpau \
lib32-libva-mesa-driver lib32-mesa-vdpau tesseract-data-eng p7zip
```
## Picture
[[./resources/24-03-15_16-06-52-alacritty.png]]
## Permissions
```sh
usermod -a -G network $USER
usermod -a -G video $USER
usermod -a -G $SUDOGRP $USER
```
## Get Started
```sh
@@ -29,3 +40,9 @@ stow config
stow vim
stow zsh
```
## GUI
I'm using pcmanfm with [[Sweet - New Flavor](https://www.gnome-look.org/p/1253385/)].
The downloaded file needs to be extracted into `~/.themes/`.
The Icons are from the related icon set: [[Candy Icons](https://www.gnome-look.org/p/1305251)].

View File

@@ -80,7 +80,7 @@ bindsym $mod+Shift+0 move container to workspace $ws0; workspace $ws0
# Open specific applications in floating mode
for_window [class="(?i)virtualbox"] floating enable border normal
for_window [title="KeePassX$"] floating enable border normal
for_window [title="KeePassX$"] floating enable
###############################################################################
############################ Startup Applications #############################
@@ -90,10 +90,9 @@ exec --no-startup-id setxkbmap eu; setxkbmap -option ctrl:nocaps;
exec --no-startup-id picom
exec --no-startup-id udiskie
exec --no-startup-id conky -c ~/.conky/syclo-crimson-bottomleft.conkyrc
# exec --no-startup-id synergyc -f --no-tray --debug INFO --name genesis --enable-crypto 192.168.178.38:24800
exec --no-startup-id dunst
exec --no-startup-id ~/.scripts/startup.sh
exec --no-startup-id syncthing
exec --no-startup-id syncthing serve --no-browser
exec --no-startup-id feh --randomize --bg-fill $HOME/Pictures/Wallpaper/*
###############################################################################
@@ -127,6 +126,7 @@ bindsym XF86AudioPlay exec "playerctl play-pause"
bindsym XF86AudioStop exec "playerctl stop"
bindsym XF86AudioNext exec "playerctl next"
bindsym XF86AudioPrevious exec "playerctl previous"
bindsym XF86AudioMicMute exec "amixer set Capture toggle"
# Application Shortcuts
bindsym $mod+b exec firefox

View File

@@ -17,6 +17,7 @@ keybinds {
bind "Alt k" "Alt Up" { MoveFocus "Up"; }
bind "Alt n" { NewPane; }
bind "Alt t" { NewTab; }
bind "Alt w" { ToggleFloatingPanes; }
bind "Alt =" "Alt +" { Resize "Increase"; }
bind "Alt -" { Resize "Decrease"; }

View File

@@ -1,3 +1,7 @@
[user]
email = tuan-dat.tran@tudattr.dev
name = Tuan-Dat Tran
[core]
pager = delta
@@ -13,6 +17,3 @@
[diff]
colorMoved = default
[user]
email = tuan-dat.tran@tudattr.dev
name = Tuan-Dat Tran

View File

@@ -0,0 +1,19 @@
u:/home/tuan/Documents/Uni/Studium
p:/home/tuan/Documents/Protokolle/FSE
o:/home/tuan/.dotfiles/config
m:/home/tuan/Documents/Arbeit/Uni-DuE_NCS_SHK/04_-_Projekte/04-5G_IANA/02-machine-learning/mvr
a:/home/tuan/Documents/Arbeit/Uni-DuE_NCS_SHK
l:/home/tuan/Local
c:/home/tuan/Documents/CTF
t:/home/tuan/Templates
w:/home/tuan/workspace_l/home_lab/wiki
k:/home/tuan/.syncthing/Documents/Uni/Studium/2022_Sommersemester/Bachelorprojekt/Implement EFCF based on libAFL/git/foundry/evm/src/executor
q:/home/tuan/Documents/Arbeit/Uni-DuE_NCS_SHK/04_-_Projekte/04-5G_IANA/02-gps
':/home/tuan/workspace_l/rust/LibAFL/fuzzers
e:/home/tuan/Documents/Uni/Studium/2022&2023_Wintersemester/Bachelorprojekt/ethfuzz
s:/home/tuan/Pictures/Screenshots
v:/home/tuan/.aya01/Documents/Arbeit/Uni-DuE_NCS_SHK/04_-_Projekte/06-Server_Setup/ansible
f:/home/tuan/Documents/Finanzen/Unternehmen/Rechnungen
g:/home/tuan/workspace_l/home_lab
r:/home/tuan/Documents/roam
b:/home/tuan/.syncthing/Documents/Uni/Studium/2022&2023_Wintersemester/Bachelorprojekt/ethfuzz

View File

@@ -0,0 +1,10 @@
#!/bin/bash
FILENAME=$(date -I)
while true; do
TIMESTAMP=$(date +%s)
STATS=$(acpi | sed "s/.*\([0-9]\{2\}\)%.*/\1/")
echo "$TIMESTAMP,$STATS" >> ~/.scripts/battery_$FILENAME.log
sleep 1
done

View File

@@ -1,17 +1,23 @@
#!/bin/sh
type xbacklight >/dev/null 2>&1 || { echo >&2 "I require xbacklight but it's not installed. Aborting."; exit 1; }
type dunstify >/dev/null 2>&1 || { echo >&2 "I require dunstify but it's not installed. Aborting."; exit 1; }
type xbacklight >/dev/null 2>&1 || {
echo >&2 "I require xbacklight but it's not installed. Aborting."
exit 1
}
type dunstify >/dev/null 2>&1 || {
echo >&2 "I require dunstify but it's not installed. Aborting."
exit 1
}
case $1 in
"up"*)
xbacklight -inc 10 &
currentBrightness=$(xbacklight | cut -d\. -f1);
dunstify -r 1 'brightness up'\ \($currentBrightness%\);
;;
"down"*)
xbacklight -dec 10 &
currentBrightness=$(xbacklight | cut -d\. -f1);
dunstify -r 1 'brightness down'\ \($currentBrightness%\);
;;
"up"*)
xbacklight -inc 10 &
currentBrightness=$(xbacklight -get)
dunstify -r 1 'brightness up'\ \($currentBrightness%\)
;;
"down"*)
xbacklight -dec 10 &
currentBrightness=$(xbacklight -get)
dunstify -r 1 'brightness down'\ \($currentBrightness%\)
;;
esac

View File

@@ -11,12 +11,38 @@ export EDITOR="nvim"
# History
export HISTSIZE=10000000
export SAVEHIST=10000000
export HISTSIZE=50000
export SAVEHIST=50000
export HISTTIMEFORMAT="[%F %T] "
# Following commands from: https://registerspill.thorstenball.com/p/which-command-did-you-run-1731-days
# Immediately append to history file:
setopt INC_APPEND_HISTORY
# Record timestamp in history:
setopt EXTENDED_HISTORY
# Expire duplicate entries first when trimming history:
setopt HIST_EXPIRE_DUPS_FIRST
# Dont record an entry that was just recorded again:
setopt HIST_IGNORE_DUPS
# Delete old recorded entry if new entry is a duplicate:
setopt HIST_IGNORE_ALL_DUPS
# Do not display a line previously found:
setopt HIST_FIND_NO_DUPS
# Dont record an entry starting with a space:
setopt HIST_IGNORE_SPACE
# Dont write duplicate entries in the history file:
setopt HIST_SAVE_NO_DUPS
# Share history between all sessions:
setopt SHARE_HISTORY
# Alias
alias q="exit"
alias b="byobu"
@@ -25,7 +51,6 @@ alias cat="bat --pager=never"
alias ranger='ranger --choosedir=$HOME/.rangerdir; LASTDIR=`cat $HOME/.rangerdir`; cd "$LASTDIR"'
alias xsel='xsel -ib'
alias msfconsole="msfconsole -x \"db_connect metasploit@msf\""
alias nmap="nmap -T5 --min-parallelism 100 -Pn"
alias ed="\emacs --daemon"
alias e="open_emacs"
alias df="df -h"
@@ -63,3 +88,8 @@ source $ZSH/oh-my-zsh.sh
add_soft_git() { git remote add soft ssh://git.aya01:/$1 }
open_emacs() { emacsclient -c $1 & disown; };
autoload -U +X bashcompinit && bashcompinit
complete -o nospace -C /usr/bin/terraform terraform
# echo "rm -rf braincells/*"