commit 90ce72418586f49ee0ccae2838e6fe6c85b24e9c Author: trueold89 Date: Tue Aug 8 13:11:15 2023 +0300 Yet Another BSPWM Rice diff --git a/Dots/.config/bspwm/bspwmrc b/Dots/.config/bspwm/bspwmrc new file mode 100755 index 00000000..92c168d1 --- /dev/null +++ b/Dots/.config/bspwm/bspwmrc @@ -0,0 +1,46 @@ +#!/bin/bash + +############# +# Autostart # +############# + +#SXHKD +pgrep -x sxhkd > /dev/null || sxhkd & + +#Dunst +dunst -b & + +############## +# Appearance # +############## + +#Wallpaper +feh --bg-fill ~/.wall.jpg & + +#Polybar +~/.config/polybar/launch.sh & + +#Picom +picom --experimental-backends --backend glx -b & + +#Cursor +xsetroot -cursor_name left_ptr + +############## +# BSPC # +############## + +#Workspaces +bspc monitor -d 1 2 3 4 5 6 7 8 9 + +#Borders and gaps +bspc config border_width 0 +bspc config window_gap 15 +bspc config split_ratio 0.5 +bspc config gapless_monocle false +bspc config paddingless_monocle true +bspc config automatic_scheme spiral + +#Mouse +bspc config focus_follows_pointer true +bspc config pointer_modifier super diff --git a/Dots/.config/dunst/dunstrc b/Dots/.config/dunst/dunstrc new file mode 100755 index 00000000..dabc9405 --- /dev/null +++ b/Dots/.config/dunst/dunstrc @@ -0,0 +1,254 @@ +[global] + + ########### + # Monitor # + ########### + + monitor = 0 + follow = none + + ############ + # Geometry # + ############ + + width = 250 + height = 120 + origin = top-right + offset = 10x50 + scale = 0 + notification_limit = 3 + corner_radius = 12 + + ############### + # ProgressBar # + ############### + + progress_bar = false + progress_bar_height = 10 + progress_bar_frame_width = 1 + progress_bar_min_width = 150 + progress_bar_max_width = 300 + progress_bar_corner_radius = 0 + + ############# + # Different # + ############# + + icon_corner_radius = 6 + indicate_hidden = yes + transparency = 20 + sort = yes + markup = full + show_age_threshold = 25 + ellipsize = middle + ignore_newline = no + stack_duplicates = true + hide_duplicate_count = true + browser = /usr/bin/firefox + always_run_script = true + title = Dunst + class = Dunst + show_indicators = no + ignore_dbusclose = false + + ########### + # Padding # + ########### + + separator_color = frame + separator_height = 2 + padding = 8 + horizontal_padding = 8 + text_icon_padding = 0 + line_height = 0 + + ######### + # Frame # + ######### + + frame_width = 2 + frame_color = "#FFFFFF" + gap_size = 0 + + ######## + # Text # + ######## + + font = Montserrat 12 + format = "%s\n%b" + alignment = left + vertical_alignment = center + + ######### + # Icons # + ######### + + enable_recursive_icon_lookup = true + icon_theme = Colloid-grey-dracula-dark, Adwaita + icon_position = left + min_icon_size = 16 + max_icon_size = 32 + icon_path = ~/.local/share/icons/Colloid-grey-dracula-dark/16/status/:~/.local/share/icons/Colloid-grey-dracula-dark/16/devices/ + + ########### + # History # + ########### + + sticky_history = yes + history_length = 20 + + ######### + # Mouse # + ######### + + mouse_left_click = close_current + mouse_middle_click = do_action, close_current + mouse_right_click = close_all + +[urgency_low] + # IMPORTANT: colors have to be defined in quotation marks. + # Otherwise the "#" and following would be interpreted as a comment. + background = "#202020" + foreground = "#ffffff" + timeout = 10 + # Icon for notifications with low urgency, uncomment to enable + #default_icon = /path/to/icon + +[urgency_normal] + background = "#202020" + foreground = "#ffffff" + timeout = 10 + # Icon for notifications with normal urgency, uncomment to enable + #default_icon = /path/to/icon + +[urgency_critical] + background = "#202020" + foreground = "#ffffff" + frame_color = "#AC3131" + timeout = 0 + # Icon for notifications with critical urgency, uncomment to enable + #default_icon = /path/to/icon + +# Every section that isn't one of the above is interpreted as a rules to +# override settings for certain messages. +# +# Messages can be matched by +# appname (discouraged, see desktop_entry) +# body +# category +# desktop_entry +# icon +# match_transient +# msg_urgency +# stack_tag +# summary +# +# and you can override the +# background +# foreground +# format +# frame_color +# fullscreen +# new_icon +# set_stack_tag +# set_transient +# set_category +# timeout +# urgency +# icon_position +# skip_display +# history_ignore +# action_name +# word_wrap +# ellipsize +# alignment +# hide_text +# +# Shell-like globbing will get expanded. +# +# Instead of the appname filter, it's recommended to use the desktop_entry filter. +# GLib based applications export their desktop-entry name. In comparison to the appname, +# the desktop-entry won't get localized. +# +# SCRIPTING +# You can specify a script that gets run when the rule matches by +# setting the "script" option. +# The script will be called as follows: +# script appname summary body icon urgency +# where urgency can be "LOW", "NORMAL" or "CRITICAL". +# +# NOTE: It might be helpful to run dunst -print in a terminal in order +# to find fitting options for rules. + +# Disable the transient hint so that idle_threshold cannot be bypassed from the +# client +#[transient_disable] +# match_transient = yes +# set_transient = no +# +# Make the handling of transient notifications more strict by making them not +# be placed in history. +#[transient_history_ignore] +# match_transient = yes +# history_ignore = yes + +# fullscreen values +# show: show the notifications, regardless if there is a fullscreen window opened +# delay: displays the new notification, if there is no fullscreen window active +# If the notification is already drawn, it won't get undrawn. +# pushback: same as delay, but when switching into fullscreen, the notification will get +# withdrawn from screen again and will get delayed like a new notification +#[fullscreen_delay_everything] +# fullscreen = delay +#[fullscreen_show_critical] +# msg_urgency = critical +# fullscreen = show + +#[espeak] +# summary = "*" +# script = dunst_espeak.sh + +#[script-test] +# summary = "*script*" +# script = dunst_test.sh + +#[ignore] +# # This notification will not be displayed +# summary = "foobar" +# skip_display = true + +#[history-ignore] +# # This notification will not be saved in history +# summary = "foobar" +# history_ignore = yes + +#[skip-display] +# # This notification will not be displayed, but will be included in the history +# summary = "foobar" +# skip_display = yes + +#[signed_on] +# appname = Pidgin +# summary = "*signed on*" +# urgency = low +# +#[signed_off] +# appname = Pidgin +# summary = *signed off* +# urgency = low +# +#[says] +# appname = Pidgin +# summary = *says* +# urgency = critical +# +#[twitter] +# appname = Pidgin +# summary = *twitter.com* +# urgency = normal +# +#[stack-volumes] +# appname = "some_volume_notifiers" +# set_stack_tag = "volume" +# +# vim: ft=cfg diff --git a/Dots/.config/kitty/kitty.conf b/Dots/.config/kitty/kitty.conf new file mode 100644 index 00000000..7a7f54b7 --- /dev/null +++ b/Dots/.config/kitty/kitty.conf @@ -0,0 +1,18 @@ +########## +# Colors # +########## + +background #202020 +background_opacity 0.8 +foreground #EAEAEA +font_size 14.0 +selection_background #424242 +selection_foreground #FFFFFF +cursor #FFFFFF + +######### +# Fonts # +######### + +font_family MesloLGS NF +font_size 15 diff --git a/Dots/.config/picom.conf b/Dots/.config/picom.conf new file mode 100644 index 00000000..5a9c5a53 --- /dev/null +++ b/Dots/.config/picom.conf @@ -0,0 +1,44 @@ +############## +# Animations # +############## + +#Need: https://github.com/kiosion/picom or other picom fork with animations support +animations = true; +animation-for-open-window = "zoom"; +animation-for-menu-window = "zoom"; + +########### +# Corners # +########### + +corner-radius = 12; +rounded-corners-exclude = [ "class_g = 'Polybar'", "class_g = 'Dunst'" ]; + +########### +# Backend # +########### + +vsync = true; + +########### +# Opacity # +########### + +inactive-opacity = 1; +active-opacity = 1; +frame-opacity = 1; +inactive-opacity-override = false; + +######## +# Blur # +######## + +blur: { + method = "dual_kawase"; + strength = 8; + deviation =1.0; + background = false; + background-frame = false; + background-fixed = false; + kern = "3x3box"; +} diff --git a/Dots/.config/polybar/colors.ini b/Dots/.config/polybar/colors.ini new file mode 100644 index 00000000..3719000d --- /dev/null +++ b/Dots/.config/polybar/colors.ini @@ -0,0 +1,11 @@ +;;;;;;;;;;;;;;;;;; +; Polybar Colors ; +;;;;;;;;;;;;;;;;;; + +[color] +bg = #aa202020 +fg = #EAEAEA +fg-alt = #424242 +trans = #00000000 +white = #FFFFFF +black = #000000 diff --git a/Dots/.config/polybar/config.ini b/Dots/.config/polybar/config.ini new file mode 100644 index 00000000..11ba1763 --- /dev/null +++ b/Dots/.config/polybar/config.ini @@ -0,0 +1,110 @@ +;;;;;;;;;;;;;;; +; WM Settings ; +;;;;;;;;;;;;;;; + +[global/wm] +margin-bottom = 0 +margin-top = 0 + +wm-name = bspwm +wm-restack = bspwm + +enable-ipc = true + +;;;;;;;;;;; +; Include ; +;;;;;;;;;;; + +include-file = ~/.config/polybar/modules.ini +include-file = ~/.config/polybar/colors.ini + +;;;;;;;;;;;;;;;; +; Bar Position ; +;;;;;;;;;;;;;;;; + +[bar/main] +monitor = +monitor-fallback = +monitor-strict = false +override-redirect = false + +bottom = false +fixed-center = true + +width = 100% +height = 30 + +offset-x = 0 +offset-y = 0 + +radius-top = 0.0 +radius-bottom = 0.0 + +padding = 3 + +;;;;;;;;;;;;;;;;;;;; +; Colors and Fonts ; +;;;;;;;;;;;;;;;;;;;; + +background = ${color.bg} +foreground = ${color.fg} +pseudo-transparency = true + +font-0 = "Montserrat-ExtraBold:size=12;3" +font-1 = "Iosevka Nerd Font:size=12;3" + +;;;;;;;;;;; +; Modules ; +;;;;;;;;;;; + +module-margin-left = 3 +module-margin-right = 3 +modules-left = workspaces +modules-center = date +modules-right = keyboard + +;;;;;;;; +; Tray ; +;;;;;;;; + +tray-position = right +tray-detached = false +tray-maxsize = 16 + +tray-background = ${color.bg} + +tray-offset-x = 0 +tray-offset-y = 0 + +tray-padding = 0 + +tray-scale = 1.0 + +;;;;;;;;;;;; +; Controls ; +;;;;;;;;;;;; + +scroll-up = bspwm-desknext +scroll-down = bspwm-deskprev +click-left = +click-middle = +click-right = +double-click-left = +double-click-middle = +double-click-right = + +;;;;;;;;;;;;;;;;;;;;;;;; +; Application Settings ; +;;;;;;;;;;;;;;;;;;;;;;;; + +[settings] +throttle-output = 5 +throttle-output-for = 10 + +screenchange-reload = false + +compositing-background = source +compositing-foreground = over +compositing-overline = over +compositing-underline = over +compositing-border = over diff --git a/Dots/.config/polybar/launch.sh b/Dots/.config/polybar/launch.sh new file mode 100755 index 00000000..32ddfa80 --- /dev/null +++ b/Dots/.config/polybar/launch.sh @@ -0,0 +1,3 @@ +#!/usr/bin/bash +killall -q polybar +polybar -q main -c ~/.config/polybar/config.ini & diff --git a/Dots/.config/polybar/modules.ini b/Dots/.config/polybar/modules.ini new file mode 100644 index 00000000..b30f39b4 --- /dev/null +++ b/Dots/.config/polybar/modules.ini @@ -0,0 +1,127 @@ +[module/date] +type = internal/date + +; Seconds to sleep between updates +interval = 1.0 + +; See "http://en.cppreference.com/w/cpp/io/manip/put_time" for details on how to format the date string +; NOTE: if you want to use syntax tags here you need to use %%{...} +;;date = %Y-%m-%d% + +; Optional time format +time = "%H:%M" + +; if `date-alt` or `time-alt` is defined, clicking +; the module will toggle between formats +;;date-alt = %A, %d %B %Y +time-alt = "%a, %d %b %Y" + +; Available tags: +;