From 5f52601cf034fc8b4ed571376f291aec54e6436e Mon Sep 17 00:00:00 2001 From: JaeYoo-Im Date: Sun, 7 May 2023 22:26:41 +0900 Subject: [PATCH] 050723 --- .config/bspwm/autostart | 80 --- .config/bspwm/bspwmrc | 34 +- .config/conky/conkyrc | 103 +++ .config/emacs/emacs.org | 30 +- .config/nushell/config.nu | 2 +- .config/polybar/config | 141 ---- .config/polybar/config.ini | 1319 +++++++++++++++++++++++++++++++++++ .config/sxhkd/sxhkdrc | 17 +- scripts/init_script_wsl.sh | 6 + scripts/random_wallpaper.sh | 6 +- 10 files changed, 1481 insertions(+), 257 deletions(-) delete mode 100755 .config/bspwm/autostart create mode 100644 .config/conky/conkyrc delete mode 100644 .config/polybar/config create mode 100644 .config/polybar/config.ini diff --git a/.config/bspwm/autostart b/.config/bspwm/autostart deleted file mode 100755 index 23d1743..0000000 --- a/.config/bspwm/autostart +++ /dev/null @@ -1,80 +0,0 @@ -#!/usr/bin/env bash - -killall bspc - -# Compositor -picom & - -# Source the colorscheme -#echo alpha="ff" >> "${HOME}/.cache/wal/colors.sh" -#source "${HOME}/.cache/wal/colors.sh" - -# Walllpaper -~/scripts/random_wallpaper.sh - -# Authentication agent -#/usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1& - -# mapcheck -#killall osucheck.sh -#killall inotifywait -#~/.osuthings/osucheck.sh "/home/$USER/.osutmp"& -#~/.osuthings/osucheck.sh "/home/$USER/Downloads"& - -# Tablet drivers -#otd& - -# Statusbar -#eww -c ~/.config/eww/eww-bar open bar -#eww -c ~/.config/eww/mybar open bar_right -#eww -c ~/.config/eww/mybar open bar_center -#eww -c ~/.config/eww/mybar open bar_left -#killall polybar -#polybar -c ~/.config/eww/mybar/polybar_tray.ini tray& - -#Applets -#killall blueman-applet -#killall pa-applet -#killall nm-applet -#killall flameshot -#blueman-applet& -#pa-applet --disable-key-grabbing --disable-notifications& -#nm-applet& -#flameshot& - -# daemons -#killall dunst -#dunst -lf $foreground \ -# -lb $color0$alpha \ -# -lfr $color9\ -# -nf $foreground \ -# -nb $color0$alpha \ -# -nfr $color9 \ -# -cf $foreground \ -# -cb $color0$alpha \ -# -cfr $color9 > /dev/null 2>&1 & -#thunar --daemon& - - -# Master layout -#for (( i=1; i < 10; i++));do -# #bsp-layout set tiled $i -# true -#done - -# Sounds -#~/.bscripts/sounds.sh& - -# idle -#killall idle.sh -#pgrep idle.sh || ~/.bscripts/idle.sh > /dev/null 2> /dev/null& - -# borders -#.bscripts/borders.sh& - -# Emacs Daemon -#emacs --daemon - -# Launch keybinding daemon -killall sxhkd -sxhkd -c ~/.config/sxhkd/sxhkdrc > /dev/null 2> /dev/null& diff --git a/.config/bspwm/bspwmrc b/.config/bspwm/bspwmrc index 5a36028..ac4edc7 100755 --- a/.config/bspwm/bspwmrc +++ b/.config/bspwm/bspwmrc @@ -1,16 +1,27 @@ #!/usr/bin/env bash +killall bspc - - -# Set environment -export BSPWM_CONFIG="${XDG_CONFIG_HOME:-$HOME/.config}/bspwm" +################################################## +# AUTOSTART +################################################## +killall sxhkd +killall picom +sxhkd & +picom & +killall nm-applet && nm-applet & +killall volumeicon && volumeicon & +#killall conky +#sleep 3 && conky -c ~/.config/conky/conkyrc +~/scripts/random_wallpaper.sh bspc monitor -d 1 2 3 4 5 -bspc config border_width 5 -bspc config window_gap 20 -#bspc config border_radius 2 +bspc config border_width 2 +bspc config window_gap 10 +bspc config top_padding 20 +bspc config border_radius 2 bspc config focus_follows_pointer true +#bspc config click_to_focus true bspc config gapless_monocle true #bspc config pointer_follows_focus true #bspc config single_monocle true @@ -20,12 +31,13 @@ bspc config right_monocle_padding 20 bspc config bottom_monocle_padding 20 #bspc config ignore_ewmh_fullscreen enter +bspc rule --add emacs state=tiled bspc rule --add Blueman-manager state=floating rectangle=610x610+650+235 bspc rule --add Surf layer=above border=off rectangle=415x1100+0+0 bspc rule --add Surfdload state=floating layer=above border=off rectangle=415x75+0+0 sticky=on focus=off bspc rule --add Brave-browser rectangle=1130x800+395+140 bspc rule --add Polkit-gnome-authentication-agent-1 rectangle=810x280+555+399 -bspc rule --add Polybar layer=below manage=off +bspc rule --add Polybar layer=top manage=off bspc rule --add kozu state=floating rectangle=1910x200+0+870 layer=above bspc rule --add cava state=floating manage=off rectangle=1920x1050+0+50 border=off sticky=on locked=on layer=below focus=off #bspc rule --add Pqiv manage=off border=off #rectangle=110x50+260+20 @@ -63,7 +75,5 @@ bspc config normal_private_border_color "$color1" # rm "$BSPWM_STATE" #fi -#Move thumbnails -#xdotool search "pqiv: /tmp/thumbnail.png" windowmove 256 20 -# Autostart -"$BSPWM_CONFIG/autostart" & +# TODO heres polybar +polybar panel-bspwm diff --git a/.config/conky/conkyrc b/.config/conky/conkyrc new file mode 100644 index 0000000..22efd90 --- /dev/null +++ b/.config/conky/conkyrc @@ -0,0 +1,103 @@ +--[[ +######################################### +## tomorrow-night-01.conkyrc (bspwm) ## +######################################### +]] + +conky.config = { + + --Various settings + background = true, -- forked to background + cpu_avg_samples = 2, -- The number of samples to average for CPU monitoring. + diskio_avg_samples = 10, -- The number of samples to average for disk I/O monitoring. + double_buffer = true, -- Use the Xdbe extension? (eliminates flicker) + if_up_strictness = 'address', -- how strict if testing interface is up - up, link or address + net_avg_samples = 2, -- The number of samples to average for net data + no_buffers = true, -- Subtract (file system) buffers from used memory? + temperature_unit = 'fahrenheit', -- fahrenheit or celsius + text_buffer_size = 2048, -- size of buffer for display of content of large variables - default 256 + update_interval = 1, -- update interval + imlib_cache_size = 0, -- disable image cache to get a new spotify cover per song + + -- Placement (Conky on MIDDLE of THREE monitors at 1920x1080) + --alignment = 'top_left', -- top_left,top_middle,top_right,bottom_left,bottom_middle,bottom_right, + --gap_x = 3540, -- pixels between right or left border + --gap_y = 70, -- pixels between bottom or left border + + -- Placement (For SINGLE monitor users!) + alignment = 'top_right', -- top_left,top_middle,top_right,bottom_left,bottom_middle,bottom_right, + gap_x = 50, -- pixels between right or left border + gap_y = 70, -- pixels between bottom or left border + + -- Size + minimum_height = 200, -- minimum height of window + minimum_width = 260, -- minimum width of window + maximum_width = 260, -- maximum width of window + + --Graphical + border_inner_margin = 5, -- margin between border and text + border_outer_margin = 5, -- margin between border and edge of window + border_width = 0, -- border width in pixels + default_bar_width = 260, -- default is 0 - full width + default_bar_height = 10, -- default is 6 + default_gauge_height = 25, -- default is 25 + default_gauge_width =40, -- default is 40 + default_graph_height = 40, -- default is 25 + default_graph_width = 153, -- default is 0 - full width + default_shade_color = '#000000', -- default shading colour + default_outline_color = '#000000', -- default outline colour + draw_borders = false, -- draw borders around text + draw_graph_borders = true, -- draw borders around graphs + draw_shades = false, -- draw shades + draw_outline = false, -- draw outline + stippled_borders = 0, -- dashing the border + + --Textual + format_human_readable = true, -- KiB, MiB rather then number of bytes + font = 'Mononoki Nerd Font:bold:size=10', -- the default font used + font2 = 'Mononoki Nerd Font:bold:size=30', -- font for the time + font3 = 'Mononoki Nerd Font:size=14', -- font for the date + font4 = 'Mononoki Nerd Font:bold:size=9', -- font for the keybindings heading + max_text_width = 0, -- 0 will make sure line does not get broken if width too smal + max_user_text = 16384, -- max text in conky default 16384 + override_utf8_locale = true, -- force UTF8 requires xft + short_units = true, -- shorten units from KiB to k + top_name_width = 21, -- width for $top name value default 15 + top_name_verbose = false, -- If true, top name shows the full command line of each process - Default value is false. + uppercase = false, -- uppercase or not + use_spacer = 'none', -- adds spaces around certain objects to align - default none + use_xft = true, -- xft font - anti-aliased font + xftalpha = 1, -- alpha of the xft font - between 0-1 + + --Windows + own_window = true, -- create your own window to draw + own_window_argb_value = 255, -- real transparency - composite manager required 0-255 + own_window_argb_visual = true, -- use ARGB - composite manager required + own_window_class = 'Conky', -- manually set the WM_CLASS name for use with xprop + own_window_colour = '#292d3e', -- set colour if own_window_transparent no + own_window_transparent = false, -- if own_window_argb_visual is true sets background opacity 0% + own_window_title = 'xmonad_conky', -- set the name manually + own_window_type = 'desktop', -- if own_window true options are: normal/override/dock/desktop/panel + own_window_hints = 'undecorated,below,above,sticky,skip_taskbar,skip_pager', -- if own_window true - just hints - own_window_type sets it + + --Colors (Palenight) + color0 = '#c792ea', + color1 = '#d0d0d0', + color2 = '#82aaff', + color3 = '#ffcb6b', +}; + +conky.text = [[ +${alignc}${color0}${font2}${time %H:%M}${font} +${voffset 6}${alignc}${color0}${font3}${time %m. %d, %Y}${font}${color} +${voffset 18}${goto 12}${color3}CPU${goto 50}$cpu% +${color2}${goto 12}${cpubar 8,254} +${voffset 5}${goto 12}$font${color1}${top name 1}$alignr$color${top cpu 1}% +${goto 12}${color1}${top name 2}$alignr$color${top cpu 2}% +${goto 12}${color1}${top name 3}$alignr$color${top cpu 3}% +${voffset 14}${goto 12}${color3}RAM${goto 50}$mem/$memmax +${color2}${goto 12}${membar 8,254}${color} +${goto 12}${voffset 5}${color1}${top_mem name 1}$alignr$color${top_mem mem_res 1} +${goto 12}${color1}${top_mem name 2}$alignr$color${top_mem mem_res 2} +${goto 12}${color1}${top_mem name 3}$alignr$color${top_mem mem_res 3} +]]; diff --git a/.config/emacs/emacs.org b/.config/emacs/emacs.org index 23452b6..76020fc 100755 --- a/.config/emacs/emacs.org +++ b/.config/emacs/emacs.org @@ -46,9 +46,8 @@ Emacs Configuration for emacs 29.50 #+end_src *** Package Function **** Use-package -#+begin_src emacs-lisp -;;#+begin_src emacs-lisp :tangle ~/.config/emacs/init.el - ;;(require 'package) +#+begin_src emacs-lisp :tangle ~/.config/emacs/init.el + (require 'package) (when (version< emacs-version "28") (add-to-list 'package-archives '("nongnu" . "https://elpa.nongnu.org/nongnu/"))) (add-to-list 'package-archives '("stable" . "https://stable.melpa.org/packages/")) @@ -85,7 +84,8 @@ Emacs Configuration for emacs 29.50 (auto-package-update-at-time "09:00")) #+end_src **** Straight -#+begin_src emacs-lisp :tangle ~/.config/emacs/init.el +#+begin_src emacs-lisp +;;#+begin_src emacs-lisp :tangle ~/.config/emacs/init.el (defvar bootstrap-version) (defvar comp-deferred-compilation-deny-list ()) ; workaround, otherwise straight shits itself (let ((bootstrap-file @@ -233,13 +233,13 @@ Emacs Configuration for emacs 29.50 (require 'custom-ui) (require 'custom-keybindings) (require 'custom-default) - (require 'custom-completion) - (require 'custom-edit) - (require 'custom-projects) - (require 'custom-latex) - (require 'custom-org) - (require 'custom-languages) - (require 'custom-extra) + ;;(require 'custom-completion) + ;;(require 'custom-edit) + ;;(require 'custom-projects) + ;;(require 'custom-latex) + ;;(require 'custom-org) + ;;(require 'custom-languages) + ;;(require 'custom-extra) ;;(require 'custom-workspaces) @@ -316,7 +316,6 @@ emacs built-in package config #+begin_src emacs-lisp :mkdirp yes :tangle ~/.config/emacs/modules/custom-default.el (use-package dired :ensure nil - :straight nil :commands (dired dired-jump) :bind (("C-x C-j" . dired-jump)) :custom ((dired-listing-switches "-agho --group-directories-first")) @@ -534,13 +533,14 @@ emacs built-in package config **** Dashboard #+begin_src emacs-lisp :mkdirp yes :tangle ~/.config/emacs/modules/custom-ui.el (use-package dashboard + :disabled :after all-the-icons :config (setq dashboard-set-heading-icons t) (setq dashboard-set-file-icons t) ;;(setq dashboard-banner-logo-title "Emacs is more than a text editor!") ;; logo from github.com/egstatsml/emacs_fancy_logos - (setq dashboard-startup-banner "~/.config/emacs/logos/xemacs_color.png") + ;;(setq dashboard-startup-banner "~/.config/emacs/logos/xemacs_color.png") ;;(setq dashboard-startup-banner 'logo) (setq dashboard-center-content t) (setq dashboard-week-agenda t) @@ -553,7 +553,7 @@ emacs built-in package config (agenda . 5) (bookmarks . 5) ;;(if (version< emacs-version "29") - (projects . 5) + ;;(projects . 5) (registers . 5))) (setq dashboard-set-navigator t) @@ -1099,7 +1099,7 @@ Quick Action in minibuffer ***** Valign | 12345678 | | |----------+---| -| 일이삼사 | | +| 일이삼사 | | #+begin_src emacs-lisp :mkdirp yes :tangle ~/.config/emacs/modules/custom-org.el (use-package valign :defer t diff --git a/.config/nushell/config.nu b/.config/nushell/config.nu index de06147..bccff8b 100644 --- a/.config/nushell/config.nu +++ b/.config/nushell/config.nu @@ -173,7 +173,7 @@ let dark_theme = { record: white list: white block: white - hints: dark_gray + hints: gray shape_and: purple_bold shape_binary: purple_bold diff --git a/.config/polybar/config b/.config/polybar/config deleted file mode 100644 index e65dbd0..0000000 --- a/.config/polybar/config +++ /dev/null @@ -1,141 +0,0 @@ -; Docs: https://github.com/polybar/polybar -;========================================================== - -[settings] -screenchange-reload = true - -[global/wm] -margin-top = 0 -margin-bottom = 0 - -[colors] -background = #f0232635 -background-alt = #576075 -foreground = #A6Accd -foreground-alt = #555 -primary = #ffb52a -secondary = #e60053 -alert = #bd2c40 -underline-1 = #c792ea - -[bar/panel] -width = 100% -height = 24 -offset-x = 0 -offset-y = 0 -fixed-center = true -enable-ipc = true - -background = ${colors.background} -foreground = ${colors.foreground} - -line-size = 2 -line-color = #f00 - -border-size = 0 -border-color = #00000000 - -padding-top = 5 -padding-left = 1 -padding-right = 1 - -module-margin = 1 - -font-0 = "Cantarell:size=12:weight=bold;2" -font-1 = "Font Awesome:size=10;2" -font-2 = "Material Icons:size=15;5" -font-3 = "Fira Mono:size=10;-3" - -modules-left = exwm-workspace -modules-right = cpu temperature battery date - -tray-position = right -tray-padding = 2 -tray-maxsize = 28 - -cursor-click = pointer -cursor-scroll = ns-resize - -[module/exwm-workspace] -type = custom/ipc -hook-0 = emacsclient -e "exwm-workspace-current-index" | sed -e 's/^"//' -e 's/"$//' -initial = 1 -format-underline = ${colors.underline-1} -format-padding = 1 - -[module/cpu] -type = internal/cpu -interval = 2 -format = 