update dotfiles
Christian Krinitsin code@krinitsin.xyz
Fri, 27 Dec 2024 17:35:18 +0100
7 files changed,
38 insertions(+),
28 deletions(-)
M
bash/.bashrc
→
bash/.bashrc
@@ -19,6 +19,7 @@ alias psa2="ssh -i ~/.ssh/psa -p 60502 ge87liq@psa.in.tum.de"
alias psa3="ssh -i ~/.ssh/psa -p 60503 ge87liq@psa.in.tum.de" alias psa4="ssh -i ~/.ssh/psa -p 60504 ge87liq@psa.in.tum.de" alias psa5="ssh -i ~/.ssh/psa -p 60505 ge87liq@psa.in.tum.de" +alias psa6="ssh -i ~/.ssh/psa -p 60506 ge87liq@psa.in.tum.de" alias psa7="ssh -i ~/.ssh/psa -p 60507 ge87liq@psa.in.tum.de" # Arrow bindings
M
bin/screenshot
→
bin/screenshot
@@ -4,7 +4,7 @@ #
# Takes a screenshot with grimshot, in clipboard or in given directory # -MODE=$(printf "copy\nsave" | dmenu) +MODE=$(printf "save\ncopy" | dmenu) # If dmenu was cancelled, exit program if [ $? -ne 0 ]; then@@ -13,27 +13,29 @@ fi
case "$MODE" in *save*) - cd $HOME - while true; do - selected_dir=$(ls | dmenu -i) - if [ -z "$selected_dir" ]; then - exit 0 - fi - - if [ -d "$selected_dir" ]; then - cd "$selected_dir" - continue - fi - - if [ -e "$selected_dir" ]; then - notify-send "Error: File exists!" - exit 0 - fi - - break - done + cd $HOME/downloads/screenshots + # while true; do + # selected_dir=$(ls | dmenu -i) + # if [ -z "$selected_dir" ]; then + # exit 0 + # fi + # + # if [ -d "$selected_dir" ]; then + # cd "$selected_dir" + # continue + # fi + # + # if [ -e "$selected_dir" ]; then + # notify-send "Error: File exists!" + # exit 0 + # fi + # + # break + # done - grimshot save area "$PWD/$selected_dir.png" && notify-send "$PWD/$selected_dir.png" "saved" + # grimshot save area "$PWD/$selected_dir.png" && notify-send "$PWD/$selected_dir.png" "saved" + timestamp=$(date +"%Y-%m-%d_%H-%M-%S") + grimshot save area "$timestamp.png" && notify-send "$timestamp.png" "saved" ;; *copy*) grimshot copy area && notify-send "Screenshot copied"
M
qutebrowser/.config/qutebrowser/quickmarks
→
qutebrowser/.config/qutebrowser/quickmarks
@@ -1,11 +1,7 @@
-ar https://artemis.in.tum.de/courses everforest https://user-images.githubusercontent.com/58662350/214382352-cd7a4f63-e6ef-4575-82c0-a8b72aa37c0c.png moo https://www.moodle.tum.de/my/ yt https://www.youtube.com/ -dis https://www.disneyplus.com/en-gb/home tumlive https://live.rbg.tum.de/ zu https://zulip.in.tum.de/ -gn https://keep.google.com/#home tum https://campus.tum.de/tumonline/ -krin krinitsin.xyz psa https://psa.in.tum.de/xwiki/bin/view/PSA%20WiSe%202024%20%202025/
M
sway/.config/sway/config
→
sway/.config/sway/config
@@ -92,6 +92,9 @@ workspace 8 output HDMI-A-2
workspace 9 output HDMI-A-2 workspace 0 output HDMI-A-2 +output DP-1 pos 0 0 +output HDMI-A-2 pos 2560 0 + # resize mode bindsym $mod+r mode "resize" mode "resize" {
M
waybar/.config/waybar/config
→
waybar/.config/waybar/config
@@ -4,7 +4,7 @@ "position": "bottom", // Waybar position (top|bottom|left|right)
"height": 20, // Waybar height (to be removed for auto height) "spacing": 2, // Gaps between modules (4px) "modules-left": ["sway/workspaces", "sway/mode", "sway/scratchpad", "custom/media"], - "modules-right": ["pulseaudio", "network", "cpu", "memory", "disk", "temperature", "battery", "clock"], + "modules-right": ["custom/pomodoro", "pulseaudio", "network", "cpu", "memory", "disk", "temperature", "battery", "clock"], "keyboard-state": { "numlock": true,@@ -112,7 +112,7 @@ },
"network": { // "interface": "wlp2*", // (Optional) To force the use of this interface "format-wifi": " {bandwidthTotalBytes}", - "format-ethernet": " {ipaddr}/{cidr}", + "format-ethernet": " {bandwidthTotalBytes}", "format-linked": " {ifname} (No IP)", "format-disconnected": " ⚠", "on-click": "alacritty -e nmtui",@@ -155,6 +155,13 @@ "format": " {}",
"exec": "find $HOME/.local/share/mail/*/INBOX/new/ -type f | wc -l", "interval": 60, "on-click": "thunderbird" - } + }, + "custom/pomodoro": { + "format": "{} ", + "return-type": "json", + "exec": "waybar-module-pomodoro", + "on-click": "waybar-module-pomodoro toggle", + "on-click-right": "waybar-module-pomodoro reset", + } }