From 734af357dd5f5f421f45ea8e7b330a2a19a1b11a Mon Sep 17 00:00:00 2001 From: Smirnov Olexandr Date: Fri, 16 Oct 2020 22:55:26 +0300 Subject: [PATCH] :zap: Add scripts & configs --- config/dunst/dunstrc | 52 ++ config/i3/config | 68 ++- config/kitty/kitty.conf | 91 ++- config/neofetch/config.conf | 578 +----------------- config/picom.conf | 56 ++ config/polybar/config | 199 +++--- config/polybar/launch.sh | 9 +- .../polybar/scripts/battery-combined-tlp.sh | 5 - config/polybar/scripts/btc | 25 - config/polybar/scripts/microphone.sh | 21 + .../polybar/scripts/openweathermap-simple.sh | 57 -- config/polybar/scripts/popup-calendar.sh | 41 -- config/polybar/scripts/redshift.sh | 15 - config/polybar/scripts/spotify_status.py | 5 +- config/polybar/scripts/updates-pacman-aur.sh | 20 + config/polybar/scripts/updates-pacman.sh | 16 - config/polybar/scripts/weather.py | 30 + config/ranger/plugins/archive.py | 100 +++ config/ranger/plugins/git.py | 111 ++++ config/ranger/rc.conf | 485 +++++++++++++++ config/ranger/rifle.conf | 213 +++++++ config/rofi/config | 5 +- config/rofi/flat-dark.rasi | 42 ++ config/rofi/flat-solarized.rasi | 42 ++ config/rofi/rofi-power-menu | 33 +- scripts/confert-mp4-to-mp3.sh | 2 + scripts/gitpush.sh | 5 + scripts/manjaro-fetch.sh | 35 ++ scripts/sceenshot.sh | 9 + scripts/snap-remove-old-pkg.sh | 4 + scripts/targz-current_folder.sh | 3 + scripts/targz-folder.sh | 3 + scripts/walpapper-changer.sh | 9 + 33 files changed, 1432 insertions(+), 957 deletions(-) create mode 100644 config/dunst/dunstrc create mode 100644 config/picom.conf delete mode 100755 config/polybar/scripts/battery-combined-tlp.sh delete mode 100755 config/polybar/scripts/btc create mode 100755 config/polybar/scripts/microphone.sh delete mode 100755 config/polybar/scripts/openweathermap-simple.sh delete mode 100755 config/polybar/scripts/popup-calendar.sh delete mode 100755 config/polybar/scripts/redshift.sh create mode 100755 config/polybar/scripts/updates-pacman-aur.sh delete mode 100755 config/polybar/scripts/updates-pacman.sh create mode 100755 config/polybar/scripts/weather.py create mode 100644 config/ranger/plugins/archive.py create mode 100644 config/ranger/plugins/git.py create mode 100644 config/ranger/rc.conf create mode 100644 config/ranger/rifle.conf create mode 100644 config/rofi/flat-dark.rasi create mode 100644 config/rofi/flat-solarized.rasi create mode 100644 scripts/confert-mp4-to-mp3.sh create mode 100644 scripts/gitpush.sh create mode 100644 scripts/manjaro-fetch.sh create mode 100644 scripts/sceenshot.sh create mode 100644 scripts/snap-remove-old-pkg.sh create mode 100644 scripts/targz-current_folder.sh create mode 100644 scripts/targz-folder.sh create mode 100644 scripts/walpapper-changer.sh diff --git a/config/dunst/dunstrc b/config/dunst/dunstrc new file mode 100644 index 0000000..7ee06d2 --- /dev/null +++ b/config/dunst/dunstrc @@ -0,0 +1,52 @@ +[global] + font = Hack 10 + padding = 1 + frame_color = "#073642" + frame_width = 2 + allow_markup = yes + format = "%a: %s\n%b" + sort = yes + indicate_hidden = yes + alignment = left + bounce_freq = 0 + show_age_threshold = 60 + word_wrap = yes + ignore_newline = no + geometry = "300x5-30+40" + transparency = 0 + idle_threshold = 120 + monitor = 0 + follow = keyboard + sticky_history = yes + line_height = 0 + separator_height = 2 + padding = 8 + horizontal_padding = 8 + separator_color = frame + startup_notification = true + browser = /usr/bin/firefox -new-tab + +[frame] + width = 0 + color = "#000000" + +[shortcuts] + close = mod4+m + close_all = mod4+shift+m + history = mod4+n + context = mod4+shift+i + +[urgency_low] + background = "#002B36" + foreground = "#dfdfdf" + timeout = 10 + +[urgency_normal] + background = "#002B36" + foreground = "#ffffff" + timeout = 10 + +[urgency_critical] + background = "#900000" + foreground = "#ffffff" + timeout = 0 \ No newline at end of file diff --git a/config/i3/config b/config/i3/config index e4428af..291047a 100644 --- a/config/i3/config +++ b/config/i3/config @@ -3,39 +3,50 @@ set $mod Mod4 # Font font monospace 10 -font pango:hack 10 +font pango:JetBrains Mono 10 # Disable window title default_border pixel +new_float pixel +# Borders +hide_edge_borders smart ############ Autostart ############ exec --no-startup-id exec picom -b -exec --no-startup-id exec feh --bg-scale ~/Imager/wallpaper.png +exec --no-startup-id exec nmcli radio wifi on; nmcli device wifi connect password name net +exec --no-startup-id exec redshift-gtk exec --no-startup-id exec setxkbmap "us,ru,ua" ",winkeys" "grp:alt_shift_toggle" exec --no-startup-id exec org.telegram.desktop exec --no-startup-id exec discord +exec --no-startup-id exec /usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1 +exec --no-startup-id ecec clipmenud ############ Key bindings ######### # Terminal bindsym $mod+Return exec kitty -#bindsym $mod+Return exec konsole +bindsym ctrl+Mod1+t exec kitty # Kill focus window bindsym $mod+q kill bindsym Mod1+F4 kill # Program/Exit louncher -bindsym $mod+space exec "rofi -show drun -show-icons -font 'hack 12' -show cobi -disable-history" -bindsym $mod+Escape exec "rofi -show power-menu -show-icons -font 'hack 12' -width 30 -lines 6 -disable-history -modi power-menu:~/.config/rofi/rofi-power-menu" +bindsym $mod+space exec "rofi -show drun -show cobi -show-icons" +bindsym $mod+Escape exec "rofi -show power-menu -show-icons -width 30 -lines 6 -modi power-menu:~/.config/rofi/rofi-power-menu" # Restart i3wm bindsym $mod+Shift+r restart +# Sceenshot +bindsym --release Print exec "scrot -s /home/${USER}/$(date +%Y-%m-%d-%H-%M-%S).png" +bindsym --release Shift+Print exec "scrot /home/${USER}/$(date +%Y-%m-%d-%H-%M-%S).png" + +# Clipboard menu +bindsym $mod+c exec "CM_LAUNCHER=rofi clipmenu" + # Load program -bindsym $mod+F1 exec dolphin +bindsym $mod+F1 exec kitty -T=Ranger_FM ranger bindsym $mod+F2 exec chromium -bindsym $mod+b exec firefox -bindsym $mod+F3 exec spotify -bindsym $mod+F4 exec subl -bindsym $mod+F5 exec notable +bindsym $mod+F3 exec subl +bindsym $mod+F4 exec notable # Floating window floating_modifier $mod @@ -60,16 +71,21 @@ bindsym $mod+e layout toggle split # Scratchpad bindsym $mod+Shift+grave move scratchpad -bindsym $mod+grave scratchpad show +bindsym $mod+grave scratchpad show, floating disable + +# Move workspace on open window +for_window [urgent=["lastet"]] focus +focus_on_window_activation focus ######### Window preferens ######## -assign [class="(?i)konsole|kitty"] $ws1 +assign [class="(?i)kitty"] $ws1 assign [class="(?i)chromium|firefox"] $ws2 -assign [class="(?i)subl|code|atom|typora|prepros"] $ws3 -assign [class="(?i)dolphin"] $ws4 +assign [class="(?i)subl|code|typora"] $ws3 +assign [class="(?i)thunar"] $ws4 +assign [title="Notable|Simplenote"] $ws5 assign [class="(?i)telegram|discord"] $ws6 -assign [title="Notable|Simplenote"] $ws7 -assign [title="KeePassXC"] $ws8 +assign [title="KeePassXC"] $ws7 +for_window [title="Ranger_FM"] move to workspace $ws4 for_window [class="Spotify"] move to workspace $ws10 ##### Change containet focus ###### @@ -140,13 +156,13 @@ mode "resize" { bindsym k resize grow height 10 px or 10 ppt bindsym l resize shrink height 10 px or 10 ppt bindsym semicolon resize grow width 10 px or 10 ppt - + # same bindings, but for the arrow keys bindsym Left resize shrink width 10 px or 10 ppt bindsym Down resize grow height 10 px or 10 ppt bindsym Up resize shrink height 10 px or 10 ppt bindsym Right resize grow width 10 px or 10 ppt - + # back to normal: Enter or Escape or $mod+r bindsym Return mode "default" bindsym Escape mode "default" @@ -156,16 +172,12 @@ bindsym $mod+r mode "resize" ############### Bar ############### exec_always --no-startup-id $HOME/.config/polybar/launch.sh -#bar { -# status_command i3status -# position top -#} ############## Colors ############# -# class border backgr. text indicator child_border -client.focused #268bd2 #268bd2 #ffffff #268bd2 #268bd2 -client.focused_inactive #000000 #000000 #ffffff #000000 #000000 -client.unfocused #000000 #000000 #888888 #000000 #000000 -client.urgent #000000 #000000 #ffffff #000000 #000000 -client.placeholder #000000 #000000 #ffffff #000000 #000000 +# class border backgr text indicator child_border +client.focused #268bd2 #268bd2 #ffffff #268bd2 #268bd2 +client.focused_inactive #000000 #000000 #ffffff #000000 #000000 +client.unfocused #000000 #000000 #888888 #000000 #000000 +client.urgent #000000 #000000 #ffffff #000000 #000000 +client.placeholder #000000 #000000 #ffffff #000000 #000000 client.background #ffffff diff --git a/config/kitty/kitty.conf b/config/kitty/kitty.conf index e69e60f..65102a2 100644 --- a/config/kitty/kitty.conf +++ b/config/kitty/kitty.conf @@ -1,5 +1,5 @@ #: MOD -kitty_mod ctrl+shift +#kitty_mod ctrl+shift clear_all_shortcuts no @@ -115,7 +115,7 @@ tab_bar_style powerline tab_bar_min_tabs 2 tab_switch_strategy previous tab_fade 0.25 0.5 0.75 1 -tab_separator " ┇" +tab_separator "┇" tab_title_template "{title}" active_tab_title_template none @@ -132,7 +132,7 @@ tab_bar_background none #: Theming foreground #dfdfdf -background_opacity 0.87 +background_opacity 0.85 background_image none background_image_layout tiled background_image_linear no @@ -152,65 +152,60 @@ map shift+insert paste_from_selection map kitty_mod+o pass_selection_to_program #: #: Scroll -map kitty_mod+up scroll_line_up -map kitty_mod+k scroll_line_up -map kitty_mod+down scroll_line_down -map kitty_mod+j scroll_line_down -map kitty_mod+page_up scroll_page_up -map kitty_mod+page_down scroll_page_down -map kitty_mod+home scroll_home -map kitty_mod+end scroll_end -map kitty_mod+h show_scrollback +map shift+up scroll_line_up +map shift+down scroll_line_down +map shift+page_up scroll_page_up +map shift+page_down scroll_page_down +map shift+home scroll_home +map shift+end scroll_end +map ctrl+shift+h show_scrollback #: #: Window -map kitty_mod+F9 new_os_window -map kitty_mod+enter new_window -map kitty_mod+x close_window -map kitty_mod+] next_window -map kitty_mod+[ previous_window -map kitty_mod+f move_window_forward -map kitty_mod+b move_window_backward -map kitty_mod+` move_window_to_top -map kitty_mod+r start_resizing_window +map ctrl+F9 new_os_window +map alt+] next_window +map alt+[ previous_window +map alt+f move_window_forward +map alt+b move_window_backward +map alt+` move_window_to_top +map alt+r start_resizing_window #: #: Tab -map kitty_mod+l next_tab -map kitty_mod+h previous_tab -map kitty_mod+t new_tab -map kitty_mod+q close_tab -map kitty_mod+. set_tab_title -map kitty_mod+1 first_window -map kitty_mod+2 second_window -map kitty_mod+3 third_window -map kitty_mod+4 fourth_window -map kitty_mod+5 fifth_window -map kitty_mod+6 sixth_window -map kitty_mod+7 seventh_window -map kitty_mod+8 eighth_window -map kitty_mod+9 ninth_window -map kitty_mod+0 tenth_window - -#: #: Layouts -map kitty_mod+l next_layout +map ctrl+shift+l next_tab +map ctrl+shift+h previous_tab +map ctrl+shift+t new_tab +map alt+q close_tab +map ctrl+alt+. set_tab_title +map alt+1 first_window +map alt+2 second_window +map alt+3 third_window +map alt+4 fourth_window +map alt+5 fifth_window +map alt+6 sixth_window +map alt+7 seventh_window +map alt+8 eighth_window +map alt+9 ninth_window +map alt+0 tenth_window #: #: Font Size -map kitty_mod+equal change_font_size all +2.0 -map kitty_mod+minus change_font_size all -2.0 -map kitty_mod+backspace change_font_size all 0 +map alt+equal change_font_size all +2.0 +map alt+minus change_font_size all -2.0 +map alt+ctrl+backspace change_font_size all 0 #:#: Other map f11 toggle_fullscreen -map kitty_mod+f10 toggle_maximized -map kitty_mod+u kitten unicode_input -map kitty_mod+f2 edit_config_file -map kitty_mod+escape kitty_shell window +map ctrl+shift+f10 toggle_maximized +map ctrl+shift+u kitten unicode_input +map ctrl+shift+f2 edit_config_file +#map kitty_mod+escape kitty_shell window map kitty_mod+delete clear_terminal reset active selection_background #073642 selection_foreground #edebd7 foreground #d2dae2 -background #1e272e +#background #1e272e +background #002B36 + cursorColor #d2dae2 color0 #1e272e @@ -235,4 +230,4 @@ color6 #0fbcf9 color14 #4bcffa color7 #808e9b -color15 #d2dae2 \ No newline at end of file +color15 #d2dae2 diff --git a/config/neofetch/config.conf b/config/neofetch/config.conf index e6d2127..973c3ea 100644 --- a/config/neofetch/config.conf +++ b/config/neofetch/config.conf @@ -1,11 +1,8 @@ -# See this wiki page for more info: -# https://github.com/dylanaraps/neofetch/wiki/Customizing-Info print_info() { info title info underline info "OS" distro - #info "Host" model info "Kernel" kernel info "Uptime" uptime info "Packages" packages @@ -21,844 +18,271 @@ print_info() { info "CPU" cpu info "GPU" gpu info "Memory" memory - - # info "GPU Driver" gpu_driver # Linux/macOS only - # info "CPU Usage" cpu_usage info "Disk" disk - # info "Battery" battery # info "Font" font - # info "Song" song - # [[ "$player" ]] && prin "Music Player" "$player" info "Local IP" local_ip info "Public IP" public_ip info "Users" users - # info "Locale" locale # This only works on glibc systems. - - #info cols } -# Title - - # Hide/Show Fully qualified domain name. -# -# Default: 'off' # Values: 'on', 'off' -# Flag: --title_fqdn title_fqdn="off" -# Kernel - - # Shorten the output of the kernel function. -# -# Default: 'on' # Values: 'on', 'off' -# Flag: --kernel_shorthand -# Supports: Everything except *BSDs (except PacBSD and PC-BSD) -# -# Example: -# on: '4.8.9-1-ARCH' -# off: 'Linux 4.8.9-1-ARCH' kernel_shorthand="on" - -# Distro - - # Shorten the output of the distro function -# -# Default: 'off' # Values: 'on', 'tiny', 'off' -# Flag: --distro_shorthand -# Supports: Everything except Windows and Haiku distro_shorthand="off" # Show/Hide OS Architecture. -# Show 'x86_64', 'x86' and etc in 'Distro:' output. -# -# Default: 'on' # Values: 'on', 'off' -# Flag: --os_arch -# -# Example: -# on: 'Arch Linux x86_64' -# off: 'Arch Linux' os_arch="on" - # Uptime - - -# Shorten the output of the uptime function -# -# Default: 'on' # Values: 'on', 'tiny', 'off' -# Flag: --uptime_shorthand -# -# Example: -# on: '2 days, 10 hours, 3 mins' -# tiny: '2d 10h 3m' -# off: '2 days, 10 hours, 3 minutes' uptime_shorthand="on" - # Memory - - -# Show memory pecentage in output. -# -# Default: 'off' # Values: 'on', 'off' -# Flag: --memory_percent -# -# Example: -# on: '1801MiB / 7881MiB (22%)' -# off: '1801MiB / 7881MiB' memory_percent="off" # Change memory output unit. -# -# Default: 'mib' # Values: 'kib', 'mib', 'gib' -# Flag: --memory_unit -# -# Example: -# kib '1020928KiB / 7117824KiB' -# mib '1042MiB / 6951MiB' -# gib: ' 0.98GiB / 6.79GiB' memory_unit="mib" - # Packages - - -# Show/Hide Package Manager names. -# -# Default: 'tiny' # Values: 'on', 'tiny' 'off' -# Flag: --package_managers -# -# Example: -# on: '998 (pacman), 8 (flatpak), 4 (snap)' -# tiny: '908 (pacman, flatpak, snap)' -# off: '908' package_managers="on" - # Shell - - -# Show the path to $SHELL -# -# Default: 'off' # Values: 'on', 'off' -# Flag: --shell_path -# -# Example: -# on: '/bin/bash' -# off: 'bash' shell_path="off" # Show $SHELL version -# -# Default: 'on' -# Values: 'on', 'off' -# Flag: --shell_version -# -# Example: -# on: 'bash 4.4.5' -# off: 'bash' shell_version="on" - # CPU - - -# CPU speed type -# -# Default: 'bios_limit' # Values: 'scaling_cur_freq', 'scaling_min_freq', 'scaling_max_freq', 'bios_limit'. -# Flag: --speed_type -# Supports: Linux with 'cpufreq' -# NOTE: Any file in '/sys/devices/system/cpu/cpu0/cpufreq' can be used as a value. speed_type="bios_limit" # CPU speed shorthand -# -# Default: 'off' # Values: 'on', 'off'. -# Flag: --speed_shorthand -# NOTE: This flag is not supported in systems with CPU speed less than 1 GHz -# -# Example: -# on: 'i7-6500U (4) @ 3.1GHz' -# off: 'i7-6500U (4) @ 3.100GHz' speed_shorthand="off" # Enable/Disable CPU brand in output. -# -# Default: 'on' # Values: 'on', 'off' -# Flag: --cpu_brand -# -# Example: -# on: 'Intel i7-6500U' -# off: 'i7-6500U (4)' cpu_brand="on" # CPU Speed -# Hide/Show CPU speed. -# -# Default: 'on' # Values: 'on', 'off' -# Flag: --cpu_speed -# -# Example: -# on: 'Intel i7-6500U (4) @ 3.1GHz' -# off: 'Intel i7-6500U (4)' cpu_speed="on" # CPU Cores -# Display CPU cores in output -# -# Default: 'logical' # Values: 'logical', 'physical', 'off' -# Flag: --cpu_cores -# Support: 'physical' doesn't work on BSD. -# -# Example: -# logical: 'Intel i7-6500U (4) @ 3.1GHz' (All virtual cores) -# physical: 'Intel i7-6500U (2) @ 3.1GHz' (All physical cores) -# off: 'Intel i7-6500U @ 3.1GHz' cpu_cores="logical" # CPU Temperature -# Hide/Show CPU temperature. -# Note the temperature is added to the regular CPU function. -# -# Default: 'off' # Values: 'C', 'F', 'off' -# Flag: --cpu_temp -# Supports: Linux, BSD -# NOTE: For FreeBSD and NetBSD-based systems, you'll need to enable -# coretemp kernel module. This only supports newer Intel processors. -# -# Example: -# C: 'Intel i7-6500U (4) @ 3.1GHz [27.2°C]' -# F: 'Intel i7-6500U (4) @ 3.1GHz [82.0°F]' -# off: 'Intel i7-6500U (4) @ 3.1GHz' -cpu_temp="off" - +cpu_temp="C" # GPU - - -# Enable/Disable GPU Brand -# -# Default: 'on' # Values: 'on', 'off' -# Flag: --gpu_brand -# -# Example: -# on: 'AMD HD 7950' -# off: 'HD 7950' gpu_brand="on" # Which GPU to display -# -# Default: 'all' # Values: 'all', 'dedicated', 'integrated' -# Flag: --gpu_type -# Supports: Linux -# -# Example: -# all: -# GPU1: AMD HD 7950 -# GPU2: Intel Integrated Graphics -# -# dedicated: -# GPU1: AMD HD 7950 -# -# integrated: -# GPU1: Intel Integrated Graphics gpu_type="all" - # Resolution - - -# Display refresh rate next to each monitor -# Default: 'off' # Values: 'on', 'off' -# Flag: --refresh_rate -# Supports: Doesn't work on Windows. -# -# Example: -# on: '1920x1080 @ 60Hz' -# off: '1920x1080' refresh_rate="off" - # Gtk Theme / Icons / Font - - -# Shorten output of GTK Theme / Icons / Font -# -# Default: 'off' # Values: 'on', 'off' -# Flag: --gtk_shorthand -# -# Example: -# on: 'Numix, Adwaita' -# off: 'Numix [GTK2], Adwaita [GTK3]' gtk_shorthand="off" - # Enable/Disable gtk2 Theme / Icons / Font -# -# Default: 'on' # Values: 'on', 'off' -# Flag: --gtk2 -# -# Example: -# on: 'Numix [GTK2], Adwaita [GTK3]' -# off: 'Adwaita [GTK3]' gtk2="on" # Enable/Disable gtk3 Theme / Icons / Font -# -# Default: 'on' # Values: 'on', 'off' -# Flag: --gtk3 -# -# Example: -# on: 'Numix [GTK2], Adwaita [GTK3]' -# off: 'Numix [GTK2]' gtk3="on" - # IP Address - - -# Website to ping for the public IP -# -# Default: 'http://ident.me' # Values: 'url' -# Flag: --ip_host public_ip_host="http://ident.me" # Public IP timeout. -# -# Default: '2' # Values: 'int' -# Flag: --ip_timeout public_ip_timeout=2 - # Desktop Environment - - -# Show Desktop Environment version -# -# Default: 'on' # Values: 'on', 'off' -# Flag: --de_version de_version="on" - # Disk - - -# Which disks to display. -# The values can be any /dev/sdXX, mount point or directory. -# NOTE: By default we only show the disk info for '/'. -# -# Default: '/' # Values: '/', '/dev/sdXX', '/path/to/drive'. -# Flag: --disk_show -# -# Example: -# disk_show=('/' '/dev/sdb1'): -# 'Disk (/): 74G / 118G (66%)' -# 'Disk (/mnt/Videos): 823G / 893G (93%)' -# -# disk_show=('/'): -# 'Disk (/): 74G / 118G (66%)' -# disk_show=('/') # Disk subtitle. -# What to append to the Disk subtitle. -# -# Default: 'mount' # Values: 'mount', 'name', 'dir', 'none' -# Flag: --disk_subtitle -# -# Example: -# name: 'Disk (/dev/sda1): 74G / 118G (66%)' -# 'Disk (/dev/sdb2): 74G / 118G (66%)' -# -# mount: 'Disk (/): 74G / 118G (66%)' -# 'Disk (/mnt/Local Disk): 74G / 118G (66%)' -# 'Disk (/mnt/Videos): 74G / 118G (66%)' -# -# dir: 'Disk (/): 74G / 118G (66%)' -# 'Disk (Local Disk): 74G / 118G (66%)' -# 'Disk (Videos): 74G / 118G (66%)' -# -# none: 'Disk: 74G / 118G (66%)' -# 'Disk: 74G / 118G (66%)' -# 'Disk: 74G / 118G (66%)' disk_subtitle="mount" # Disk percent. -# Show/Hide disk percent. -# -# Default: 'on' # Values: 'on', 'off' -# Flag: --disk_percent -# -# Example: -# on: 'Disk (/): 74G / 118G (66%)' -# off: 'Disk (/): 74G / 118G' disk_percent="on" - # Song - - -# Manually specify a music player. -# -# Default: 'auto' # Values: 'auto', 'player-name' -# Flag: --music_player -# -# Available values for 'player-name': -# -# amarok -# audacious -# banshee -# bluemindo -# clementine -# cmus -# deadbeef -# deepin-music -# dragon -# elisa -# exaile -# gnome-music -# gmusicbrowser -# gogglesmm -# guayadeque -# io.elementary.music -# iTunes -# juk -# lollypop -# mocp -# mopidy -# mpd -# muine -# netease-cloud-music -# olivia -# playerctl -# pogo -# pragha -# qmmp -# quodlibet -# rhythmbox -# sayonara -# smplayer -# spotify -# strawberry -# tauonmb -# tomahawk -# vlc -# xmms2d -# xnoise -# yarock music_player="auto" # Format to display song information. -# -# Default: '%artist% - %album% - %title%' # Values: '%artist%', '%album%', '%title%' -# Flag: --song_format -# -# Example: -# default: 'Song: Jet - Get Born - Sgt Major' song_format="%artist% - %album% - %title%" # Print the Artist, Album and Title on separate lines -# -# Default: 'off' # Values: 'on', 'off' -# Flag: --song_shorthand -# -# Example: -# on: 'Artist: The Fratellis' -# 'Album: Costello Music' -# 'Song: Chelsea Dagger' -# -# off: 'Song: The Fratellis - Costello Music - Chelsea Dagger' song_shorthand="off" # 'mpc' arguments (specify a host, password etc). -# -# Default: '' -# Example: mpc_args=(-h HOST -P PASSWORD) mpc_args=() - # Text Colors - - -# Text Colors -# -# Default: 'distro' # Values: 'distro', 'num' 'num' 'num' 'num' 'num' 'num' -# Flag: --colors -# -# Each number represents a different part of the text in -# this order: 'title', '@', 'underline', 'subtitle', 'colon', 'info' -# -# Example: -# colors=(distro) - Text is colored based on Distro colors. -# colors=(4 6 1 8 8 6) - Text is colored in the order above. colors=(distro) - -# Text Options - - # Toggle bold text -# -# Default: 'on' # Values: 'on', 'off' -# Flag: --bold bold="on" # Enable/Disable Underline -# -# Default: 'on' # Values: 'on', 'off' -# Flag: --underline underline_enabled="on" # Underline character -# -# Default: '-' # Values: 'string' -# Flag: --underline_char underline_char="-" - # Info Separator # Replace the default separator with the specified string. -# -# Default: ':' -# Flag: --separator -# -# Example: -# separator="->": 'Shell-> bash' -# separator=" =": 'WM = dwm' separator=":" - -# Color Blocks - - # Color block range # The range of colors to print. -# -# Default: '0', '15' # Values: 'num' -# Flag: --block_range -# -# Example: -# -# Display colors 0-7 in the blocks. (8 colors) -# neofetch --block_range 0 7 -# -# Display colors 0-15 in the blocks. (16 colors) -# neofetch --block_range 0 15 block_range=(0 15) # Toggle color blocks -# -# Default: 'on' # Values: 'on', 'off' -# Flag: --color_blocks color_blocks="on" # Color block width in spaces -# -# Default: '3' # Values: 'num' -# Flag: --block_width block_width=3 # Color block height in lines -# -# Default: '1' # Values: 'num' -# Flag: --block_height block_height=1 # Color Alignment -# -# Default: 'auto' # Values: 'auto', 'num' -# Flag: --col_offset -# -# Number specifies how far from the left side of the terminal (in spaces) to -# begin printing the columns, in case you want to e.g. center them under your -# text. -# Example: -# col_offset="auto" - Default behavior of neofetch -# col_offset=7 - Leave 7 spaces then print the colors col_offset="auto" -# Progress Bars - - # Bar characters -# -# Default: '-', '=' # Values: 'string', 'string' -# Flag: --bar_char -# -# Example: -# neofetch --bar_char 'elapsed' 'total' -# neofetch --bar_char '-' '=' bar_char_elapsed="-" bar_char_total="=" # Toggle Bar border -# -# Default: 'on' # Values: 'on', 'off' -# Flag: --bar_border bar_border="on" # Progress bar length in spaces # Number of chars long to make the progress bars. -# -# Default: '15' # Values: 'num' -# Flag: --bar_length bar_length=15 # Progress bar colors # When set to distro, uses your distro's logo colors. -# -# Default: 'distro', 'distro' # Values: 'distro', 'num' -# Flag: --bar_colors -# -# Example: -# neofetch --bar_colors 3 4 -# neofetch --bar_colors distro 5 bar_color_elapsed="distro" bar_color_total="distro" - # Info display # Display a bar with the info. -# -# Default: 'off' -# Values: 'bar', 'infobar', 'barinfo', 'off' -# Flags: --cpu_display -# --memory_display -# --battery_display -# --disk_display -# -# Example: -# bar: '[---=======]' -# infobar: 'info [---=======]' -# barinfo: '[---=======] info' -# off: 'info' cpu_display="off" memory_display="off" battery_display="off" disk_display="off" - -# Backend Settings - - # Image backend. -# -# Default: 'ascii' # Values: 'ascii', 'caca', 'chafa', 'jp2a', 'iterm2', 'off', # 'pot', 'termpix', 'pixterm', 'tycat', 'w3m', 'kitty' -# Flag: --backend image_backend="ascii" -# Image Source -# # Which image or ascii file to display. -# -# Default: 'auto' # Values: 'auto', 'ascii', 'wallpaper', '/path/to/img', '/path/to/ascii', '/path/to/dir/' # 'command output (neofetch --ascii "$(fortune | cowsay -W 30)")' -# Flag: --source -# -# NOTE: 'auto' will pick the best image source for whatever image backend is used. -# In ascii mode, distro ascii art will be used and in an image mode, your -# wallpaper will be used. image_source="auto" - -# Ascii Options - - # Ascii distro -# Which distro's ascii art to display. -# -# Default: 'auto' -# Values: 'auto', 'distro_name' -# Flag: --ascii_distro -# NOTE: AIX, Alpine, Anarchy, Android, Antergos, antiX, "AOSC OS", -# "AOSC OS/Retro", Apricity, ArcoLinux, ArchBox, ARCHlabs, -# ArchStrike, XFerience, ArchMerge, Arch, Artix, Arya, Bedrock, -# Bitrig, BlackArch, BLAG, BlankOn, BlueLight, bonsai, BSD, -# BunsenLabs, Calculate, Carbs, CentOS, Chakra, ChaletOS, -# Chapeau, Chrom*, Cleanjaro, ClearOS, Clear_Linux, Clover, -# Condres, Container_Linux, CRUX, Cucumber, Debian, Deepin, -# DesaOS, Devuan, DracOS, DarkOs, DragonFly, Drauger, Elementary, -# EndeavourOS, Endless, EuroLinux, Exherbo, Fedora, Feren, FreeBSD, -# FreeMiNT, Frugalware, Funtoo, GalliumOS, Garuda, Gentoo, Pentoo, -# gNewSense, GNOME, GNU, GoboLinux, Grombyang, Guix, Haiku, Huayra, -# Hyperbola, janus, Kali, KaOS, KDE_neon, Kibojoe, Kogaion, -# Korora, KSLinux, Kubuntu, LEDE, LFS, Linux_Lite, -# LMDE, Lubuntu, Lunar, macos, Mageia, MagpieOS, Mandriva, -# Manjaro, Maui, Mer, Minix, LinuxMint, MX_Linux, Namib, -# Neptune, NetBSD, Netrunner, Nitrux, NixOS, Nurunner, -# NuTyX, OBRevenge, OpenBSD, openEuler, OpenIndiana, openmamba, -# OpenMandriva, OpenStage, OpenWrt, osmc, Oracle, OS Elbrus, PacBSD, -# Parabola, Pardus, Parrot, Parsix, TrueOS, PCLinuxOS, Peppermint, -# popos, Porteus, PostMarketOS, Proxmox, Puppy, PureOS, Qubes, Radix, -# Raspbian, Reborn_OS, Redstar, Redcore, Redhat, Refracted_Devuan, -# Regata, Rosa, sabotage, Sabayon, Sailfish, SalentOS, Scientific, -# Septor, SereneLinux, SharkLinux, Siduction, Slackware, SliTaz, -# SmartOS, Solus, Source_Mage, Sparky, Star, SteamOS, SunOS, -# openSUSE_Leap, openSUSE_Tumbleweed, openSUSE, SwagArch, Tails, -# Trisquel, Ubuntu-Budgie, Ubuntu-GNOME, Ubuntu-MATE, Ubuntu-Studio, -# Ubuntu, Venom, Void, Obarun, windows10, Windows7, Xubuntu, Zorin, -# and IRIX have ascii logos -# NOTE: Arch, Ubuntu, Redhat, and Dragonfly have 'old' logo variants. -# Use '{distro name}_old' to use the old logos. -# NOTE: Ubuntu has flavor variants. -# Change this to Lubuntu, Kubuntu, Xubuntu, Ubuntu-GNOME, -# Ubuntu-Studio, Ubuntu-Mate or Ubuntu-Budgie to use the flavors. -# NOTE: Arcolinux, Dragonfly, Fedora, Alpine, Arch, Ubuntu, -# CRUX, Debian, Gentoo, FreeBSD, Mac, NixOS, OpenBSD, android, -# Antrix, CentOS, Cleanjaro, ElementaryOS, GUIX, Hyperbola, -# Manjaro, MXLinux, NetBSD, Parabola, POP_OS, PureOS, -# Slackware, SunOS, LinuxLite, OpenSUSE, Raspbian, -# postmarketOS, and Void have a smaller logo variant. -# Use '{distro name}_small' to use the small variants. ascii_distro="auto" # Ascii Colors -# -# Default: 'distro' # Values: 'distro', 'num' 'num' 'num' 'num' 'num' 'num' -# Flag: --ascii_colors -# -# Example: -# ascii_colors=(distro) - Ascii is colored based on Distro colors. -# ascii_colors=(4 6 1 8 8 6) - Ascii is colored using these colors. ascii_colors=(distro) # Bold ascii logo # Whether or not to bold the ascii logo. -# -# Default: 'on' # Values: 'on', 'off' -# Flag: --ascii_bold ascii_bold="on" - -# Image Options - - # Image loop # Setting this to on will make neofetch redraw the image constantly until # Ctrl+C is pressed. This fixes display issues in some terminal emulators. -# -# Default: 'off' # Values: 'on', 'off' -# Flag: --loop image_loop="off" # Thumbnail directory -# -# Default: '~/.cache/thumbnails/neofetch' # Values: 'dir' thumbnail_dir="${XDG_CACHE_HOME:-${HOME}/.cache}/thumbnails/neofetch" # Crop mode -# -# Default: 'normal' # Values: 'normal', 'fit', 'fill' -# Flag: --crop_mode -# -# See this wiki page to learn about the fit and fill options. -# https://github.com/dylanaraps/neofetch/wiki/What-is-Waifu-Crop%3F crop_mode="normal" # Crop offset -# Note: Only affects 'normal' crop mode. -# -# Default: 'center' # Values: 'northwest', 'north', 'northeast', 'west', 'center' # 'east', 'southwest', 'south', 'southeast' -# Flag: --crop_offset crop_offset="center" # Image size # The image is half the terminal width by default. -# -# Default: 'auto' # Values: 'auto', '00px', '00%', 'none' -# Flags: --image_size -# --size image_size="auto" # Gap between image and text -# -# Default: '3' # Values: 'num', '-num' -# Flag: --gap gap=3 # Image offsets # Only works with the w3m backend. -# -# Default: '0' # Values: 'px' -# Flags: --xoffset -# --yoffset yoffset=0 xoffset=0 # Image background color # Only works with the w3m backend. -# -# Default: '' # Values: 'color', 'blue' -# Flag: --bg_color background_color= - -# Misc Options - # Stdout mode # Turn off all colors and disables image backend (ASCII/Image). # Useful for piping into another command. -# Default: 'off' # Values: 'on', 'off' stdout="off" diff --git a/config/picom.conf b/config/picom.conf new file mode 100644 index 0000000..11f5fe2 --- /dev/null +++ b/config/picom.conf @@ -0,0 +1,56 @@ +########### Shadows ########### +dropdown_menu = { shadow = false; }; +popup_menu = { shadow = false; }; +utility = { shadow = false; }; +shadow = true; +shadow-radius = 11; +shadow-offset-x = -7; +shadow-offset-y = -7; +shadow-exclude = [ + "name = 'Notification'" +]; + + +############ Fading ########### +fading = true; +fade-in-step = 0.03; +fade-out-step = 0.03; + + +##### Transparency/Opacity #### +inactive-opacity = 0.8; +frame-opacity = 0.7; +inactive-opacity-override = false; +focus-exclude = []; + + +##### Background-Blurring ##### +blur-kern = "3x3box"; +blur-background-exclude = [ "window_type = 'desktop'" ]; + + +####### General Settings ###### +backend = "glx"; +vsync = true; +mark-wmwin-focused = true; +mark-ovredir-focused = true; +glx-no-stencil = true +detect-rounded-corners = true; +detect-client-opacity = true; +refresh-rate = 0; +detect-transient = true; +detect-client-leader = true; +glx-no-rebind-pixmap = true; +use-damage = true; +log-level = "warn"; +wintypes: +{ + tooltip = { fade = true; shadow = false; opacity = 1; focus = true; full-shadow = false; }; + menu = { fade = true; shadow = false; }; + popup_menu = { fade = true; shadow = false; }; + dropdown_menu = { fade = true; shadow = false; }; + utility = { fade = true; shadow = false; }; + dialog = { fade = true; shadow = false; }; + notify = { fade = true; shadow = true; }; + unknown = { fade = true; shadow = false; }; +}; diff --git a/config/polybar/config b/config/polybar/config index 8763c6e..a2d8741 100644 --- a/config/polybar/config +++ b/config/polybar/config @@ -3,26 +3,25 @@ pseudo-transparency = true [colors] background = #002B36 -background-alt = #073642 +background-alt = #002236 foreground = #dfdfdf -foreground-alt = #fdf6e3 +foreground-alt = #f0f0f0 primary = #268bd2 secondary = #218DC8 alert = #268bd2 -;alert = #dc322f -############################################################################################################ -[bar/example] -#monitor = ${env:MONITOR:HDMI-1} +;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; +[bar/bar] +;monitor = ${env:MONITOR:HDMI-1} width = 100% -height = 26 +height = 25 fixed-center = true locale = en_US.UTF-8 background = ${colors.background} foreground = ${colors.foreground} -line-size = 1 +line-size = 2 line-color = #f00 padding-left = 0 @@ -30,41 +29,22 @@ padding-right = 0 module-margin-left = 1 module-margin-right = 1 -; Fonts font-0 = Iosevka Nerd Font:style=Medium:size=8;3 font-1 = FontAwesome5Free:style=Solid:size=7.5;2.5 font-2 = Weather Icons:size=7;2 -font-3 = FontAwesome5Brands:style=Solid:size=7.5;2.5 -############################################################################################################ -; Modules position -modules-left = i3 sp2 openweathermap-simple updates-pacman -;modules-center = title -modules-center = spotify -modules-right = pulseaudio xkeyboard powermenu sp2 calendar +;; Modules positii3on ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; +modules-left = i3 sp2 weather updates-pacman +modules-center = +modules-right = pulseaudio microphone backlight keyboard clipmenu wlan date time sp2 tray-position = right tray-padding = 2 tray-detached = false - -############################################################################################################ -# INCLUDE MODULES -############################################################################################################ -[module/filesystem] -type = internal/fs -interval = 25 -mount-0 = / -mount-1 = /home - -label-mounted = %{F#c38611} %mountpoint%: %percentage_used%% -label-unmounted = %mountpoint% not mounted -label-unmounted-foreground = ${colors.foreground-alt} - -############################################################################################################ +;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; [settings] screenchange-reload = true -############################################################################################################ -; Used for top and bottom aligned bars + [global/wm] margin-top = 5 margin-bottom = 5 @@ -72,8 +52,7 @@ cursor-click = pointer cursor-scroll = ns-resize wm-restack = i3 -############################################################################################################ -; i3wm workspace indicator + [module/i3] type = internal/i3 format = @@ -82,33 +61,28 @@ wrapping-scroll = false label-mode-padding = 1 label-mode-foreground = #000 label-mode-background = ${colors.primary} + label-focused = %icon% -label-focused-background = 002873C0 +label-focused-background = 073642 label-focused-foreground = ${colors.foreground} label-focused-padding = 1 -label-focused-underline = 018BFF -#label-focused-overline = ${colors.primary} +label-focused-underline = 268bd2 label-unfocused = %icon% -label-unfocused-background = 00255498 label-unfocused-foreground = ${colors.foreground} label-unfocused-padding = 1 -#label-unfocused-underline = 255498 -#label-unfocused-overline = ${colors.background} label-urgent = %icon% label-urgent-background = ${colors.alert} label-urgent-foreground = ${colors.foreground} label-urgent-padding = 1 label-urgent-underline = ${colors.alert} -#label-urgent-overline = ${colors.background} label-visible = %icon% label-visible-background = ${colors.background} label-visible-foreground = ${colors.foreground} label-visible-padding = 1 label-visible-underline = ${colors.background} -#label-visible-overline = ${colors.background} ws-icon-0 = "1;1 " ws-icon-1 = "2;2 " @@ -118,19 +92,46 @@ ws-icon-4 = "5;5 " ws-icon-5 = "6;6 " ws-icon-6 = "7;7 " ws-icon-7 = 8;8 -ws-icon-8 = "9;9 " +ws-icon-8 = 9;9 ws-icon-9 = "10;10 " ;label-separator = | -############################################################################################################ -# PulseAudio- https://github.com/polybar/polybar/wiki/Module:-pulseaudio +;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; +;; INCLUDE MODULES +;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; +[module/backlight] +type = internal/xbacklight +format =