From fa30dfea6078540458d913cb815e6ffe9a171855 Mon Sep 17 00:00:00 2001 From: hok7z Date: Sat, 9 Sep 2023 13:22:38 +0300 Subject: [PATCH] Delete old dotfiles --- .config/bspwm/bspwmrc | 49 -- .config/kitty/kitty.conf | 101 ---- .config/picom/picom.conf | 506 ------------------ .config/polybar/config.ini | 180 ------- .../scripts/updates-pacman-aurhelper.sh | 23 - .config/polybar/scripts/weather/.env.dist | 2 - .config/polybar/scripts/weather/config.py | 31 -- .config/polybar/scripts/weather/exceptions.py | 2 - .config/polybar/scripts/weather/formatter.py | 22 - .config/polybar/scripts/weather/location.py | 26 - .config/polybar/scripts/weather/weather.py | 46 -- .config/polybar/scripts/weather/wthr | 19 - .config/rofi/config.rasi | 9 - .config/rofi/nord.rasi | 93 ---- .config/sxhkd/sxhkdrc | 194 ------- .config/zsh/alias.zsh | 25 - .config/zsh/history | 1 - .config/zsh/keybinds.zsh | 2 - .config/zsh/prompt.zsh | 12 - .config/zsh/zshenv.zsh | 21 - .zshrc | 10 - 21 files changed, 1374 deletions(-) delete mode 100755 .config/bspwm/bspwmrc delete mode 100644 .config/kitty/kitty.conf delete mode 100644 .config/picom/picom.conf delete mode 100644 .config/polybar/config.ini delete mode 100755 .config/polybar/scripts/updates-pacman-aurhelper.sh delete mode 100644 .config/polybar/scripts/weather/.env.dist delete mode 100644 .config/polybar/scripts/weather/config.py delete mode 100644 .config/polybar/scripts/weather/exceptions.py delete mode 100644 .config/polybar/scripts/weather/formatter.py delete mode 100644 .config/polybar/scripts/weather/location.py delete mode 100644 .config/polybar/scripts/weather/weather.py delete mode 100755 .config/polybar/scripts/weather/wthr delete mode 100644 .config/rofi/config.rasi delete mode 100644 .config/rofi/nord.rasi delete mode 100755 .config/sxhkd/sxhkdrc delete mode 100644 .config/zsh/alias.zsh delete mode 100644 .config/zsh/history delete mode 100644 .config/zsh/keybinds.zsh delete mode 100644 .config/zsh/prompt.zsh delete mode 100644 .config/zsh/zshenv.zsh delete mode 100755 .zshrc diff --git a/.config/bspwm/bspwmrc b/.config/bspwm/bspwmrc deleted file mode 100755 index a670a75..0000000 --- a/.config/bspwm/bspwmrc +++ /dev/null @@ -1,49 +0,0 @@ -#!/bin/sh -# Running events -# ---------------------------------------------------------------------------- -xsetroot -cursor_name left_ptr -picom --experimental-backends & -polybar example & -light -S 75 -nitrogen --restore & -betterlockscreen -u ~/Pictures/wallpapers/astronaut-watching-sunset-on-mars.jpg --blur 0.45 --display 1 --span & -/usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1 & -dunst -config ~/.config/dunst/dunstrc & -/home/q/bin/battery & -# ---------------------------------------------------------------------------- - -pgrep -x sxhkd > /dev/null || sxhkd & -bspc monitor -d     - -# Smart Gaps -bspc config single_monocle true -bspc config gapless_monocle true - -# Gaps -bspc config border_width 2 -bspc config window_gap 8 - -# Set color border -bspc config focused_border_color '#BB9AF7' -bspc config active_border_color '#0C1115' -bspc config normal_border_color '#0C1115' - - -bspc config split_ratio 1.5 -bspc config borderless_monocle true -bspc config gapless_monocle true - -bspc config focus_follows_pointer true -bspc config pointer_modifier super - -# Set floating window size -bspc rule --add kitty rectangle=750x500+400+200 - -# Configure allways floating window -bspc rule -a KotatogramDesktop state=floating follow=off rectangle=666x823+8-26 desktop='^2' -bspc rule -a Steam state=floating follow=off rectangle=1105x777+226-57 -bspc rule -a spotify state=floatig follow=off rectangle=1492x848+53-13 -bspc rule -a Nitrogen state=floating follow=off rectangle=712x563+429+157 -bspc rule -a mpv state=floating follow=off rectangle=800x450+560+315 -bspc rule -a virt-manager state=floating follow=off rectangle=900x600 -bspc rule -a keepassxc state=floating follow=off rectangle=900x900 desktop='^3' diff --git a/.config/kitty/kitty.conf b/.config/kitty/kitty.conf deleted file mode 100644 index 0cf63f4..0000000 --- a/.config/kitty/kitty.conf +++ /dev/null @@ -1,101 +0,0 @@ -#font_family Comic Mono -#bold_font Comic Mono -#font_size 13 - -# font_family Iosevka -# bold_font Iosevka -# italic_font Iosevka -# bold_italic_font Iosevka -# font_size 15 - -font_family JetBrains Mono -bold_font JetBrains Mono -italic_font JetBrains Mono -bold_italic_font JetBrains Mono -font_size 14 - -background_opacity 0.9 - - -# font_family FiraCode Nerd Font -# bold_font FiraCode Nerd Font Mono -# italic_font FiraCode Nerd Font Mono -# bold_italic_font FiraCode Nerd Font Mono -# font_size 13 - -remember_window_size yes -initial_window_width 148c -initial_window_height 42c -draw_minimal_borders no -window_margin_width 1 -disable_ligatures never -enable_audio_bell no -tab_bar_edge top -hide_window_decorations yes -editor nvim -enabled_layouts tall, grid, fat -tab_bar_style separator -active_tab_font_style bold -active_tab_background #666 -tab_separator " ┃ " -scrollback_pager nvim -R -touch_scroll_multiplier 5.0 - -## name: Tokyo Night Storm -## author: Folke Lemaitre - -background #24283b -foreground #c0caf5 -selection_background #364A82 -selection_foreground #c0caf5 -url_color #73daca -cursor #c0caf5 - -# Tabs -active_tab_background #7aa2f7 -active_tab_foreground #1f2335 -inactive_tab_background #292e42 -inactive_tab_foreground #545c7e -#tab_bar_background #1D202F - -# normal -color0 #1D202F -color1 #f7768e -color2 #9ece6a -color3 #e0af68 -color4 #7aa2f7 -color5 #bb9af7 -color6 #7dcfff -color7 #a9b1d6 - -# bright -color8 #414868 -color9 #f7768e -color10 #9ece6a -color11 #e0af68 -color12 #7aa2f7 -color13 #bb9af7 -color14 #7dcfff -color15 #c0caf5 - -# extended colors -color16 #ff9e64 -color17 #db4b4b - -map ctrl+shift+enter new_window_with_cwd -map ctrl+shift+space new_window_with_cwd -map ctrl+alt+h move_window left -map ctrl+alt+j move_window down -map ctrl+alt+k move_window up -map ctrl+alt+l move_window right -map ctrl+shift+h neighboring_window left -map ctrl+shift+j neighboring_window down -map ctrl+shift+k neighboring_window up -map ctrl+shift+l neighboring_window right -map ctrl+shift+alt+l next_layout -map ctrl+shift+i show_scrollback - -map ctrl+shift+] next_tab -map ctrl+shift+[ previous_tab -map ctrl+alt+] move_tab_forward -map ctrl+alt+[ move_tab_backward diff --git a/.config/picom/picom.conf b/.config/picom/picom.conf deleted file mode 100644 index eec68ae..0000000 --- a/.config/picom/picom.conf +++ /dev/null @@ -1,506 +0,0 @@ -################################# -# Animations # -################################# -# requires https://github.com/jonaburg/picom -# (These are also the default values) -transition-length = 300 -transition-pow-x = 0.1 -transition-pow-y = 0.1 -transition-pow-w = 0.1 -transition-pow-h = 0.1 -size-transition = true - - -################################# -# Corners # -################################# -# requires: https://github.com/sdhand/compton or https://github.com/jonaburg/picom -corner-radius = 16.0; -# rounded-corners-exclude = [ -# #"window_type = 'normal'", -# "class_g = 'LibreWolf'", -# "class_g = 'kitty'", -# "class_g = 'Polybar'", -# "class_g = 'KotatogramDesktop'" -# ]; -round-borders = 12; -round-borders-exclude = [ - #"class_g = 'TelegramDesktop'", -]; - -################################# -# Shadows # -################################# - - -# Enabled client-side shadows on windows. Note desktop windows -# (windows with '_NET_WM_WINDOW_TYPE_DESKTOP') never get shadow, -# unless explicitly requested using the wintypes option. -# -# shadow = false -shadow = false; - -# The blur radius for shadows, in pixels. (defaults to 12) -# shadow-radius = 12 -shadow-radius = 7; - -# The opacity of shadows. (0.0 - 1.0, defaults to 0.75) -# shadow-opacity = .75 - -# The left offset for shadows, in pixels. (defaults to -15) -# shadow-offset-x = -15 -shadow-offset-x = -7; - -# The top offset for shadows, in pixels. (defaults to -15) -# shadow-offset-y = -15 -shadow-offset-y = -7; - -# Avoid drawing shadows on dock/panel windows. This option is deprecated, -# you should use the *wintypes* option in your config file instead. -# -# no-dock-shadow = false - -# Don't draw shadows on drag-and-drop windows. This option is deprecated, -# you should use the *wintypes* option in your config file instead. -# -# no-dnd-shadow = false - -# Red color value of shadow (0.0 - 1.0, defaults to 0). -# shadow-red = 0 - -# Green color value of shadow (0.0 - 1.0, defaults to 0). -# shadow-green = 0 - -# Blue color value of shadow (0.0 - 1.0, defaults to 0). -# shadow-blue = 0 - -# Do not paint shadows on shaped windows. Note shaped windows -# here means windows setting its shape through X Shape extension. -# Those using ARGB background is beyond our control. -# Deprecated, use -# shadow-exclude = 'bounding_shaped' -# or -# shadow-exclude = 'bounding_shaped && !rounded_corners' -# instead. -# -# shadow-ignore-shaped = '' - -# Specify a list of conditions of windows that should have no shadow. -# -# examples: -# shadow-exclude = "n:e:Notification"; -# -# shadow-exclude = [] -shadow-exclude = [ - "name = 'Notification'", - "class_g = 'Conky'", - "class_g ?= 'Notify-osd'", - "class_g = 'Cairo-clock'", - "class_g = 'slop'", - "class_g = 'Polybar'", - "_GTK_FRAME_EXTENTS@:c" -]; - -# Specify a X geometry that describes the region in which shadow should not -# be painted in, such as a dock window region. Use -# shadow-exclude-reg = "x10+0+0" -# for example, if the 10 pixels on the bottom of the screen should not have shadows painted on. -# -# shadow-exclude-reg = "" - -# Crop shadow of a window fully on a particular Xinerama screen to the screen. -# xinerama-shadow-crop = false - - -################################# -# Fading # -################################# - - -# Fade windows in/out when opening/closing and when opacity changes, -# unless no-fading-openclose is used. -# fading = false -fading = true; - -# Opacity change between steps while fading in. (0.01 - 1.0, defaults to 0.028) -# fade-in-step = 0.028 -fade-in-step = 0.03; - -# Opacity change between steps while fading out. (0.01 - 1.0, defaults to 0.03) -# fade-out-step = 0.03 -fade-out-step = 0.03; - -# The time between steps in fade step, in milliseconds. (> 0, defaults to 10) -# fade-delta = 10 - -# Specify a list of conditions of windows that should not be faded. -# don't need this, we disable fading for all normal windows with wintypes: {} -fade-exclude = [ - "class_g = 'slop'" # maim -] - -# Do not fade on window open/close. -# no-fading-openclose = false - -# Do not fade destroyed ARGB windows with WM frame. Workaround of bugs in Openbox, Fluxbox, etc. -# no-fading-destroyed-argb = false - - -################################# -# Transparency / Opacity # -################################# - - -# Opacity of inactive windows. (0.1 - 1.0, defaults to 1.0) -# inactive-opacity = 1 -inactive-opacity = 0.8; - -# Opacity of window titlebars and borders. (0.1 - 1.0, disabled by default) -# frame-opacity = 1.0 -frame-opacity = 0.7; - -# Default opacity for dropdown menus and popup menus. (0.0 - 1.0, defaults to 1.0) -# menu-opacity = 1.0 -# menu-opacity is depreciated use dropdown-menu and popup-menu instead. - -#If using these 2 below change their values in line 510 & 511 aswell -popup_menu = { opacity = 0.8; } -dropdown_menu = { opacity = 0.8; } - - -# Let inactive opacity set by -i override the '_NET_WM_OPACITY' values of windows. -# inactive-opacity-override = true -inactive-opacity-override = false; - -# Default opacity for active windows. (0.0 - 1.0, defaults to 1.0) -active-opacity = 1.0; - -# Dim inactive windows. (0.0 - 1.0, defaults to 0.0) -# inactive-dim = 0.0 - -# Specify a list of conditions of windows that should always be considered focused. -# focus-exclude = [] -focus-exclude = [ - "class_g = 'Cairo-clock'", - "class_g = 'Bar'", # lemonbar - "class_g = 'slop'" # maim -]; - -# Use fixed inactive dim value, instead of adjusting according to window opacity. -# inactive-dim-fixed = 1.0 - -# Specify a list of opacity rules, in the format `PERCENT:PATTERN`, -# like `50:name *= "Firefox"`. picom-trans is recommended over this. -# Note we don't make any guarantee about possible conflicts with other -# programs that set '_NET_WM_WINDOW_OPACITY' on frame or client windows. -# example: -# opacity-rule = [ "80:class_g = 'URxvt'" ]; -# -# opacity-rule = [] -opacity-rule = [ - "80:class_g = 'Bar'", # lemonbar - "100:class_g = 'slop'", # maim - "100:class_g = 'XTerm'", - "100:class_g = 'URxvt'", - "100:class_g = 'kitty'", - "100:class_g = 'Alacritty'", - "80:class_g = 'Polybar'", - "100:class_g = 'code-oss'", - "100:class_g = 'Meld'", - "70:class_g = 'TelegramDesktop'", - "90:class_g = 'Joplin'", - "100:class_g = 'firefox'", - "100:class_g = 'Thunderbird'" -]; - - -################################# -# Background-Blurring # -################################# - - -# Parameters for background blurring, see the *BLUR* section for more information. -# blur-method = -# blur-size = 12 -# -# blur-deviation = false - -# Blur background of semi-transparent / ARGB windows. -# Bad in performance, with driver-dependent behavior. -# The name of the switch may change without prior notifications. -# -# blur-background = true; - -# Blur background of windows when the window frame is not opaque. -# Implies: -# blur-background -# Bad in performance, with driver-dependent behavior. The name may change. -# -# blur-background-frame = false; - - -# Use fixed blur strength rather than adjusting according to window opacity. -# blur-background-fixed = false; - - -# Specify the blur convolution kernel, with the following format: -# example: -# blur-kern = "5,5,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1"; -# -# blur-kern = '' -# blur-kern = "3x3box"; - -blur: { - # requires: https://github.com/ibhagwan/picom - method = "kawase"; - #method = "kernel"; - strength = 7; - # deviation = 1.0; - # kernel = "11x11gaussian"; - background = false; - background-frame = false; - background-fixed = false; - kern = "3x3box"; -} - -# Exclude conditions for background blur. -blur-background-exclude = [ - #"window_type = 'dock'", - #"window_type = 'desktop'", - #"class_g = 'URxvt'", - # - # prevents picom from blurring the background - # when taking selection screenshot with `main` - # https://github.com/naelstrof/maim/issues/130 - "class_g = 'slop'", - "_GTK_FRAME_EXTENTS@:c" -]; - - -################################# -# General Settings # -################################# - -# Daemonize process. Fork to background after initialization. Causes issues with certain (badly-written) drivers. -# daemon = false - -# Specify the backend to use: `xrender`, `glx`, or `xr_glx_hybrid`. -# `xrender` is the default one. -# -experimental-backends = true; -backend = "glx"; -#backend = "xrender"; - - -# Enable/disable VSync. -# vsync = false -vsync = true - -# Enable remote control via D-Bus. See the *D-BUS API* section below for more details. -# dbus = false - -# Try to detect WM windows (a non-override-redirect window with no -# child that has 'WM_STATE') and mark them as active. -# -# mark-wmwin-focused = false -mark-wmwin-focused = true; - -# Mark override-redirect windows that doesn't have a child window with 'WM_STATE' focused. -# mark-ovredir-focused = false -mark-ovredir-focused = true; - -# Try to detect windows with rounded corners and don't consider them -# shaped windows. The accuracy is not very high, unfortunately. -# -# detect-rounded-corners = false -detect-rounded-corners = true; - -# Detect '_NET_WM_OPACITY' on client windows, useful for window managers -# not passing '_NET_WM_OPACITY' of client windows to frame windows. -# -# detect-client-opacity = false -detect-client-opacity = true; - -# Specify refresh rate of the screen. If not specified or 0, picom will -# try detecting this with X RandR extension. -# -# refresh-rate = 60 -refresh-rate = 0 - -# Limit picom to repaint at most once every 1 / 'refresh_rate' second to -# boost performance. This should not be used with -# vsync drm/opengl/opengl-oml -# as they essentially does sw-opti's job already, -# unless you wish to specify a lower refresh rate than the actual value. -# -# sw-opti = - -# Use EWMH '_NET_ACTIVE_WINDOW' to determine currently focused window, -# rather than listening to 'FocusIn'/'FocusOut' event. Might have more accuracy, -# provided that the WM supports it. -# -# use-ewmh-active-win = false - -# Unredirect all windows if a full-screen opaque window is detected, -# to maximize performance for full-screen windows. Known to cause flickering -# when redirecting/unredirecting windows. paint-on-overlay may make the flickering less obvious. -# -# unredir-if-possible = false - -# Delay before unredirecting the window, in milliseconds. Defaults to 0. -# unredir-if-possible-delay = 0 - -# Conditions of windows that shouldn't be considered full-screen for unredirecting screen. -# unredir-if-possible-exclude = [] - -# Use 'WM_TRANSIENT_FOR' to group windows, and consider windows -# in the same group focused at the same time. -# -# detect-transient = false -detect-transient = true - -# Use 'WM_CLIENT_LEADER' to group windows, and consider windows in the same -# group focused at the same time. 'WM_TRANSIENT_FOR' has higher priority if -# detect-transient is enabled, too. -# -# detect-client-leader = false -detect-client-leader = true - -# Resize damaged region by a specific number of pixels. -# A positive value enlarges it while a negative one shrinks it. -# If the value is positive, those additional pixels will not be actually painted -# to screen, only used in blur calculation, and such. (Due to technical limitations, -# with use-damage, those pixels will still be incorrectly painted to screen.) -# Primarily used to fix the line corruption issues of blur, -# in which case you should use the blur radius value here -# (e.g. with a 3x3 kernel, you should use `--resize-damage 1`, -# with a 5x5 one you use `--resize-damage 2`, and so on). -# May or may not work with *--glx-no-stencil*. Shrinking doesn't function correctly. -# -# resize-damage = 1 - -# Specify a list of conditions of windows that should be painted with inverted color. -# Resource-hogging, and is not well tested. -# -# invert-color-include = [] - -# GLX backend: Avoid using stencil buffer, useful if you don't have a stencil buffer. -# Might cause incorrect opacity when rendering transparent content (but never -# practically happened) and may not work with blur-background. -# My tests show a 15% performance boost. Recommended. -# -# glx-no-stencil = false - -# GLX backend: Avoid rebinding pixmap on window damage. -# Probably could improve performance on rapid window content changes, -# but is known to break things on some drivers (LLVMpipe, xf86-video-intel, etc.). -# Recommended if it works. -# -# glx-no-rebind-pixmap = false - -# Disable the use of damage information. -# This cause the whole screen to be redrawn everytime, instead of the part of the screen -# has actually changed. Potentially degrades the performance, but might fix some artifacts. -# The opposing option is use-damage -# -# no-use-damage = false -#use-damage = true (Causing Weird Black semi opaque rectangles when terminal is opened) -#Changing use-damage to false fixes the problem -use-damage = false - -# Use X Sync fence to sync clients' draw calls, to make sure all draw -# calls are finished before picom starts drawing. Needed on nvidia-drivers -# with GLX backend for some users. -# -# xrender-sync-fence = false - -# GLX backend: Use specified GLSL fragment shader for rendering window contents. -# See `compton-default-fshader-win.glsl` and `compton-fake-transparency-fshader-win.glsl` -# in the source tree for examples. -# -# glx-fshader-win = '' - -# Force all windows to be painted with blending. Useful if you -# have a glx-fshader-win that could turn opaque pixels transparent. -# -# force-win-blend = false - -# Do not use EWMH to detect fullscreen windows. -# Reverts to checking if a window is fullscreen based only on its size and coordinates. -# -# no-ewmh-fullscreen = false - -# Dimming bright windows so their brightness doesn't exceed this set value. -# Brightness of a window is estimated by averaging all pixels in the window, -# so this could comes with a performance hit. -# Setting this to 1.0 disables this behaviour. Requires --use-damage to be disabled. (default: 1.0) -# -# max-brightness = 1.0 - -# Make transparent windows clip other windows like non-transparent windows do, -# instead of blending on top of them. -# -# transparent-clipping = false - -# Set the log level. Possible values are: -# "trace", "debug", "info", "warn", "error" -# in increasing level of importance. Case doesn't matter. -# If using the "TRACE" log level, it's better to log into a file -# using *--log-file*, since it can generate a huge stream of logs. -# -# log-level = "debug" -log-level = "info"; - -# Set the log file. -# If *--log-file* is never specified, logs will be written to stderr. -# Otherwise, logs will to written to the given file, though some of the early -# logs might still be written to the stderr. -# When setting this option from the config file, it is recommended to use an absolute path. -# -# log-file = '/path/to/your/log/file' - -# Show all X errors (for debugging) -# show-all-xerrors = false - -# Write process ID to a file. -# write-pid-path = '/path/to/your/log/file' - -# Window type settings -# -# 'WINDOW_TYPE' is one of the 15 window types defined in EWMH standard: -# "unknown", "desktop", "dock", "toolbar", "menu", "utility", -# "splash", "dialog", "normal", "dropdown_menu", "popup_menu", -# "tooltip", "notification", "combo", and "dnd". -# -# Following per window-type options are available: :: -# -# fade, shadow::: -# Controls window-type-specific shadow and fade settings. -# -# opacity::: -# Controls default opacity of the window type. -# -# focus::: -# Controls whether the window of this type is to be always considered focused. -# (By default, all window types except "normal" and "dialog" has this on.) -# -# full-shadow::: -# Controls whether shadow is drawn under the parts of the window that you -# normally won't be able to see. Useful when the window has parts of it -# transparent, and you want shadows in those areas. -# -# redir-ignore::: -# Controls whether this type of windows should cause screen to become -# redirected again after been unredirected. If you have unredir-if-possible -# set, and doesn't want certain window to cause unnecessary screen redirection, -# you can set this to `true`. -# -wintypes: -{ - normal = { fade = false; shadow = false; } - tooltip = { fade = true; shadow = true; opacity = 0.75; focus = true; full-shadow = false; }; - dock = { shadow = false; } - dnd = { shadow = false; } - popup_menu = { opacity = 0.8; } - dropdown_menu = { opacity = 0.8; } -}; diff --git a/.config/polybar/config.ini b/.config/polybar/config.ini deleted file mode 100644 index 56dfbc0..0000000 --- a/.config/polybar/config.ini +++ /dev/null @@ -1,180 +0,0 @@ -;========================================================== -; -; -; ██████╗ ██████╗ ██╗ ██╗ ██╗██████╗ █████╗ ██████╗ -; ██╔══██╗██╔═══██╗██║ ╚██╗ ██╔╝██╔══██╗██╔══██╗██╔══██╗ -; ██████╔╝██║ ██║██║ ╚████╔╝ ██████╔╝███████║██████╔╝ -; ██╔═══╝ ██║ ██║██║ ╚██╔╝ ██╔══██╗██╔══██║██╔══██╗ -; ██║ ╚██████╔╝███████╗██║ ██████╔╝██║ ██║██║ ██║ -; ╚═╝ ╚═════╝ ╚══════╝╚═╝ ╚═════╝ ╚═╝ ╚═╝╚═╝ ╚═╝ -; -; -; To learn more about how to configure Polybar -; go to https://github.com/polybar/polybar -; -; The README contains a lot of information -; -;========================================================== - -[colors] -background = #24283B -background-alt = #373B41 -foreground = #f9f8fe -primary = #BB9AF7 -secondary = #8ABEB7 -alert = #A54242 -disabled = #707880 - -[bar/example] -width = 100% -height = 23pt - -radius = 12 - -; dpi = 96 - -background = ${colors.background} -foreground = ${colors.foreground} - -line-size = 3pt - -border-size = 0pt -border-color = #00000000 - -padding-left = 2 -padding-right = 2 - -module-margin = 1 - -separator = | -separator-foreground = ${colors.disabled} - -font-0 = RobotoMono Nerd Font Mono:size=10;2 -font-1 = FontAwesome:style=Regular:pixelsize=10;2 - -modules-left = date -modules-right = pulseaudio xkeyboard updates-pacman-aurhelper weather memory -modules-center = xworkspaces - -cursor-click = pointer -cursor-scroll = ns-resize - -enable-ipc = true - -; tray-position = right - -; wm-restack = generic -wm-restack = bspwm -; wm-restack = i3 - -; override-redirect = true - - -[module/xworkspaces] -type = internal/xworkspaces - -label-active = %name% -label-active-background = ${colors.background-alt} -label-active-underline= ${colors.primary} -label-active-padding = 2 - -label-occupied = %name% -label-occupied-padding = 2 - -label-urgent = %name% -label-urgent-background = ${colors.alert} -label-urgent-padding = 2 - -label-empty = %name% -label-empty-foreground = ${colors.disabled} -label-empty-padding = 2 - -[module/weather] -type = custom/script -exec = ~/.config/polybar/scripts/weather/wthr -interval = 600 - -[module/updates-pacman-aurhelper] -type = custom/script -exec = ~/.config/polybar/scripts/updates-pacman-aurhelper.sh -interval = 7200 - - -[module/xwindow] -type = internal/xwindow -label = %title:0:60:...% - -[module/filesystem] -type = internal/fs -interval = 25 - -mount-0 = / - -label-mounted = %{F#F0C674}%mountpoint%%{F-} %percentage_used%% - -label-unmounted = %mountpoint% not mounted -label-unmounted-foreground = ${colors.disabled} - -[module/pulseaudio] -type = internal/pulseaudio - -format-volume-prefix = " 墳 " -format-volume-prefix-foreground = ${colors.primary} -format-volume = - -label-volume = %percentage%% - -label-muted = muted -label-muted-foreground = ${colors.disabled} - -[module/xkeyboard] -type = internal/xkeyboard -blacklist-0 = num lock - -label-layout =  %layout% -label-layout-foreground = ${colors.primary} - -label-indicator-padding = 2 -label-indicator-margin = 1 -label-indicator-foreground = ${colors.background} -label-indicator-background = ${colors.secondary} - -[module/memory] -type = internal/memory -interval = 2 -format-prefix = "  " -format-prefix-foreground = ${colors.primary} -label = %percentage_used:2%% - -[module/cpu] -type = internal/cpu -interval = 2 -format-prefix = "cpu " -format-prefix-foreground = ${colors.primary} -label = %percentage:2%% - -[network-base] -type = internal/network -interval = 5 -format-connected = -format-disconnected = -label-disconnected = %{F#F0C674}%ifname%%{F#707880} disconnected - -[module/wlan] -inherit = network-base -interface-type = wireless -label-connected = %{F#2AC3DE} %{F-}%essid% - -[module/date] -type = internal/date -interval = 1 - -date = %a,%b %d %I:%M %p -label-foreground = #41A6B5 -;${colors.primary} - -[settings] -screenchange-reload = true -pseudo-transparency = true - -; vim:ft=dosini diff --git a/.config/polybar/scripts/updates-pacman-aurhelper.sh b/.config/polybar/scripts/updates-pacman-aurhelper.sh deleted file mode 100755 index d0a45b1..0000000 --- a/.config/polybar/scripts/updates-pacman-aurhelper.sh +++ /dev/null @@ -1,23 +0,0 @@ -#!/bin/sh - -if ! updates_arch=$(checkupdates 2> /dev/null | wc -l ); then - updates_arch=0 -fi - -date=$(grep 'pacman -Suy' /var/log/pacman.log | tail -1 | tr -d '[' | cut -f 1 -d 'T') - -if ! updates_aur=$(paru -Qum 2> /dev/null | wc -l); then -# if ! updates_aur=$(cower -u 2> /dev/null | wc -l); then -# if ! updates_aur=$(trizen -Su --aur --quiet | wc -l); then -# if ! updates_aur=$(pikaur -Qua 2> /dev/null | wc -l); then -# if ! updates_aur=$(rua upgrade --printonly 2> /dev/null | wc -l); then - updates_aur=0 -fi - -updates=$((updates_arch + updates_aur)) - -if [ "$updates" -gt 0 ]; then - echo "%{F#7dcfff} $updates $date%{F-}" -else - echo "" -fi diff --git a/.config/polybar/scripts/weather/.env.dist b/.config/polybar/scripts/weather/.env.dist deleted file mode 100644 index 69510c7..0000000 --- a/.config/polybar/scripts/weather/.env.dist +++ /dev/null @@ -1,2 +0,0 @@ -address = "" -app_id = "" diff --git a/.config/polybar/scripts/weather/config.py b/.config/polybar/scripts/weather/config.py deleted file mode 100644 index 86f26a6..0000000 --- a/.config/polybar/scripts/weather/config.py +++ /dev/null @@ -1,31 +0,0 @@ -from typing import NamedTuple -from enum import Enum - -from environs import Env - -env = Env() -env.read_env() - -# app_id: -app_id = env.str("app_id") -address = env.str("address") - -class Color(NamedTuple): - hcolor:str - start_temp:int - end_temp:int - -class Colors(Enum): - blue1 = Color("#7aa2f7",-20,10) - green1 = Color("#9ECE6A",10,21) - red1 = Color("#dc143c",22,50) - -# Used nerd fonts icons -class WeatherIcons(Enum): - Thunderstorm = "" - Rain = "" - Snow = "" - Fog = "" - Clouds = "" - Clear = "" - Unknown = "NOT FOUND ICON" diff --git a/.config/polybar/scripts/weather/exceptions.py b/.config/polybar/scripts/weather/exceptions.py deleted file mode 100644 index d05be07..0000000 --- a/.config/polybar/scripts/weather/exceptions.py +++ /dev/null @@ -1,2 +0,0 @@ -class ApiServiceError(Exception): - """Service Error""" diff --git a/.config/polybar/scripts/weather/formatter.py b/.config/polybar/scripts/weather/formatter.py deleted file mode 100644 index dcc02b8..0000000 --- a/.config/polybar/scripts/weather/formatter.py +++ /dev/null @@ -1,22 +0,0 @@ -from config import WeatherIcons,Colors -from weather import Weather -from config import Color - -def _select_icon(weather_status:str) -> str: - for icon in WeatherIcons: - if icon.name == weather_status: - return icon.value - return WeatherIcons.Other.value - -def _select_color(temp:int) -> Color: - for color in Colors: - if (color.value.end_temp >= temp >= color.value.start_temp): - return color.value - return Color("#00000",-1,-1) - -def format_weather(weather:Weather) -> str: - color = _select_color(weather.temp) - icon = _select_icon(weather.weatherType) - return "%{{F{0}}} {1} {2}°C %{{F-}}".format( - color.hcolor,icon,round(weather.temp) - ) diff --git a/.config/polybar/scripts/weather/location.py b/.config/polybar/scripts/weather/location.py deleted file mode 100644 index 2b598bf..0000000 --- a/.config/polybar/scripts/weather/location.py +++ /dev/null @@ -1,26 +0,0 @@ -from geopy.geocoders import Nominatim -from config import address - -from exceptions import ApiServiceError - -from typing import NamedTuple -class Location(NamedTuple): - lat:float - lon:float - -def __get_location_response() -> dict: - try: - app = Nominatim(user_agent="UserAgent") - return app.geocode(address).raw - except: - raise ApiServiceError - -def _parse_location_reponse(loc_dict:dict) -> Location: - return Location( - lat=loc_dict["lat"], - lon=loc_dict["lon"], - ) - -def get_location() -> Location: - response_json = __get_location_response() - return _parse_location_reponse(response_json) diff --git a/.config/polybar/scripts/weather/weather.py b/.config/polybar/scripts/weather/weather.py deleted file mode 100644 index 0c9633b..0000000 --- a/.config/polybar/scripts/weather/weather.py +++ /dev/null @@ -1,46 +0,0 @@ -import json -from json.decoder import JSONDecodeError - -import urllib.request -from urllib.error import URLError - -from exceptions import ApiServiceError - -from config import app_id - -from location import Location -from typing import NamedTuple - -Celsius = int -class Weather(NamedTuple): - temp:Celsius - weatherType:str - windSpeed:int - -def get_weather(loc:Location) -> Weather: - weather_response = _get_weather_response(loc) - return _parse_weather_response(weather_response) - -def _get_weather_response(loc:Location) -> str: - url = ( - "https://api.openweathermap.org/data/2.5/weather?" - "lat={latitude}&lon={longitude}" - "&appid=" + app_id + "&units=metric" - ) - - url = url.format(latitude=loc.lat,longitude=loc.lon) - try: - return urllib.request.urlopen(url).read() - except URLError: - raise ApiServiceError - -def _parse_weather_response(response:str) -> Weather: - try: - weather_dict = json.loads(response) - except JSONDecodeError: - raise ApiServiceError - return Weather( - temp = round(weather_dict["main"]["temp"]), - weatherType = weather_dict["weather"][0]["main"], - windSpeed = weather_dict["wind"]["speed"], - ) diff --git a/.config/polybar/scripts/weather/wthr b/.config/polybar/scripts/weather/wthr deleted file mode 100755 index c775042..0000000 --- a/.config/polybar/scripts/weather/wthr +++ /dev/null @@ -1,19 +0,0 @@ -#!/usr/bin/env python3 - -from location import get_location -from weather import get_weather - -from formatter import format_weather -import exceptions - -def main() -> None: - try: - loc = get_location() - weather = get_weather(loc) - except exceptions.ApiServiceError: - print("%{F#f7768e}API Service ERROR%{F-}") - return - print(format_weather(weather)) - -if __name__ == '__main__': - main() diff --git a/.config/rofi/config.rasi b/.config/rofi/config.rasi deleted file mode 100644 index 42ce2cc..0000000 --- a/.config/rofi/config.rasi +++ /dev/null @@ -1,9 +0,0 @@ -@theme "./nord.rasi" - -configuration { - font: "Iosevka 13" ; - terminal: "kitty"; -} - - -element-icon { size: 2ch ; } diff --git a/.config/rofi/nord.rasi b/.config/rofi/nord.rasi deleted file mode 100644 index f148acc..0000000 --- a/.config/rofi/nord.rasi +++ /dev/null @@ -1,93 +0,0 @@ -/* - * ROFI color theme - * - * Based on Something Found in the Internet - * - * User: Contributors - * Copyright: *! - */ - -configuration { - display-run: " "; - display-drun: " "; - display-window: " "; - drun-display-format: "{icon} {name}"; - font: "JetBrainsMono Nerd Font Medium 10"; - modi: "window,run,drun"; - show-icons: true; -} - -* { - polar-1: #2E3440; - polar-2: #3B4252; - polar-3: #434C5E; - polar-4: #4C566A; - - snow-1: #D8DEE9; - snow-2: #E5E9F0; - snow-3: #ECEFF4; - - frost-1: #8FBCBB; - frost-2: #88C0D0; - frost-3: #81A1C1; - frost-4: #5E81AC; - - aurora-1: #BF616A; - aurora-2: #D08770; - aurora-3: #EBCB8B; - aurora-4: #A3BE8C; - aurora-5: #B48EAD; - - background-color: @polar-1; - - border: 0; - margin: 0; - padding: 0; - spacing: 0; -} - -element { - padding: 12; - text-color: @frost-3; -} - -element selected { - text-color: @aurora-3; -} - -element-text { - padding: 2; - background-color: inherit; - text-color: inherit; -} - -entry { - background-color: @polar-2; - padding: 12 0 12 3; - text-color: @frost-1; -} - -inputbar { - children: [prompt, entry]; -} - -listview { - columns: 1; - lines: 8; -} - -mainbox { - children: [inputbar, listview]; -} - -prompt { - background-color: @polar-2; - enabled: true; - font: "FontAwesome 12"; - padding: 12 0 0 12; - text-color: @frost-1; -} - -window { - transparency: "real"; -} diff --git a/.config/sxhkd/sxhkdrc b/.config/sxhkd/sxhkdrc deleted file mode 100755 index e6c3b7b..0000000 --- a/.config/sxhkd/sxhkdrc +++ /dev/null @@ -1,194 +0,0 @@ -# wm independent hotkeys - -# make sxhkd reload its configuration files: - -# Default keybinds -# ------------------------------------------------------- - -super + alt + e - $HOME/bin/restart --sxhkd - -super + alt + b - $HOME/bin/restart --polybar - -super + alt + p - $HOME/bin/restart --picom - -# quit/restart bspwm -super + alt + {q,r} - bspc {quit,wm -r} - -# close and kill -super + {shift+c,shift + w} - bspc node -{c,k} - -# alternate between the tiled and monocle layout -super + m - bspc desktop -l next - -# send the newest marked node to the newest preselected node -super + y - bspc node newest.marked.local -n newest.!automatic.local - -# swap the current node and the biggest window -super + g - bspc node -s biggest.window -# ------------------------------------------------------- - -# Start programs -# -------------------------------------------------------- -super + Return - kitty - -super + d - rofi -show drun -show-icons -modi drun - -super + c - rofi -show calc -modi calc -no-show-match -no-sort - -super + n - thunar - -super + shift + t - kotatogram-desktop - -super + shift + {b,f} - librewolf - -super + shift + s - /home/q/bin/screenrecord - -super + shift + n - kitty -e notetaker - -Print - flameshot gui - -super + x - betterlockscreen -l dimblur - -# -------------------------------------------------------- - - -# Volume control -# ---------------------------------------------------------- - -# Down -{F2,XF86AudioLowerVolume} - pactl set-sink-volume @DEFAULT_SINK@ -1% - -# Up -{F3,XF86AudioRaiseVolume}} - pactl set-sink-volume @DEFAULT_SINK@ +1% - -# Mute -{F1,F86AudioMute} - pactl set-sink-mute @DEFAULT_SINK@ toggle - -# Mute microfon -{F9,XF86AudioMicMute} - pactl set-source-mute @DEFAULT_SOURCE@ toggle - -# -------------------------------------------------------------- - -# Brigness screen -# -------------------------------------------------------------- - -{F4,XF86MonBrightnessDown} - light -U 1 - -{F5, XF86MonBrightnessUp} - light -A 1 - -# -------------------------------------------------------------- - -# state/flags -# ---------------------------------------------------------------- -# t - Taylind -# s - Normal -# f - floating -# set the window state -super + {t,shift + t,s,f} - bspc node -t {tiled,pseudo_tiled,floating,fullscreen} - -# set the node flags -super + ctrl + {m,x,y,z} - bspc node -g {marked,locked,sticky,private} - -# ---------------------------------------------------------------- - - -# focus/swap -# ----------------------------------------------------------------- - -# focus the node in the given direction -super + {_,shift + }{h,j,k,l} - bspc node -{f,s} {west,south,north,east} - -# focus the node for the given path jump -super + {p,b,comma,period} - bspc node -f @{parent,brother,first,second} - -# focus the next/previous window in the current desktop -super + {_,shift + }c - bspc node -f {next,prev}.local.!hidden.window - -# focus the next/previous desktop in the current monitor -super + bracket{left,right} - bspc desktop -f {prev,next}.local - -# focus the last node/desktop -super + {grave,Tab} - bspc {node,desktop} -f last - -# focus the older or newer node in the focus history -super + {o,i} - bspc wm -h off; \ - bspc node {older,newer} -f; \ - bspc wm -h on - -# focus or send to the given desktop -super + {_,shift + }{1-9,0} - bspc {desktop -f,node -d} '^{1-9,10}' - -# ----------------------------------------------------------------- - - -# preselect -# ------------------------------------------------------------------ - -# preselect the direction -super + ctrl + {h,j,k,l} - bspc node -p {west,south,north,east} - -# preselect the ratio -super + ctrl + {1-9} - bspc node -o 0.{1-9} - -# cancel the preselection for the focused node -super + ctrl + space - bspc node -p cancel - -# cancel the preselection for the focused desktop -super + ctrl + shift + space - bspc query -N -d | xargs -I id -n 1 bspc node id -p cancel - -# ------------------------------------------------------------------ - - -# move/resize -# ------------------------------------------------------------------- - -# expand a window by moving one of its side outward -super + alt + {h,j,k,l} - bspc node -z {left -20 0,bottom 0 20,top 0 -20,right 20 0} - -# contract a window by moving one of its side inward -super + alt + shift + {h,j,k,l} - bspc node -z {right -20 0,top 0 20,bottom 0 -20,left 20 0} - -# move a floating window -super + {Left,Down,Up,Right} - bspc node -v {-20 0,0 20,0 -20,20 0} - -# ------------------------------------------------------------------- diff --git a/.config/zsh/alias.zsh b/.config/zsh/alias.zsh deleted file mode 100644 index bbae1b0..0000000 --- a/.config/zsh/alias.zsh +++ /dev/null @@ -1,25 +0,0 @@ -alias v="vim" -alias nv="nvim" - -alias gc="git clone" -alias ga="git add" -alias gt="git status" - -alias gst="git status" -alias gdf="git diff" - -alias ls="lsd" -alias la="lsd -a" -alias ll="lsd -l" -alias l="lsd -la" - -alias cls=clear - -alias tree="tree -CL 3" - -alias sz="$HOME/.zshrc" - -alias wget=wget --hsts-file="$XDG_DATA_HOME/wget-hsts" - -alias history="fc -l 1" -alias histclr="echo ' ' > ~/.config/zsh/history" diff --git a/.config/zsh/history b/.config/zsh/history deleted file mode 100644 index 8b13789..0000000 --- a/.config/zsh/history +++ /dev/null @@ -1 +0,0 @@ - diff --git a/.config/zsh/keybinds.zsh b/.config/zsh/keybinds.zsh deleted file mode 100644 index c47293e..0000000 --- a/.config/zsh/keybinds.zsh +++ /dev/null @@ -1,2 +0,0 @@ -bindkey '^A' beginning-of-line -# bindkey '^I' end-of-line diff --git a/.config/zsh/prompt.zsh b/.config/zsh/prompt.zsh deleted file mode 100644 index 07f70a2..0000000 --- a/.config/zsh/prompt.zsh +++ /dev/null @@ -1,12 +0,0 @@ -function git_branch_name() { - branch=$(git symbolic-ref HEAD 2> /dev/null | awk 'BEGIN{FS="/"} {print $NF}') - if [[ $branch == "" ]];then - : - else - echo '- ('$branch')' - fi -} - -setopt prompt_subst - -PROMPT="%F{red}%n%f@%F{blue}%m%f %F{green}%~%f >> " diff --git a/.config/zsh/zshenv.zsh b/.config/zsh/zshenv.zsh deleted file mode 100644 index 7e62351..0000000 --- a/.config/zsh/zshenv.zsh +++ /dev/null @@ -1,21 +0,0 @@ -export EDITOR=nvim - -export XDG_CONFIG_HOME="$HOME/.config" -export XDG_CACHE_HOME="$HOME/.cache" -export XDG_DATA_HOME="$HOME/.local/share" -export XDG_STATE_HOME="$HOME/.local/state" - -export HISTSIZE=100000 -export SAVEHIST=100000 -export HISTFILE="$XDG_CONFIG_HOME/zsh/history" - -export GNUPGHOME="$XDG_DATA_HOME/gnupg" -export CARGO_HOME="$XDG_DATA_HOME/cargo" - -export PYENV_ROOT="$XDG_DATA_HOME/pyenv" -export IPYTHONDIR="${XDG_CONFIG_HOME}/ipython" -export PYTHONSTARTUP="${XDG_CONFIG_HOME}/python/pythonrc" -export JUPYTER_CONFIG_DIR="$XDG_CONFIG_HOME/jupyter" - -export GTK2_RC_FILES="${XDG_CONFIG_HOME}/gtk-2.0/gtkrc" -export NPM_CONFIG_USERCONFIG="${XDG_CONFIG_HOME}/npm/npmrc" diff --git a/.zshrc b/.zshrc deleted file mode 100755 index dd8a1c8..0000000 --- a/.zshrc +++ /dev/null @@ -1,10 +0,0 @@ -source "$HOME/.config/zsh/zshenv.zsh" - -zshfiles=("alias" "prompt" "keybinds") -for zshfile in $zshfiles -do - source "$zshconfigs/${zshfile}.zsh" -done - -path+=('/home/q/bin') -export PATH