diff options
| author | Christian Krinitsin <code@krinitsin.xyz> | 2024-12-27 17:35:18 +0100 |
|---|---|---|
| committer | Christian Krinitsin <code@krinitsin.xyz> | 2024-12-27 17:35:40 +0100 |
| commit | 4d201b6329b334092d9939372118761188883bcd (patch) | |
| tree | f7553c4993d685e1461096a98f2d4cdba994dd21 | |
| parent | 6891c0b3055fd0cfbc7f99d47b6d74172ab27994 (diff) | |
| download | dotfiles-4d201b6329b334092d9939372118761188883bcd.tar.gz dotfiles-4d201b6329b334092d9939372118761188883bcd.zip | |
update dotfiles
| -rw-r--r-- | bash/.bashrc | 1 | ||||
| -rw-r--r-- | bin/.gitignore | 1 | ||||
| -rwxr-xr-x | bin/screenshot | 46 | ||||
| -rwxr-xr-x | bin/waybar-module-pomodoro | bin | 0 -> 6679736 bytes | |||
| -rw-r--r-- | qutebrowser/.config/qutebrowser/quickmarks | 4 | ||||
| -rw-r--r-- | sway/.config/sway/config | 3 | ||||
| -rw-r--r-- | waybar/.config/waybar/config | 13 |
7 files changed, 39 insertions, 29 deletions
diff --git a/bash/.bashrc b/bash/.bashrc index 3d78e94..fffef41 100644 --- a/bash/.bashrc +++ b/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 diff --git a/bin/.gitignore b/bin/.gitignore new file mode 100644 index 0000000..060146f --- /dev/null +++ b/bin/.gitignore @@ -0,0 +1 @@ +bambu_studio diff --git a/bin/screenshot b/bin/screenshot index e6956cb..9704a2c 100755 --- a/bin/screenshot +++ b/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 - - grimshot save area "$PWD/$selected_dir.png" && notify-send "$PWD/$selected_dir.png" "saved" + 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" + 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" diff --git a/bin/waybar-module-pomodoro b/bin/waybar-module-pomodoro new file mode 100755 index 0000000..8be287e --- /dev/null +++ b/bin/waybar-module-pomodoro Binary files differdiff --git a/qutebrowser/.config/qutebrowser/quickmarks b/qutebrowser/.config/qutebrowser/quickmarks index 8c6e23c..3bf3dd2 100644 --- a/qutebrowser/.config/qutebrowser/quickmarks +++ b/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/ diff --git a/sway/.config/sway/config b/sway/.config/sway/config index f8e20e1..e77b64f 100644 --- a/sway/.config/sway/config +++ b/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" { diff --git a/waybar/.config/waybar/config b/waybar/.config/waybar/config index ddcacca..9693a60 100644 --- a/waybar/.config/waybar/config +++ b/waybar/.config/waybar/config @@ -4,7 +4,7 @@ "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 @@ "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", + } } |