From f91584381fcfac2d8e48bb28f3c568d0110c05a2 Mon Sep 17 00:00:00 2001 From: vincent Date: Wed, 13 Jun 2018 21:38:45 +0200 Subject: [PATCH] migration config file --- beets/.config/beets/config.yaml | 39 + i3/.config/compton.conf | 233 +++ i3/.config/i3/autoxrandr | 11 + i3/.config/i3/config | 246 ++++ i3/.config/i3/i3exit | 39 + i3/.config/i3/rofi.theme | 189 +++ i3/.config/polybar/config | 424 ++++++ i3/.config/polybar/launch.sh | 18 + i3/.config/polybar/updates-arch-combined.sh | 9 + i3/.config/polybar/wallpaper.jpg | Bin 0 -> 6139603 bytes i3/.xinitrc | 32 + ncmpcpp/.ncmpcpp/bindings | 539 +++++++ ncmpcpp/.ncmpcpp/config | 3 + terminator/.config/config | 39 + test | 0 tmux/.tmux.conf | 95 ++ vim/.vim/.netrwhist | 4 + vim/.vim/autoload/pathogen.vim | 264 ++++ vim/.vim/bundle/YouCompleteMe | 1 + vim/.vim/bundle/nerdcommenter | 1 + vim/.vim/bundle/nerdtree | 1 + vim/.vim/bundle/syntastic | 1 + vim/.vim/bundle/vim-colorschemes | 1 + vim/.vim/swap/.Xdefaults.swp | Bin 0 -> 4096 bytes vim/.vim/swap/config.swo | Bin 0 -> 24576 bytes vim/.vim/swap/config.swp | Bin 0 -> 4096 bytes vim/.viminfo | 1455 +++++++++++++++++++ vim/.vimrc | 107 ++ zsh/.Xdefaults | 128 ++ zsh/.dircolors/dircolors.256dark | 303 ++++ zsh/.dircolors/dircolors.ansi-dark | 480 ++++++ zsh/.keep | 0 zsh/.zlogin | 20 + zsh/.zprofile | 11 + zsh/.zshrc | 4 + zsh/.zshrc.d/alias | 48 + zsh/.zshrc.d/oh-my-zsh | 93 ++ zsh/.zshrc.d/prompt | 14 + 38 files changed, 4852 insertions(+) create mode 100644 beets/.config/beets/config.yaml create mode 100644 i3/.config/compton.conf create mode 100755 i3/.config/i3/autoxrandr create mode 100644 i3/.config/i3/config create mode 100755 i3/.config/i3/i3exit create mode 100644 i3/.config/i3/rofi.theme create mode 100644 i3/.config/polybar/config create mode 100755 i3/.config/polybar/launch.sh create mode 100755 i3/.config/polybar/updates-arch-combined.sh create mode 100644 i3/.config/polybar/wallpaper.jpg create mode 100644 i3/.xinitrc create mode 100644 ncmpcpp/.ncmpcpp/bindings create mode 100644 ncmpcpp/.ncmpcpp/config create mode 100644 terminator/.config/config delete mode 100644 test create mode 100644 tmux/.tmux.conf create mode 100644 vim/.vim/.netrwhist create mode 100644 vim/.vim/autoload/pathogen.vim create mode 160000 vim/.vim/bundle/YouCompleteMe create mode 160000 vim/.vim/bundle/nerdcommenter create mode 160000 vim/.vim/bundle/nerdtree create mode 160000 vim/.vim/bundle/syntastic create mode 160000 vim/.vim/bundle/vim-colorschemes create mode 100644 vim/.vim/swap/.Xdefaults.swp create mode 100644 vim/.vim/swap/config.swo create mode 100644 vim/.vim/swap/config.swp create mode 100644 vim/.viminfo create mode 100644 vim/.vimrc create mode 100644 zsh/.Xdefaults create mode 100644 zsh/.dircolors/dircolors.256dark create mode 100644 zsh/.dircolors/dircolors.ansi-dark delete mode 100644 zsh/.keep create mode 100644 zsh/.zlogin create mode 100644 zsh/.zprofile create mode 100644 zsh/.zshrc create mode 100644 zsh/.zshrc.d/alias create mode 100644 zsh/.zshrc.d/oh-my-zsh create mode 100644 zsh/.zshrc.d/prompt diff --git a/beets/.config/beets/config.yaml b/beets/.config/beets/config.yaml new file mode 100644 index 0000000..6f5a1e4 --- /dev/null +++ b/beets/.config/beets/config.yaml @@ -0,0 +1,39 @@ + + +#██████╗ ███████╗███████╗████████╗███████╗ +#██╔══██╗██╔════╝██╔════╝╚══██╔══╝██╔════╝ +#██████╔╝█████╗ █████╗ ██║ ███████╗ +#██╔══██╗██╔══╝ ██╔══╝ ██║ ╚════██║ +#██████╔╝███████╗███████╗ ██║ ███████║ +#╚═════╝ ╚══════╝╚══════╝ ╚═╝ ╚══════╝ + + + + +directory: /mnt/diskstation/music +library: ~/Sync/library.db +import: + move: yes + write: yes + +paths: + default: $albumartist/$album%aunique{}/$track - $title + albumtype:classical: classical/$album%aunique{}/$track-$artist-$title + albumtype:Soundtrack: soundtracks/$album%aunique{}/$track-$artist-$title + comp: Compilations/$album%aunique{}/$track-$artist-$title + genre:classical: classical/$artist-$title + genre:Soundtrack: soundtracks/$artist-$title + + singleton: $artist/$title + + +plugins: fetchart lyrics lastgenre fromfilename chroma + +lastgenre: + source: track + + +fetchart: + auto: yes + + diff --git a/i3/.config/compton.conf b/i3/.config/compton.conf new file mode 100644 index 0000000..f4ca8b0 --- /dev/null +++ b/i3/.config/compton.conf @@ -0,0 +1,233 @@ +# Thank you code_nomad: http://9m.no/ꪯ鵞 + +################################# +# +# Backend +# +################################# + +# Backend to use: "xrender" or "glx". +# GLX backend is typically much faster but depends on a sane driver. +backend = "glx"; + +################################# +# +# GLX backend +# +################################# + +glx-no-stencil = true; + +# GLX backend: Copy unmodified regions from front buffer instead of redrawing them all. +# My tests with nvidia-drivers show a 10% decrease in performance when the whole screen is modified, +# but a 20% increase when only 1/4 is. +# My tests on nouveau show terrible slowdown. +# Useful with --glx-swap-method, as well. +glx-copy-from-front = false; + +# GLX backend: Use MESA_copy_sub_buffer to do partial screen update. +# My tests on nouveau shows a 200% performance boost when only 1/4 of the screen is updated. +# May break VSync and is not available on some drivers. +# Overrides --glx-copy-from-front. +# glx-use-copysubbuffermesa = true; + +# 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). +# Recommended if it works. +# glx-no-rebind-pixmap = true; + + +# GLX backend: GLX buffer swap method we assume. +# Could be undefined (0), copy (1), exchange (2), 3-6, or buffer-age (-1). +# undefined is the slowest and the safest, and the default value. +# copy is fastest, but may fail on some drivers, +# 2-6 are gradually slower but safer (6 is still faster than 0). +# Usually, double buffer means 2, triple buffer means 3. +# buffer-age means auto-detect using GLX_EXT_buffer_age, supported by some drivers. +# Useless with --glx-use-copysubbuffermesa. +# Partially breaks --resize-damage. +# Defaults to undefined. +glx-swap-method = "undefined"; + +################################# +# +# Shadows +# +################################# + +# Enabled client-side shadows on windows. +shadow = true; +# Don't draw shadows on DND windows. +no-dnd-shadow = true; +# Avoid drawing shadows on dock/panel windows. +no-dock-shadow = true; +# Zero the part of the shadow's mask behind the window. Fix some weirdness with ARGB windows. +clear-shadow = true; +# The blur radius for shadows. (default 12) +shadow-radius = 5; +# The left offset for shadows. (default -15) +shadow-offset-x = -5; +# The top offset for shadows. (default -15) +shadow-offset-y = -5; +# The translucency for shadows. (default .75) +shadow-opacity = 0.5; + +# Set if you want different colour shadows +# shadow-red = 0.0; +# shadow-green = 0.0; +# shadow-blue = 0.0; + +# The shadow exclude options are helpful if you have shadows enabled. Due to the way compton draws its shadows, certain applications will have visual glitches +# (most applications are fine, only apps that do weird things with xshapes or argb are affected). +# This list includes all the affected apps I found in my testing. The "! name~=''" part excludes shadows on any "Unknown" windows, this prevents a visual glitch with the XFWM alt tab switcher. +shadow-exclude = [ + "! name~=''", + "name = 'Notification'", + "name = 'Plank'", + "name = 'Docky'", + "name = 'Kupfer'", + "name = 'xfce4-notifyd'", + "name *= 'VLC'", + "name *= 'compton'", + "name *= 'Chromium'", + "name *= 'Chrome'", + "class_g = 'Conky'", + "class_g = 'Kupfer'", + "class_g = 'Synapse'", + "class_g ?= 'Notify-osd'", + "class_g ?= 'Cairo-dock'", + "class_g ?= 'Xfce4-notifyd'", + "class_g ?= 'Xfce4-power-manager'", + "_GTK_FRAME_EXTENTS@:c" +]; +# Avoid drawing shadow on all shaped windows (see also: --detect-rounded-corners) +shadow-ignore-shaped = false; + +################################# +# +# Opacity +# +################################# + +menu-opacity = 1; +inactive-opacity = 1; +active-opacity = 1; +frame-opacity = 1; +inactive-opacity-override = false; +alpha-step = 0.06; + +# Dim inactive windows. (0.0 - 1.0) +# inactive-dim = 0.2; +# Do not let dimness adjust based on window opacity. +# inactive-dim-fixed = true; +# Blur background of transparent windows. Bad performance with X Render backend. GLX backend is preferred. +# blur-background = true; +# Blur background of opaque windows with transparent frames as well. +# blur-background-frame = true; +# Do not let blur radius adjust based on window opacity. +blur-background-fixed = false; +blur-background-exclude = [ + "window_type = 'dock'", + "window_type = 'desktop'" +]; + +################################# +# +# Fading +# +################################# + +# Fade windows during opacity changes. +fading = true; +# The time between steps in a fade in milliseconds. (default 10). +fade-delta = 4; +# Opacity change between steps while fading in. (default 0.028). +fade-in-step = 0.03; +# Opacity change between steps while fading out. (default 0.03). +fade-out-step = 0.03; +# Fade windows in/out when opening/closing +# no-fading-openclose = true; + +# Specify a list of conditions of windows that should not be faded. +fade-exclude = [ ]; + +################################# +# +# Other +# +################################# + +# Try to detect WM windows and mark them as active. +mark-wmwin-focused = true; +# Mark all non-WM but override-redirect windows active (e.g. menus). +mark-ovredir-focused = true; +# Use EWMH _NET_WM_ACTIVE_WINDOW to determine which window is focused instead of using FocusIn/Out events. +# Usually more reliable but depends on a EWMH-compliant WM. +use-ewmh-active-win = true; +# Detect rounded corners and treat them as rectangular when --shadow-ignore-shaped is on. +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. +# This prevents opacity being ignored for some apps. +# For example without this enabled my xfce4-notifyd is 100% opacity no matter what. +detect-client-opacity = true; + +# Specify refresh rate of the screen. +# If not specified or 0, compton will try detecting this with X RandR extension. +refresh-rate = 0; + +# Set VSync method. VSync methods currently available: +# none: No VSync +# drm: VSync with DRM_IOCTL_WAIT_VBLANK. May only work on some drivers. +# opengl: Try to VSync with SGI_video_sync OpenGL extension. Only work on some drivers. +# opengl-oml: Try to VSync with OML_sync_control OpenGL extension. Only work on some drivers. +# opengl-swc: Try to VSync with SGI_swap_control OpenGL extension. Only work on some drivers. Works only with GLX backend. Known to be most effective on many drivers. Does not actually control paint timing, only buffer swap is affected, so it doesn’t have the effect of --sw-opti unlike other methods. Experimental. +# opengl-mswc: Try to VSync with MESA_swap_control OpenGL extension. Basically the same as opengl-swc above, except the extension we use. +# (Note some VSync methods may not be enabled at compile time.) +vsync = "opengl-swc"; + +# Enable DBE painting mode, intended to use with VSync to (hopefully) eliminate tearing. +# Reported to have no effect, though. +dbe = false; +# Painting on X Composite overlay window. Recommended. +paint-on-overlay = true; + +# Limit compton 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 = true; + +# Unredirect all windows if a full-screen opaque window is detected, to maximize performance for full-screen windows, like games. +# Known to cause flickering when redirecting/unredirecting windows. +# paint-on-overlay may make the flickering less obvious. +unredir-if-possible = true; + +# Specify a list of conditions of windows that should always be considered focused. +focus-exclude = [ ]; + +# Use WM_TRANSIENT_FOR to group windows, and consider windows in the same group focused at the same time. +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 = true; + +################################# +# +# Window type settings +# +################################# + +wintypes: +{ + tooltip = + { + # fade: Fade the particular type of windows. + fade = true; + # shadow: Give those windows shadow + shadow = false; + # opacity: Default opacity for the type of windows. + opacity = 0.85; + # focus: Whether to always consider windows of this type focused. + focus = true; + }; +}; diff --git a/i3/.config/i3/autoxrandr b/i3/.config/i3/autoxrandr new file mode 100755 index 0000000..16dcf79 --- /dev/null +++ b/i3/.config/i3/autoxrandr @@ -0,0 +1,11 @@ +#!/bin/bash +for output in $(xrandr | grep '\Wconnected' | awk '{ print $1 }'); do + if [[ $output =~ ^DP-1*$ ]]; then + lvds=$output + fi +done +for output in $(xrandr | grep '\Wconnected' | awk '{ print $1 }'); do + if [[ ! $output =~ ^DP-1*$ ]]; then + xrandr --output $lvds --primary --auto --left-of $output + fi +done diff --git a/i3/.config/i3/config b/i3/.config/i3/config new file mode 100644 index 0000000..217151b --- /dev/null +++ b/i3/.config/i3/config @@ -0,0 +1,246 @@ +# This file has been auto-generated by i3-config-wizard(1). +# It will not be overwritten, so edit it as you like. +# +# Should you change your keyboard layout some time, delete +# this file and re-run i3-config-wizard(1). +# + +# i3 config file (v4) +# +# Please see http://i3wm.org/docs/userguide.html for a complete reference! +#force_xinerama yes +## +exec --no-startup-id bash ~/.config/i3/autoxrandr & +set $mod Mod4 + +# Font for window titles. Will also be used by the bar unless a different font +# is used in the bar {} block below. +#font pango:monospace 8 +font xft:Droid Sans Mono 10 +# This font is widely installed, provides lots of unicode glyphs, right-to-left +# text rendering and scalability on retina/hidpi displays (thanks to pango). +#font pango:DejaVu Sans Mono 8 + +# Before i3 v4.8, we used to recommend this one as the default: +# font -misc-fixed-medium-r-normal--13-120-75-75-C-70-iso10646-1 +# The font above is very space-efficient, that is, it looks good, sharp and +# clear in small sizes. However, its unicode glyph coverage is limited, the old +# X core fonts rendering does not support right-to-left and this being a bitmap +# font, it doesn’t scale on retina/hidpi displays. + +# Use Mouse+$mod to drag floating windows to their wanted position +floating_modifier $mod + +# start a terminal +bindsym $mod+Return exec urxvtc + +# kill focused window +bindsym $mod+Shift+A kill + +# start dmenu (a program launcher) +bindsym $mod+d exec --no-startup-id i3-dmenu-desktop --dmenu='rofi -theme ~/.config/i3/rofi.theme -show drun' +# shipping a .desktop file. It is a wrapper around dmenu, so you need that +# installed. +# bindsym $mod+d exec --no-startup-id i3-dmenu-desktop + +# change focus +bindsym $mod+j focus left +bindsym $mod+k focus down +bindsym $mod+l focus up +bindsym $mod+m focus right + +# alternatively, you can use the cursor keys: +bindsym $mod+Left focus left +bindsym $mod+Down focus down +bindsym $mod+Up focus up +bindsym $mod+Right focus right + +# move focused window +bindsym $mod+Shift+j move left +bindsym $mod+Shift+k move down +bindsym $mod+Shift+l move up +bindsym $mod+Shift+M move right + +# alternatively, you can use the cursor keys: +bindsym $mod+Shift+Left move left +bindsym $mod+Shift+Down move down +bindsym $mod+Shift+Up move up +bindsym $mod+Shift+Right move right + +# split in horizontal orientation +bindsym $mod+h split h + +# split in vertical orientation +bindsym $mod+v split v + +bindsym $mod+g split toggle +# enter fullscreen mode for the focused container +bindsym $mod+f fullscreen toggle + +# change container layout (stacked, tabbed, toggle split) +bindsym $mod+s layout stacking +bindsym $mod+z layout tabbed +bindsym $mod+e layout toggle split + +# toggle tiling / floating +bindsym $mod+Shift+space floating toggle + +# change focus between tiling / floating windows +bindsym $mod+space focus mode_toggle + +# focus the parent container +bindsym $mod+q focus parent + +# focus the child container +bindsym $mod+Shift+q focus child + +# switch to workspace +bindsym $mod+ampersand workspace 1 +bindsym $mod+eacute workspace 2 +bindsym $mod+quotedbl workspace 3 +bindsym $mod+apostrophe workspace 4 +bindsym $mod+parenleft workspace 5 +bindsym $mod+minus workspace 6 +bindsym $mod+egrave workspace 7 +bindsym $mod+underscore workspace 8 +bindsym $mod+ccedilla workspace 9 +bindsym $mod+agrave workspace 10 + + +bindsym $mod+Tab workspace back_and_forth + +# move focused container to workspace +bindsym $mod+Shift+1 move container to workspace 1 +bindsym $mod+Shift+eacute move container to workspace 2 +bindsym $mod+Shift+3 move container to workspace 3 +bindsym $mod+Shift+4 move container to workspace 4 +bindsym $mod+Shift+5 move container to workspace 5 +bindsym $mod+Shift+6 move container to workspace 6 +bindsym $mod+Shift+egrave move container to workspace 7 +bindsym $mod+Shift+8 move container to workspace 8 +bindsym $mod+Shift+ccedilla move container to workspace 9 +bindsym $mod+Shift+agrave move container to workspace 10 + +# reload the configuration file +bindsym $mod+Shift+c reload +# restart i3 inplace (preserves your layout/session, can be used to upgrade i3) +bindsym $mod+Shift+r restart +# exit i3 (logs you out of your X session) +bindsym $mod+Shift+e exec "i3-nagbar -t warning -m 'You pressed the exit shortcut. Do you really want to exit i3? This will end your X session.' -b 'Yes, exit i3' 'i3-msg exit'" + +# resize window (you can also use the mouse for that) +mode "resize" { + # These bindings trigger as soon as you enter the resize mode + + # Pressing left will shrink the window’s width. + # Pressing right will grow the window’s width. + # Pressing up will shrink the window’s height. + # Pressing down will grow the window’s height. + bindsym j resize shrink width 10 px or 10 ppt + bindsym k resize grow height 10 px or 10 ppt + bindsym l resize shrink height 10 px or 10 ppt + bindsym m 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 + bindsym Return mode "default" + bindsym Escape mode "default" +} + +bindsym $mod+r mode "resize" + + +set $mode_power power +bindsym Mod1+Control+l mode "$mode_power" +mode "$mode_power" { + bindsym l mode "default", exec --no-startup-id $HOME/.config/i3/i3exit lock + bindsym e mode "default", exec --no-startup-id $HOME/.config/i3/i3exit logout + bindsym s mode "default", exec --no-startup-id $HOME/.config/i3/i3exit suspend + bindsym h mode "default", exec --no-startup-id $HOME/.config/i3/i3exit hibernate + bindsym r mode "default", exec --no-startup-id $HOME/.config/i3/i3exit reboot + bindsym p mode "default", exec --no-startup-id $HOME/.config/i3/i3exit shutdown + + bindsym Return mode "default" + bindsym Escape mode "default" +} +# Start i3bar to display a workspace bar (plus the system information i3status +# finds out, if available) + +#bar { + #status_command i3blocks -c ~/.config/i3/i3blocks.conf + #position top + #colors { + #separator #268bd2 + #background #002b36 + #statusline #839496 + #focused_workspace #fdf6e3 #6c71c4 #fdf6e3 + #active_workspace #fdf6e3 #6c71c4 #fdf6e3 + #inactive_workspace #002b36 #586e75 #002b36 + #urgent_workspace #d33682 #d33682 #fdf6e3 + #} +#} +bindsym $mod+c move workspace to output left +workspace_auto_back_and_forth yes +hide_edge_borders both +new_window pixel 1 +new_float normal 1 +## Gaps +gaps inner 20 +gaps outer 10 +smart_gaps on +smart_borders on + +## Brightness +bindsym XF86MonBrightnessUp exec --no-startup-id "light -A 10" +bindsym XF86MonBrightnessDown exec --no-startup-id "light -U 10" +## Audio +bindsym XF86AudioRaiseVolume exec --no-startup-id "pamixer -i 5" +bindsym XF86AudioLowerVolume exec --no-startup-id "pamixer -d 5 " +bindsym XF86AudioMute exec --no-startup-id "pamixer -t" + +bindsym XF86AudioPlay exec "mpc toggle" +bindsym XF86AudioStop exec "mpc stop" +bindsym XF86AudioNext exec "mpc next" +bindsym XF86AudioPrev exec "mpc prev" + +bindsym $mod+b exec --no-startup-id "firefox" + + +#::::::::::::::::::::::::::::: Frame window :::::::::::::::::::::::::::::::::::# +# Class border backgr text indicator child_border +client.focused #171f27 #171f27 #ffffff #ffffff #171f27 +client.focused_inactive #1d2121 #1d2121 #a1a1a1 #484e50 #1d2121 +client.unfocused #333333 #222222 #888888 #292d2e #222222 +client.urgent #4a4b4c #4a4b4c #fdfdfd #fbfbfb #4a4c4b +client.placeholder #000000 #0c0c0c #ffffff #000000 #0c0c0c + +client.background #111111 +#set floating +for_window [window_role="pop-up"] floating enable +for_window [window_role="bubble"] floating enable +for_window [window_role="task_dialog"] floating enable +for_window [window_role="Preferences"] floating enable +for_window [class="(?i)pavucontrol"] floating enable, move position mouse +for_window [window_type="dialog"] floating enable +for_window [window_type="menu"] floating enable +for_window [class="Gnome-calculator" instance="gnome-calculator" title="Calculatrice" window_role="gnome-calculator"] floating enable +for_window [class="KeePass"] floating enable +for_window [class="Docky"] floating enable +exec --no-startup-id numlockx +exec --no-startup-id urxvtd -q -o -f +exec --no-startup-id compton -b +exec --no-startup-id xinput set-prop 13 279 1 +exec --no-startup-id xinput set-prop 13 287 1 +# Dunst +exec --no-startup-id dunst -config ~/.config/dunstrc +#==============================================================================# +# Update notifier Archlinux +exec --no-startup-id aarchup # exec octopi-notifier +exec_always --no-startup-id $HOME/.config/polybar/launch.sh + +exec_always --no-startup-id feh --bg-scale ~/.config/i3/wallpaper.jpg diff --git a/i3/.config/i3/i3exit b/i3/.config/i3/i3exit new file mode 100755 index 0000000..49372fd --- /dev/null +++ b/i3/.config/i3/i3exit @@ -0,0 +1,39 @@ + +#!/usr/bin/env bash + +lock() { + # killall compton + import -window root /tmp/screenshot.png + convert /tmp/screenshot.png -blur 0x5 /tmp/screenshotblur.png + # convert /tmp/screenshot.png -spread 6 /tmp/screenshotblur.png + rm /tmp/screenshot.png + i3lock -k -i /tmp/screenshotblur.png + + # compton -b +} + +case "$1" in + lock) + lock + ;; + logout) + i3-msg exit + ;; + suspend) + systemctl suspend + ;; + hibernate) + systemctl hibernate + ;; + reboot) + systemctl reboot + ;; + shutdown) + systemctl poweroff + ;; + *) + echo "Usage: $0 [lock|logout|suspend|hibernate|reboot|shutdown]" + exit 2 +esac + +exit 0 diff --git a/i3/.config/i3/rofi.theme b/i3/.config/i3/rofi.theme new file mode 100644 index 0000000..8bfa57f --- /dev/null +++ b/i3/.config/i3/rofi.theme @@ -0,0 +1,189 @@ +/* ██████╗ ██████╗ ███████╗██╗ + ██╔══██╗██╔═══██╗██╔════╝██║ + ██████╔╝██║ ██║█████╗ ██║ + ██╔══██╗██║ ██║██╔══╝ ██║ + ██║ ██║╚██████╔╝██║ ██║ + ╚═╝ ╚═╝ ╚═════╝ ╚═╝ ╚═╝ +*/ +configuration { + display-ssh: " "; + display-run: ""; + display-drun: ""; + display-window: ""; + display-combi: ""; + show-icons: true; +} + + +/** + * Original Theme: arthur + * User: Qball + * Copyright: Dave Davenport + */ +* { + foreground: #dcdccc; + backlight: #ccffeedd; + background-color: #3f3f3f44; + dark: #1c1c1c; + // Black + black: #3d352a; + tlightblack: #3f3f3fdd; + // + // Red + red: #cc9393; + lightred: #dca3a3; + // + // Green + green: #7f9f7f; + lightgreen: #bfebbf; + // + // Yellow + yellow: #d0bf8f; + lightyellow: #f0dfaf; + // + // Blue + blue: #6495ed; + lightblue: #87ceeb; + // + // Magenta + magenta: #deb887; + lightmagenta: #996600; + // + // Cyan + cyan: #b0c4de; + tcyan: #ccb0c4de; + lightcyan: #acd0d3; + // + // White + white: #bbaa99; + lightwhite: #ddccbb; + // + // Bold, Italic, Underline + highlight: underline bold #ffffff; + + transparent: rgba(0,0,0,0); + font: "Sauce Code Pro 10"; +} +#window { + location: center; + anchor: center; + transparency: "real"; + fullscreen: true; + padding: 30% 20%; + border: 0px; + border-radius: 10px; + color: @magenta; + background-color: @background-color; + spacing: 0; + children: [vertb, mainbox]; + orientation: horizontal; +} + +#mainbox { + spacing: 0; + children: [ inputbar, message, listview ]; +} + +#message { + border-color: @foreground; + border: 0px 2px 2px 2px; +// border-radius: 10px; + padding: 5; + background-color: @background-color; +} +#message { + font: "Sauce Code Powerline ExtraLight 8"; + color: @black; +} + +#inputbar { + color: @lightgreen; + padding: 11px; + background-color: @tlightblack; + border: 2px 2px 2px 2px; + border-radius: 15px 15px 0px 0px; + border-color: @foreground; + font: "Sauce Code Pro 18"; +} +#entry,prompt,case-indicator { + text-font: inherit; + text-color:inherit; +} +#listview { + padding: 8px; + border-radius: 0px 0px 15px 15px; + border-color: @foreground; + border: 0px 2px 2px 2px; + background-color: @tlightblack; + dynamic: false; + lines: 10; +} +#element { + padding: 3px; + vertical-align: 0.5; +// border: 2px; + border-radius: 4px; + background-color: transparent; + color: @foreground; + font:inherit; +} +#element selected.normal { + background-color: @green; +} +#element normal active { + foreground: @lightblue; +} +#element normal urgent { + foreground: @lightred; +} +#element alternate normal { +} +#element alternate active { + foreground: @lightblue; +} +#element alternate urgent { + foreground: @lightred; +} +#element selected active { + background-color: @lightblue; + foreground: @dark; +} +#element selected urgent { + background-color: @lightred; + foreground: @dark; +} +#element normal normal { + +} + +#vertb { + expand: false; + children: [ dummy0, sidebar, dummy1 ]; +} +#dummy0, dummy1 { + expand: true; +} + +#sidebar { + expand: false; + orientation: vertical; + spacing: 0px; + border: 0px 0px 0px 0px; +} +#button { + font: "FontAwesome 22"; + padding: 6px; + border: 2px 0px 2px 2px; + border-radius: 4px 0px 0px 4px; + background-color: @tlightblack; + border-color: @foreground; + color: @foreground; + horizontal-align: 0.5; +} +#button selected normal { + color: @dark; + border: 2px 0px 2px 2px; + background-color: @backlight; + border-color: @foreground; +} + diff --git a/i3/.config/polybar/config b/i3/.config/polybar/config new file mode 100644 index 0000000..39d77a7 --- /dev/null +++ b/i3/.config/polybar/config @@ -0,0 +1,424 @@ +; ██████╗ ██████╗ ██╗ ██╗ ██╗██████╗ █████╗ ██████╗ +; ██╔══██╗██╔═══██╗██║ ╚██╗ ██╔╝██╔══██╗██╔══██╗██╔══██╗ +; ██████╔╝██║ ██║██║ ╚████╔╝ ██████╔╝███████║██████╔╝ +; ██╔═══╝ ██║ ██║██║ ╚██╔╝ ██╔══██╗██╔══██║██╔══██╗ +; ██║ ╚██████╔╝███████╗██║ ██████╔╝██║ ██║██║ ██║ +; ╚═╝ ╚═════╝ ╚══════╝╚═╝ ╚═════╝ ╚═╝ ╚═╝╚═╝ ╚═╝ +; polybar + +[colors] +background = #2f2f2f +foreground = #dcdccc +foreground-alt = #dcdccc +background-alt = #3f3f3f +white = $ffffff +grey = #aaaaaa +cyan = #acd0d3 +red = #cc9393 +green = #7f9f7f +yellow = #ffb52a +blue = #6ca0a3 +pink = #dc8cc3 +bcyan = #93e0e3 +bred = #dca3a3 +bgreen = #bfebbf +byellow = #f0dfaf +dred = #bd2c40 +skin = #ffcfaf + + +[bar/example] +monitor = ${env:MONITOR} +width = 100% +height = 29 +;offset-x = 1% +;offset-y = 1% +radius = 6.0 +fixed-center = false + +background = ${colors.background} +foreground = ${colors.foreground} + +line-size = 3 +line-color = #f00 +spacing=1 +border-size = 4 +border-color = #00000000 + +padding-left = 0 +padding-right = 2 + +module-margin-left = 3 +module-margin-right = 3 + +font-0 = fixed:pixelsize=10;1 +font-1 = unifont:fontformat=truetype:size=8:antialias=false +font-2 = FontAwesome5Free:style=Solid:pixelsize=15 +font-3 = FontAwesome5Brands:style=Solid:pixelsize=15 +modules-left = i3 +modules-center = mpd xwindow +modules-right =updates-arch-combined volume xkeyboard memory cpu wlan eth battery temperature date powermenu + +tray-position = right +tray-padding = 2 +;tray-transparent = true +;tray-background = #0063ff + +;wm-restack = bspwm +wm-restack = i3 + +;override-redirect = true + +;scroll-up = bspwm-desknext +;scroll-down = bspwm-deskprev + +;scroll-up = i3wm-wsnext +;scroll-down = i3wm-wsprev + +cursor-click = pointer +cursor-scroll = ns-resize + +[module/xwindow] +type = internal/xwindow +label =  %title:0:30:...% + +[module/xkeyboard] +type = internal/xkeyboard +blacklist-0 = num lock + +format-prefix = " " +format-prefix-foreground = ${colors.foreground-alt} +format-prefix-underline = ${colors.dred} + +label-layout = %layout% +label-layout-underline = ${colors.dred} + +label-indicator-padding = 2 +label-indicator-margin = 1 +label-indicator-background = ${colors.dred} +label-indicator-underline = ${colors.dred} + +[module/filesystem] +type = internal/fs +interval = 25 + +mount-0 = / +mount-1 = /home +label-mounted = %{F#0a81f5}%mountpoint%%{F-} : %percentage_used%% +label-unmounted = %mountpoint% not mounted +label-unmounted-foreground = ${colors.foreground-alt} + +[module/bspwm] +type = internal/bspwm + +label-focused = %index% +label-focused-background = ${colors.background-alt} +label-focused-underline= ${colors.yellow} +label-focused-padding = 2 + +label-occupied = %index% +label-occupied-padding = 2 + +label-urgent = %index%! +label-urgent-background = ${colors.dred} +label-urgent-padding = 2 + +label-empty = %index% +label-empty-foreground = ${colors.foreground-alt} +label-empty-padding = 2 + +[module/i3] +type = internal/i3 +format = +index-sort = true +wrapping-scroll = false +pin-workspaces = true +; Only show workspaces on the same output as the bar +;pin-workspaces = true + +label-mode-padding = 2 +label-mode-foreground = #000 +label-mode-background = ${colors.yellow} + +; focused = Active workspace on focused monitor +label-focused = %name% +label-focused-background = ${module/bspwm.label-focused-background} +label-focused-underline = ${module/bspwm.label-focused-underline} +label-focused-padding = ${module/bspwm.label-focused-padding} + +; unfocused = Inactive workspace on any monitor +label-unfocused = %name% +label-unfocused-padding = ${module/bspwm.label-occupied-padding} + +; visible = Active workspace on unfocused monitor +label-visible = %name% +label-visible-background = ${self.label-focused-background} +label-visible-underline = ${self.label-focused-underline} +label-visible-padding = ${self.label-focused-padding} + +; urgent = Workspace with urgency hint set +label-urgent = %name% +label-urgent-background = ${module/bspwm.label-urgent-background} +label-urgent-padding = ${module/bspwm.label-urgent-padding} + +ws-icon-0 = 1; +ws-icon-1 = 2; +ws-icon-2 = 3; +ws-icon-3 = 4; +ws-icon-4 = 5; +ws-icon-5 = 6; +ws-icon-6 = 7; +ws-icon-7 = 8: ~; +ws-icon-8 = 9: music; +ws-icon-default =  + +[module/mpd] +type = internal/mpd +format-online = + +icon-prev =  +icon-seekb =  +icon-stop =  +icon-play =  +icon-pause =  +icon-next =  +icon-seekf =  +icon-random =  +icon-repeat =  + +toggle-on-foreground = +toggle-off-foreground = #55 + +label-song-maxlen = 25 +label-song-ellipsis = true + +; bar-progress-width = 15 +; bar-progress-format = %{A4:mpdseek+2: A5:mpdseek-2:}%fill%%indicator%%empty%%{A A} +; bar-progress-indicator = | +; bar-progress-indicator-foreground = #ff +; bar-progress-fill = ─ +; bar-progress-fill-foreground = #bb +; bar-progress-empty = ─ +; bar-progress-empty-foreground = #44 +[module/xbacklight] +type = internal/backlight + +; $ ls -1 /sys/class/backlight/ +card = intel_backlight + +format = +format-underline = ${colors.byellow} + +bar-foreground-0 = #ffff00 + +bar-width = 5 +bar-indicator = | +bar-fill = ─ +bar-empty = ─ +ramp-0 =  +ramp-1 =  +ramp-2 =  + +bar-indicator-foreground = #ff +bar-indicator-font = 2 +bar-fill-foreground = #bb +bar-fill-font = 2 +bar-empty-foreground = #44 +bar-empty-font = 2 + +[module/cpu] +type = internal/cpu + +format =