From 40c6e1c4b08b921836e5d0e0d351c0bf74e1acc4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?c=C4=83t=C4=83lin?= Date: Thu, 19 Jan 2023 16:51:58 +0100 Subject: [PATCH] wip: add dezzai dotfiles --- .dotter/global.toml | 3 +- bspwm/bspwmrc | 10 +- fish/conf.d/aliases.fish | 3 +- greenclip.toml | 12 ++ quickmarks | 13 -- qute => qutebrowser/config.py | 2 + qutebrowser/quickmarks | 5 + qutebrowser/qutewal.py | 350 ++++++++++++++++++++++++++++++++++ sxhkd/sxhkdrc | 12 +- utils/set-monitors.sh | 4 +- 10 files changed, 387 insertions(+), 27 deletions(-) create mode 100644 greenclip.toml delete mode 100644 quickmarks rename qute => qutebrowser/config.py (66%) create mode 100644 qutebrowser/quickmarks create mode 100644 qutebrowser/qutewal.py diff --git a/.dotter/global.toml b/.dotter/global.toml index 649f65c..22bf9d9 100644 --- a/.dotter/global.toml +++ b/.dotter/global.toml @@ -9,6 +9,5 @@ polybar = "~/.config/polybar" walls = "~/Pictures/walls" utils = "~/.local/bin/185504a9-utils/" ideavim = "~/.ideavimrc" -qute = "~/.config/qutebrowser/config.py" -quickmarks = "~/.config/qutebrowser/quickmarks" +qutebrowser = "~/.config/qutebrowser" chaakoo = "~/.config/chaakoo/" diff --git a/bspwm/bspwmrc b/bspwm/bspwmrc index a6e42a0..9eab209 100755 --- a/bspwm/bspwmrc +++ b/bspwm/bspwmrc @@ -5,22 +5,24 @@ #### sxhkd & -wal -i ~/Pictures/walls/odin-dark.jpg -. "${HOME}/.cache/wal/colors.sh" +wal -i ~/Pictures/walls/vapor4.jpg & +feh --bg-fill ~/Pictures/walls/vapor4.jpg & +. "${HOME}/.cache/00-80s.jpg" & compton & ~/.config/polybar/launch.sh pidof dunst && killall dunst && dunst &-c ~/.config/dunst/dunstrc > /dev/null 2>&1 & xsetroot -cursor_name left_ptr & wmname LG3D & +greenclip daemon & bspc monitor -d eDP-1 1 2 3 4 -bspc monitor -d HDMI-1 5 6 7 8 9 +bspc monitor -d HDMI-2 5 6 7 8 9 #### #### bspwm #### -~/.builds/bin/set-monitors.sh +#~/.builds/bin/set-monitors.sh bspc config border_width 5 bspc config window_gap 8 diff --git a/fish/conf.d/aliases.fish b/fish/conf.d/aliases.fish index e1bbc80..5bacafa 100644 --- a/fish/conf.d/aliases.fish +++ b/fish/conf.d/aliases.fish @@ -1,3 +1,4 @@ alias ls 'exa -alh' alias cat 'batcat' -alias cva 'chaakoo -c $HOME/.config/chaakoo/sls_offline.yml 2> /dev/null ; tmux a -t sls-offline' +alias g 'git' +alias rm 'trash' diff --git a/greenclip.toml b/greenclip.toml new file mode 100644 index 0000000..72c220d --- /dev/null +++ b/greenclip.toml @@ -0,0 +1,12 @@ +[greenclip] + history_file = "/home/erebe/.cache/greenclip.history" + max_history_length = 50 + max_selection_size_bytes = 0 + trim_space_from_selection = true + use_primary_selection_as_input = false + blacklisted_applications = [] + enable_image_support = true + image_cache_directory = "/tmp/greenclip" + static_history = [ + '''¯\_(ツ)_/¯''', +] diff --git a/quickmarks b/quickmarks deleted file mode 100644 index 6077794..0000000 --- a/quickmarks +++ /dev/null @@ -1,13 +0,0 @@ -cecochat https://chat.cecotec.cloud/home -cecogoogle https://mail.google.com/mail/u/0/#inbox -cecobitrix https://cecotecinn.bitrix24.es/stream/ -cecofichaje https://ingress.cecotec.cloud/login -cecogitlab https://gitlab.com/dashboard/merge_requests?assignee_username=airimitoaie -consoleaws https://eu-west-1.console.aws.amazon.com/console/home?region=eu-west-1# -ask https://developer.amazon.com/alexa/console/ask -awsapps-api https://eu-west-1.console.aws.amazon.com/apigateway/main/apis?region=eu-west-1 -awsapps-watch https://eu-west-1.console.aws.amazon.com/cloudwatch/home?region=eu-west-1# -awsapps-lambda https://eu-west-1.console.aws.amazon.com/lambda/home?region=eu-west-1#/functions -valexa-pipelines https://gitlab.com/cecotec/producto/va/AlexaIntegration/-/pipelines -chalice makefile https://github.com/aws/chalice/blob/master/Makefile -smarthome https://gitlab.com/cecotec/producto/CecoSmartHome_Backend diff --git a/qute b/qutebrowser/config.py similarity index 66% rename from qute rename to qutebrowser/config.py index d88be87..6bca46c 100644 --- a/qute +++ b/qutebrowser/config.py @@ -1,2 +1,4 @@ config.load_autoconfig(True) config.source('qutewal.py') +c.auto_save.session = False + diff --git a/qutebrowser/quickmarks b/qutebrowser/quickmarks new file mode 100644 index 0000000..03b6d15 --- /dev/null +++ b/qutebrowser/quickmarks @@ -0,0 +1,5 @@ +dezzai/mail outlook.office.com +dezzai/teams teams.microsoft.com +dezzai/git/202 github.com/medlabmg/202-backend +dezzai/jira medlabmg.atlassian.net/jira/your-work +dezzai/zeplin app.zeplin.io/project/62aaee2dc5a0842ffc925a3a diff --git a/qutebrowser/qutewal.py b/qutebrowser/qutewal.py new file mode 100644 index 0000000..bb66ca1 --- /dev/null +++ b/qutebrowser/qutewal.py @@ -0,0 +1,350 @@ +import json +import os + +qutewal_dynamic_loading = False + +home = os.getenv('HOME') +colors_relative = '.cache/wal/colors.json' +daemon_relative = '.config/qutebrowser/qutewald.py' +colors_absolute = os.path.join(home, colors_relative) +daemon_absolute = os.path.join(home, daemon_relative) + +if os.path.isfile(colors_absolute): + with open(colors_absolute) as colorfile: + colors = json.load(colorfile) + cursor = colors['special']['cursor'] + background = colors['special']['background'] + foreground = colors['special']['foreground'] + black = colors['colors']['color0'] + white = colors['colors']['color7'] + gray = colors['colors']['color8'] + red = colors['colors']['color1'] + green = colors['colors']['color2'] + yellow = colors['colors']['color3'] + blue = colors['colors']['color4'] + magenta = colors['colors']['color5'] + cyan = colors['colors']['color6'] + + # Background color of the completion widget category headers. + # Type: QssColor + c.colors.completion.category.bg = background + + # Bottom border color of the completion widget category headers. + # Type: QssColor + c.colors.completion.category.border.bottom = background + + # Top border color of the completion widget category headers. + # Type: QssColor + c.colors.completion.category.border.top = background + + # Foreground color of completion widget category headers. + # Type: QtColor + c.colors.completion.category.fg = foreground + + # Background color of the completion widget for even rows. + # Type: QssColor + c.colors.completion.even.bg = background + + # Background color of the completion widget for odd rows. + # Type: QssColor + c.colors.completion.odd.bg = background + + # Text color of the completion widget. + # Type: QtColor + c.colors.completion.fg = foreground + + # Background color of the selected completion item. + # Type: QssColor + c.colors.completion.item.selected.bg = gray + + # Bottom border color of the selected completion item. + # Type: QssColor + c.colors.completion.item.selected.border.bottom = background + + # Top border color of the completion widget category headers. + # Type: QssColor + c.colors.completion.item.selected.border.top = background + + # Foreground color of the selected completion item. + # Type: QtColor + c.colors.completion.item.selected.fg = foreground + + # Foreground color of the matched text in the completion. + # Type: QssColor + c.colors.completion.match.fg = yellow + + # Color of the scrollbar in completion view + # Type: QssColor + c.colors.completion.scrollbar.bg = background + + # Color of the scrollbar handle in completion view. + # Type: QssColor + c.colors.completion.scrollbar.fg = gray + + # Background color for the download bar. + # Type: QssColor + c.colors.downloads.bar.bg = background + + # Background color for downloads with errors. + # Type: QtColor + c.colors.downloads.error.bg = red + + # Foreground color for downloads with errors. + # Type: QtColor + c.colors.downloads.error.fg = foreground + + # Color gradient stop for download backgrounds. + # Type: QtColor + c.colors.downloads.stop.bg = cyan + + # Color gradient interpolation system for download backgrounds. + # Type: ColorSystem + # Valid values: + # - rgb: Interpolate in the RGB color system. + # - hsv: Interpolate in the HSV color system. + # - hsl: Interpolate in the HSL color system. + # - none: Don't show a gradient. + c.colors.downloads.system.bg = 'none' + + # Background color for hints. Note that you can use a `rgba(...)` value + # for transparency. + # Type: QssColor + c.colors.hints.bg = yellow + + # Font color for hints. + # Type: QssColor + c.colors.hints.fg = background + + # Font color for the matched part of hints. + # Type: QssColor + c.colors.hints.match.fg = blue + + # Background color of the keyhint widget. + # Type: QssColor + c.colors.keyhint.bg = background + + # Text color for the keyhint widget. + # Type: QssColor + c.colors.keyhint.fg = foreground + + # Highlight color for keys to complete the current keychain. + # Type: QssColor + c.colors.keyhint.suffix.fg = yellow + + # Background color of an error message. + # Type: QssColor + c.colors.messages.error.bg = red + + # Border color of an error message. + # Type: QssColor + c.colors.messages.error.border = red + + # Foreground color of an error message. + # Type: QssColor + c.colors.messages.error.fg = foreground + + # Background color of an info message. + # Type: QssColor + c.colors.messages.info.bg = blue + + # Border color of an info message. + # Type: QssColor + c.colors.messages.info.border = blue + + # Foreground color an info message. + # Type: QssColor + c.colors.messages.info.fg = foreground + + # Background color of a warning message. + # Type: QssColor + c.colors.messages.warning.bg = red + + # Border color of a warning message. + # Type: QssColor + c.colors.messages.warning.border = red + + # Foreground color a warning message. + # Type: QssColor + c.colors.messages.warning.fg = foreground + + # Background color for prompts. + # Type: QssColor + c.colors.prompts.bg = background + + # # Border used around UI elements in prompts. + # # Type: String + c.colors.prompts.border = '1px solid ' + background + + # Foreground color for prompts. + # Type: QssColor + c.colors.prompts.fg = foreground + + # Background color for the selected item in filename prompts. + # Type: QssColor + c.colors.prompts.selected.bg = magenta + + # Background color of the statusbar in caret mode. + # Type: QssColor + c.colors.statusbar.caret.bg = cyan + + # Foreground color of the statusbar in caret mode. + # Type: QssColor + c.colors.statusbar.caret.fg = cursor + + # Background color of the statusbar in caret mode with a selection. + # Type: QssColor + c.colors.statusbar.caret.selection.bg = cyan + + # Foreground color of the statusbar in caret mode with a selection. + # Type: QssColor + c.colors.statusbar.caret.selection.fg = foreground + + # Background color of the statusbar in command mode. + # Type: QssColor + c.colors.statusbar.command.bg = background + + # Foreground color of the statusbar in command mode. + # Type: QssColor + c.colors.statusbar.command.fg = foreground + + # Background color of the statusbar in private browsing + command mode. + # Type: QssColor + c.colors.statusbar.command.private.bg = background + + # Foreground color of the statusbar in private browsing + command mode. + # Type: QssColor + c.colors.statusbar.command.private.fg = foreground + + # Background color of the statusbar in insert mode. + # Type: QssColor + c.colors.statusbar.insert.bg = green + + # Foreground color of the statusbar in insert mode. + # Type: QssColor + c.colors.statusbar.insert.fg = background + + # Background color of the statusbar. + # Type: QssColor + c.colors.statusbar.normal.bg = background + + # Foreground color of the statusbar. + # Type: QssColor + c.colors.statusbar.normal.fg = foreground + + # Background color of the statusbar in passthrough mode. + # Type: QssColor + c.colors.statusbar.passthrough.bg = blue + + # Foreground color of the statusbar in passthrough mode. + # Type: QssColor + c.colors.statusbar.passthrough.fg = foreground + + # Background color of the statusbar in private browsing mode. + # Type: QssColor + c.colors.statusbar.private.bg = background + + # Foreground color of the statusbar in private browsing mode. + # Type: QssColor + c.colors.statusbar.private.fg = foreground + + # Background color of the progress bar. + # Type: QssColor + c.colors.statusbar.progress.bg = foreground + + # Foreground color of the URL in the statusbar on error. + # Type: QssColor + c.colors.statusbar.url.error.fg = red + + # Default foreground color of the URL in the statusbar. + # Type: QssColor + c.colors.statusbar.url.fg = foreground + + # Foreground color of the URL in the statusbar for hovered links. + # Type: QssColor + c.colors.statusbar.url.hover.fg = blue + + # Foreground color of the URL in the statusbar on successful load + # (http). + # Type: QssColor + c.colors.statusbar.url.success.http.fg = foreground + + # Foreground color of the URL in the statusbar on successful load + # (https). + # Type: QssColor + c.colors.statusbar.url.success.https.fg = gray + + # Foreground color of the URL in the statusbar when there's a warning. + # Type: QssColor + c.colors.statusbar.url.warn.fg = red + + # Background color of the tab bar. + # Type: QtColor + c.colors.tabs.bar.bg = background + + # Background color of unselected even tabs. + # Type: QtColor + c.colors.tabs.even.bg = background + + # Foreground color of unselected even tabs. + # Type: QtColor + c.colors.tabs.even.fg = foreground + + # Color for the tab indicator on errors. + # Type: QtColor + c.colors.tabs.indicator.error = red + + # Color gradient start for the tab indicator. + # Type: QtColor + # c.colors.tabs.indicator.start = magenta + + # Color gradient end for the tab indicator. + # Type: QtColor + # c.colors.tabs.indicator.stop = red + + # Color gradient interpolation system for the tab indicator. + # Type: ColorSystem + # Valid values: + # - rgb: Interpolate in the RGB color system. + # - hsv: Interpolate in the HSV color system. + # - hsl: Interpolate in the HSL color system. + # - none: Don't show a gradient. + c.colors.tabs.indicator.system = 'none' + + # Background color of unselected odd tabs. + # Type: QtColor + c.colors.tabs.odd.bg = background + + # Foreground color of unselected odd tabs. + # Type: QtColor + c.colors.tabs.odd.fg = foreground + + # Background color of selected even tabs. + # Type: QtColor + c.colors.tabs.selected.even.bg = blue + + # Foreground color of selected even tabs. + # Type: QtColor + c.colors.tabs.selected.even.fg = foreground + + # Background color of selected odd tabs. + # Type: QtColor + c.colors.tabs.selected.odd.bg = blue + + # Foreground color of selected odd tabs. + # Type: QtColor + c.colors.tabs.selected.odd.fg = foreground + + # Background color for webpages if unset (or empty to use the theme's + # color) + # Type: QtColor + c.colors.webpage.bg = foreground + + if qutewal_dynamic_loading or bool(os.getenv('QUTEWAL_DYNAMIC_LOADING')): + import signal + import subprocess + import prctl + + # start iqutefy to refresh colors on the fly + qutewald = subprocess.Popen( + [daemon_absolute, colors_absolute], + preexec_fn=lambda: prctl.set_pdeathsig(signal.SIGTERM)) diff --git a/sxhkd/sxhkdrc b/sxhkd/sxhkdrc index c7e062b..355bca9 100755 --- a/sxhkd/sxhkdrc +++ b/sxhkd/sxhkdrc @@ -8,7 +8,7 @@ Print # terminal emulator ctrl + alt + t - kermit -c "$HOME/.config/kermit.conf" -e "ufetch && $SHELL" + kermit -c "$HOME/.config/kermit.conf" ctrl + shift + alt + l i3lock-fancy -p @@ -16,10 +16,12 @@ ctrl + shift + alt + l # program launcher super + d rofi -show run - +super + alt + c + rofi -modi "clipboard:greenclip print" -show clipboard -run-command '{cmd}' +super + alt + e + rofi -modi emoji -show emoji super + alt + p bwmenu - super + alt + a asciify.sh @@ -28,10 +30,10 @@ super + Escape pkill -USR1 -x sxhkd ctrl + alt + b - firefox + qutebrowser ctrl + super + space - ~/.builds/bin/toggle-keyboard-layout.sh + ~/.local/bin/185504a9-utils/toggle-keyboard-layout.sh # # bspwm hotkeys diff --git a/utils/set-monitors.sh b/utils/set-monitors.sh index 5199ccb..c7d5b08 100755 --- a/utils/set-monitors.sh +++ b/utils/set-monitors.sh @@ -5,9 +5,9 @@ monitors=$(bash -c "$base_command") monitors_len=$(bash -c "$base_command" | grep -w 'connected' | wc -l) if [[ "$monitors_len" -eq 2 ]]; then - xrandr --auto --output eDP-1 --mode 1920x1080 --right-of HDMI-1 + xrandr --auto --output eDP-1 --mode 1920x1080 --right-of HDMI-2 bspc monitor eDP-1 -d I II III IV V - bspc monitor HDMI-1 -d VI VII VIII IX X + bspc monitor HDMI-2 -d VI VII VIII IX X else bspc monitor eDP-1 -d I II III IV V VI VII VIII IX X