From 3bf9ee3c8eb37e10603ea2f380abd33fad5221aa Mon Sep 17 00:00:00 2001 From: meliurwen Date: Fri, 26 Jun 2020 18:55:25 +0200 Subject: [PATCH] Initial commit --- compton/.config/compton/config | 160 ++++++++++ .../.config/deepin/deepin-screenshot.conf | 33 ++ dunst/.config/dunst/dunstrc | 101 ++++++ .../firefox/userprofile/chrome/userChrome.css | 30 ++ .../userprofile/chrome/userContent.css | 11 + i3/.config/i3/config | 298 ++++++++++++++++++ i3/.config/i3/scripts/brightnessControl.sh | 41 +++ i3/.config/i3/scripts/volumeControl.sh | 53 ++++ i3/.config/i3/scripts/webcam-toggle.sh | 2 + mime/.config/mimeapps.list | 41 +++ mpv/.config/mpv/mpv.conf | 20 ++ polybar/.config/polybar/config | 286 +++++++++++++++++ polybar/.config/polybar/launch.sh | 21 ++ polybar/.config/polybar/scripts/bluetooth.sh | 12 + polybar/.config/polybar/scripts/clementine.sh | 34 ++ polybar/.config/polybar/scripts/mpv.sh | 122 +++++++ .../polybar/scripts/toggle_bluetooth.sh | 7 + rofi/.config/rofi/config | 8 + rofi/.config/rofi/meli-dark.rasi | 70 ++++ rofi/.config/rofi/scripts/network/config | 19 ++ rofi/.config/rofi/scripts/network/network.sh | 100 ++++++ zathura/.config/zathura/zathurarc | 2 + 22 files changed, 1471 insertions(+) create mode 100644 compton/.config/compton/config create mode 100644 deepin-screenshot/.config/deepin/deepin-screenshot.conf create mode 100644 dunst/.config/dunst/dunstrc create mode 100644 firefox/.mozilla/firefox/userprofile/chrome/userChrome.css create mode 100644 firefox/.mozilla/firefox/userprofile/chrome/userContent.css create mode 100644 i3/.config/i3/config create mode 100755 i3/.config/i3/scripts/brightnessControl.sh create mode 100755 i3/.config/i3/scripts/volumeControl.sh create mode 100755 i3/.config/i3/scripts/webcam-toggle.sh create mode 100644 mime/.config/mimeapps.list create mode 100644 mpv/.config/mpv/mpv.conf create mode 100644 polybar/.config/polybar/config create mode 100755 polybar/.config/polybar/launch.sh create mode 100755 polybar/.config/polybar/scripts/bluetooth.sh create mode 100755 polybar/.config/polybar/scripts/clementine.sh create mode 100755 polybar/.config/polybar/scripts/mpv.sh create mode 100755 polybar/.config/polybar/scripts/toggle_bluetooth.sh create mode 100644 rofi/.config/rofi/config create mode 100644 rofi/.config/rofi/meli-dark.rasi create mode 100755 rofi/.config/rofi/scripts/network/config create mode 100755 rofi/.config/rofi/scripts/network/network.sh create mode 100644 zathura/.config/zathura/zathurarc diff --git a/compton/.config/compton/config b/compton/.config/compton/config new file mode 100644 index 0000000..c5e7a02 --- /dev/null +++ b/compton/.config/compton/config @@ -0,0 +1,160 @@ +################################# +# Backend +################################# + +backend = "glx"; +# backend = "glx"; +# glx-no-stencil = true; +# glx-copy-from-front = false; + +# GLX backend: Use MESA_copy_sub_buffer to do partial screen update. +# glx-use-copysubbuffermesa = true; + +# GLX backend: Avoid rebinding pixmap on window damage. +# 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). +# glx-swap-method = "undefined"; + +################################# +# Shadows +################################# + +shadow = true; +no-dnd-shadow = true; +no-dock-shadow = true; +clear-shadow = true; +shadow-radius = 6; +shadow-offset-x = -1; +shadow-offset-y = -1; +shadow-opacity = 0.3; + +# Change shadows color +# shadow-red = 0.1; +# shadow-green = 0.4; +# shadow-blue = 0.4; + +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" +]; + +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 +# 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'" +]; + +opacity-rule = [ + "90:class_g = 'URxvt' && !_NET_WM_STATE@:32a", + "0:_NET_WM_STATE@:32a *= '_NET_WM_STATE_HIDDEN'" +]; + +# Note: +# - Using xrender, opacity needs to be configured into ~/.Xresources, too. +# - Using glx, opacity will work getting the values from opacity-rule, +# however it causes a lot of lag into some terminals (urxvt and xterm). + +################################# +# Fading +################################# + +fading = true; +fade-delta = 4; +fade-in-step = 0.03; +fade-out-step = 0.03; +no-fading-openclose = false; +fade-exclude = [ ]; + +################################# +# Other +################################# + +mark-wmwin-focused = true; +mark-ovredir-focused = true; +use-ewmh-active-win = true; +detect-rounded-corners = true; +detect-client-opacity = true; +refresh-rate = 0; + +# VSync +# ----- +# 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. +vsync = "opengl-mswc"; + +dbe = false; +paint-on-overlay = true; +sw-opti = true; +unredir-if-possible = true; +focus-exclude = [ ]; +detect-transient = true; +detect-client-leader = true; + +################################# +# Window type settings +################################# + +wintypes: +{ + tooltip = + { + fade = true; + shadow = false; + opacity = 0.85; + focus = true; + }; +}; + +# For more information about the settings, see /etc/xdg/compton.conf diff --git a/deepin-screenshot/.config/deepin/deepin-screenshot.conf b/deepin-screenshot/.config/deepin/deepin-screenshot.conf new file mode 100644 index 0000000..37f59d2 --- /dev/null +++ b/deepin-screenshot/.config/deepin/deepin-screenshot.conf @@ -0,0 +1,33 @@ +[arrow] +arrow_linewidth_index=0 +color_index=3 +is_straight=false +straightline_linewidth_index=0 + +[common] +color_index=3 +default_savepath=clipboard + +[effect] +is_blur=false +is_mosaic=false + +[line] +color_index=3 +linewidth_index=0 + +[oval] +color_index=3 +linewidth_index=1 + +[rectangle] +color_index=3 +linewidth_index=0 + +[save] +save_op=3 +save_quality=100 + +[text] +color_index=3 +fontsize=12 diff --git a/dunst/.config/dunst/dunstrc b/dunst/.config/dunst/dunstrc new file mode 100644 index 0000000..83bda61 --- /dev/null +++ b/dunst/.config/dunst/dunstrc @@ -0,0 +1,101 @@ +## Modified By Aditya Shakya ... + +[global] + +monitor = 0 +follow = mouse +geometry = "250x50-20+40" +indicate_hidden = yes +shrink = no +transparency = 0 +notification_height = 0 +separator_height = 4 +padding = 16 +horizontal_padding = 16 +frame_width = 2 +frame_color = "#43B581" +separator_color = frame +sort = yes +idle_threshold = 120 +font = "Ubuntu Nerd Font" 10 +line_height = 4 +markup = full +format = "%s\n%b" +alignment = left +show_age_threshold = 60 +word_wrap = yes +ignore_newline = no +stack_duplicates = false +hide_duplicate_count = false +show_indicators = yes +icon_position = left +max_icon_size = 32 + +## Paths to default icons. +icon_folders = /usr/share/icons/Adwaita/32x32/status/:/usr/share/icons/Adwaita/32x32/devices/ +sticky_history = yes +history_length = 20 +dmenu = /usr/bin/dmenu -p dunst: +browser = /usr/bin/firefox -new-tab +always_run_script = true +title = Dunst +class = Dunst +startup_notification = false +force_xinerama = false + +# Experimental features that may or may not work correctly. Do not expect them +# to have a consistent behaviour across releases. +[experimental] +# Calculate the dpi to use on a per-monitor basis. +# If this setting is enabled the Xft.dpi value will be ignored and instead +# dunst will attempt to calculate an appropriate dpi value for each monitor +# using the resolution and physical size. This might be useful in setups +# where there are multiple screens with very different dpi values. +per_monitor_dpi = false + +[shortcuts] + +# Shortcuts are specified as [modifier+][modifier+]...key +# Available modifiers are "ctrl", "mod1" (the alt-key), "mod2", +# "mod3" and "mod4" (windows-key). +# Xev might be helpful to find names for keys. + +# Close notification. +close = ctrl+space + +# Close all notifications. +close_all = ctrl+shift+space + +# Redisplay last message(s). +# On the US keyboard layout "grave" is normally above TAB and left +# of "1". Make sure this key actually exists on your keyboard layout, +# e.g. check output of 'xmodmap -pke' +history = ctrl+grave + +# Context menu. +context = ctrl+shift+period + +[urgency_low] +# IMPORTANT: colors have to be defined in quotation marks. +# Otherwise the "#" and following would be interpreted as a comment. +background = "#262626" +foreground = "#BBA590" +timeout = 1 +# Icon for notifications with low urgency, uncomment to enable +#icon = /path/to/icon + +[urgency_normal] +background = "#262626" +foreground = "#BBA590" +timeout = 4 +# Icon for notifications with normal urgency, uncomment to enable +#icon = /path/to/icon + +[urgency_critical] +background = "#262626" +foreground = "#BBA590" +frame_color = "#FF5050" +timeout = 0 +# Icon for notifications with critical urgency, uncomment to enable +#icon = /path/to/icon + diff --git a/firefox/.mozilla/firefox/userprofile/chrome/userChrome.css b/firefox/.mozilla/firefox/userprofile/chrome/userChrome.css new file mode 100644 index 0000000..1f08faf --- /dev/null +++ b/firefox/.mozilla/firefox/userprofile/chrome/userChrome.css @@ -0,0 +1,30 @@ + + +#urlbar, #navigator-toolbox #searchbar {border: none !important;} + + +#navigator-toolbox { + border: none !important; +} + + +toolbox { + z-index: 10; + margin-top: 0px !important; + margin-bottom: -30px !important; + height: 0 !important; + pointer-events: none; +} +vbox {pointer-events: all;} + + +#nav-bar { + opacity: 0; + pointer-events: none; + transition: transform, ease-in-out 0.2s, opacity 0.2s ease-in-out !important; +} +/* All the states in which the URL bar is visible */ +vbox:hover ~ #nav-bar, toolbox:focus-within > #nav-bar, #nav-bar:hover, #mainPopupSet:hover ~ box #nav-bar, #mainPopupSet:focus-within ~ box #nav-bar { + opacity: 1; + pointer-events: all; +} diff --git a/firefox/.mozilla/firefox/userprofile/chrome/userContent.css b/firefox/.mozilla/firefox/userprofile/chrome/userContent.css new file mode 100644 index 0000000..6972a1b --- /dev/null +++ b/firefox/.mozilla/firefox/userprofile/chrome/userContent.css @@ -0,0 +1,11 @@ +@-moz-document url("about:newtab"), url("about:home"), url("about:blank") { + body { + --newtab-background-color: #2A2A2E !important; + --newtab-text-primary-color: #CCCCCC !important; + --newtab-search-dropdown-color: #2A2A2E !important; + --newtab-search-dropdown-header-color: #2A2A2E !important; + --newtab-search-icon-color: rgba(255, 255, 255, 0.95) !important; + --newtab-topsites-background-color: #373737 !important; + --newtab-textbox-background-color: #373737 !important; + } +} diff --git a/i3/.config/i3/config b/i3/.config/i3/config new file mode 100644 index 0000000..29fa95d --- /dev/null +++ b/i3/.config/i3/config @@ -0,0 +1,298 @@ +# 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 https://i3wm.org/docs/userguide.html for a complete reference! + +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 + +# 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 urxvt + +# kill focused window +bindsym $mod+Shift+q kill + +# start dmenu (a program launcher) +#bindsym $mod+d exec dmenu_run +bindsym $mod+d exec rofi -show drun -theme meli-dark + +# There also is the (new) i3-dmenu-desktop which only displays applications +# 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+ograve 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+ograve 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 + +# 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+w 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+a focus parent + +# focus the child container +#bindsym $mod+d focus child + +# Define names for default workspaces for which we configure key bindings later on. +# We use variables to avoid repeating the names in multiple places. +set $ws1 "1" +set $ws2 "2" +set $ws3 "3" +set $ws4 "4" +set $ws5 "5" +set $ws6 "6" +set $ws7 "7" +set $ws8 "8" +set $ws9 "9" +set $ws10 "10" + +# switch to workspace +bindsym $mod+1 workspace $ws1 +bindsym $mod+2 workspace $ws2 +bindsym $mod+3 workspace $ws3 +bindsym $mod+4 workspace $ws4 +bindsym $mod+5 workspace $ws5 +bindsym $mod+6 workspace $ws6 +bindsym $mod+7 workspace $ws7 +bindsym $mod+8 workspace $ws8 +bindsym $mod+9 workspace $ws9 +bindsym $mod+0 workspace $ws10 + +# move focused container to workspace +bindsym $mod+Shift+1 move container to workspace $ws1 +bindsym $mod+Shift+2 move container to workspace $ws2 +bindsym $mod+Shift+3 move container to workspace $ws3 +bindsym $mod+Shift+4 move container to workspace $ws4 +bindsym $mod+Shift+5 move container to workspace $ws5 +bindsym $mod+Shift+6 move container to workspace $ws6 +bindsym $mod+Shift+7 move container to workspace $ws7 +bindsym $mod+Shift+8 move container to workspace $ws8 +bindsym $mod+Shift+9 move container to workspace $ws9 +bindsym $mod+Shift+0 move container to workspace $ws10 + +# 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 ograve 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" + bindsym $mod+r mode "default" +} + +bindsym $mod+r mode "resize" + +# Start i3bar to display a workspace bar (plus the system information i3status +# finds out, if available) +#bar { +# status_command i3status +#} + +#bar { +# status_command i3blocks +#} + +bar { + i3bar_command $HOME/.config/polybar/launch.sh +} + +default_border pixel 1 +default_floating_border normal + +# Status Control +# `dm-tool` works with lightdm greeters only +bindsym XF86ScreenSaver exec "dm-tool lock" + +# Screenshot +# (it deletes the screenshot file in `/tmp/` right after copying it to the clipboard) +# Note1: `scrot` doesn't work well with `compton` +# Note2: `gnome-screenshot` has problems too when runs in CLI mode +# Note3: `deepin-screenshot` ignores the `--no-notification` option +##bindsym Print --release exec "scrot -s /tmp/screenshot-$(date +%F_%T).png -zq 100 -e '$(xclip -selection c -t image/png < $f); rm $f'" +##bindsym Print --release exec gnome-screenshot -ac -d 0 +bindsym Print --release exec "screenshot_image=$(date +%F_%T).png && deepin-screenshot --no-notification -s /tmp/$screenshot_image && xclip -selection c -t image/png < /tmp/$screenshot_image && rm /tmp/$screenshot_image && unset screenshot_image" + +# Speakers and Mic Controls +##bindsym XF86AudioRaiseVolume exec --no-startup-id pactl set-sink-volume 0 +5% +##bindsym XF86AudioLowerVolume exec --no-startup-id pactl set-sink-volume 0 -5% +##bindsym XF86AudioMute exec --no-startup-id pactl set-sink-mute 0 toggle +bindsym XF86AudioMicMute exec --no-startup-id pactl set-source-mute 1 toggle + +bindsym XF86AudioRaiseVolume exec --no-startup-id ~/.config/i3/scripts/volumeControl.sh up +bindsym XF86AudioLowerVolume exec --no-startup-id ~/.config/i3/scripts/volumeControl.sh down +bindsym XF86AudioMute exec --no-startup-id ~/.config/i3/scripts/volumeControl.sh mute + +# Screen brightness controls +##bindsym XF86MonBrightnessUp exec "xbacklight -inc 10" +##bindsym XF86MonBrightnessDown exec "xbacklight -dec 10" + +bindsym XF86MonBrightnessUp exec --no-startup-id ~/.config/i3/scripts/brightnessControl.sh up +bindsym XF86MonBrightnessDown exec --no-startup-id ~/.config/i3/scripts/brightnessControl.sh down + +# Turn screen off +bindsym XF86Launch1 exec --no-startup-id xset dpms force off + +# Webcam 1 dropdown +for_window [title="video0 - mpv"] floating enable +for_window [title="video0 - mpv"] sticky enable +for_window [title="video0 - mpv"] border none + +# WebCam Toggle +bindsym XF86WebCam exec ~/.config/i3/scripts/webcam-toggle.sh + +# Numlock +exec_always --no-startup-id numlockx on + +# Background +exec --no-startup-id feh --bg-fill $HOME/Scaricati/northern_lights_by_aenami_dbbx471.png + +# Compositor +exec --no-startup-id compton --config $HOME/.config/compton/config + +# Notification Manager +exec --no-startup-id dunst --config $HOME/.config/dunst/dunstrc + +# Pulseaudio +## Necessary if you have no DE (gnome, xfce, etc...) under i3. +exec pulseaudio --kill && pulseaudio --start + +# Nextcloud Desktop +#exec --no-startup-id nextcloud + +## Use `xprop` to determine windows paramenters. Guide below: +## https://i3wm.org/docs/userguide.html#list_of_commands +# Calculators +for_window [instance=qalc] floating enable +for_window [instance=qalc] border normal +for_window [instance=gnome-calculator] floating enable +for_window [instance=gnome-calculator] border normal + +# Firefox +for_window [class=Firefox window_role="page-info"] floating enable +for_window [class=Firefox window_role="page-info"] border normal +for_window [class=Firefox window_role="About"] floating enable +for_window [class=Firefox window_role="About"] border normal +for_window [class=Firefox window_role="Organizer"] floating enable +for_window [class=Firefox window_role="Organizer"] border normal + +# Teamspeak 3 +for_window [class="TeamSpeak 3" title="File Transfers"] floating enable +for_window [class="TeamSpeak 3" title="File Transfers"] border normal +for_window [class="TeamSpeak 3" title="File Browser -"] floating enable +for_window [class="TeamSpeak 3" title="File Browser -"] border normal +for_window [class="TeamSpeak 3" title="Bookmarks"] floating enable +for_window [class="TeamSpeak 3" title="Bookmarks"] border normal + +# Blueberry +for_window [class="Blueberry.py"] floating enable +for_window [class="Blueberry.py"] border normal + +# Pavucontrol (PulseAudio Volume Control) +for_window [class="Pavucontrol"] floating enable +for_window [class="Pavucontrol"] border normal + +# Gnome System Monitor +for_window [instance="gnome-system-monitor"] floating enable +for_window [instance="gnome-system-monitor"] border normal + +# Steam +for_window [instance="Steam" title="Steam Guard - Computer Authorization Required"] floating enable +for_window [instance="Steam" title="Steam Guard - Computer Authorization Required"] border normal +for_window [instance="Steam" title="Friends List"] floating enable +for_window [instance="Steam" title="Friends List"] border normal +for_window [instance="Steam" title="Trade offer with"] floating enable +for_window [instance="Steam" title="Trade offer with"] border normal +for_window [instance="Steam" title="Allow game launch?"] floating enable +for_window [instance="Steam" title="Allow game launch?"] border normal +for_window [instance="Steam" title="Screenshot Uploader"] floating enable +for_window [instance="Steam" title="Screenshot Uploader"] border normal + + + +## Custom Keybindings +# Swap Two Windows Places +bindsym $mod+Mod1+x mark --add quickswap +bindsym $mod+x swap container with mark quickswap; [con_mark="quickswap"] focus diff --git a/i3/.config/i3/scripts/brightnessControl.sh b/i3/.config/i3/scripts/brightnessControl.sh new file mode 100755 index 0000000..89c78a7 --- /dev/null +++ b/i3/.config/i3/scripts/brightnessControl.sh @@ -0,0 +1,41 @@ +#!/usr/bin/env bash + +# You can call this script like this: +# $ ./brightnessControl.sh up +# $ ./brightnessControl.sh down + +# Script inspired by these wonderful people: +# https://github.com/dastorm/volume-notification-dunst/blob/master/volume.sh +# https://gist.github.com/sebastiencs/5d7227f388d93374cebdf72e783fbd6a + +function get_brightness { + xbacklight -get | cut -d '.' -f 1 +} + +function send_notification { + icon="preferences-system-brightness-lock" + brightness=$(get_brightness) + # Make the bar with the special character ─ (it's not dash -) + # https://en.wikipedia.org/wiki/Box-drawing_character + bar=$(seq -s "─" 0 $((brightness / 5)) | sed 's/[0-9]//g') + # Send the notification + dunstify -i "$icon" -r 5555 -u normal " $bar" +} + +case $1 in + up) + # increase the backlight by 5% + ##xbacklight -inc 5 + brightnessctl s +5% + send_notification + ;; + down) + # decrease the backlight by 5% + ##xbacklight -dec 5 + brightnessctl s 5%- + send_notification + ;; +esac + +# Note: Seems that `xbacklight` doesn't work without a proper DE under i3. +# `brightnessctl` seems an interesting alternative. :) diff --git a/i3/.config/i3/scripts/volumeControl.sh b/i3/.config/i3/scripts/volumeControl.sh new file mode 100755 index 0000000..86ff4df --- /dev/null +++ b/i3/.config/i3/scripts/volumeControl.sh @@ -0,0 +1,53 @@ +#!/usr/bin/env bash + +# You can call this script like this: +# $ ./volumeControl.sh up +# $ ./volumeControl.sh down +# $ ./volumeControl.sh mute + +# Script modified from these wonderful people: +# https://github.com/dastorm/volume-notification-dunst/blob/master/volume.sh +# https://gist.github.com/sebastiencs/5d7227f388d93374cebdf72e783fbd6a + +function get_volume { + amixer get Master | grep '%' | head -n 1 | cut -d '[' -f 2 | cut -d '%' -f 1 +} + +function is_mute { + amixer get Master | grep '%' | grep -oE '[^ ]+$' | grep off > /dev/null +} + +function send_notification { + iconSound="audio-volume-high" + iconMuted="audio-volume-muted" + if is_mute ; then + dunstify -i $iconMuted -r 2593 -u normal "mute" + else + volume=$(get_volume) + # Make the bar with the special character ─ (it's not dash -) + # https://en.wikipedia.org/wiki/Box-drawing_character + bar=$(seq --separator="─" 0 "$((volume / 5))" | sed 's/[0-9]//g') + # Send the notification + dunstify -i $iconSound -r 2593 -u normal " $bar" + fi +} + +case $1 in + up) + # set the volume on (if it was muted) + amixer -D pulse set Master on > /dev/null + # up the volume (+ 5%) + amixer -D pulse sset Master 5%+ > /dev/null + send_notification + ;; + down) + amixer -D pulse set Master on > /dev/null + amixer -D pulse sset Master 5%- > /dev/null + send_notification + ;; + mute) + # toggle mute + amixer -D pulse set Master 1+ toggle > /dev/null + send_notification + ;; +esac diff --git a/i3/.config/i3/scripts/webcam-toggle.sh b/i3/.config/i3/scripts/webcam-toggle.sh new file mode 100755 index 0000000..d989ddb --- /dev/null +++ b/i3/.config/i3/scripts/webcam-toggle.sh @@ -0,0 +1,2 @@ +#!/bin/sh +pkill -f /dev/video || mpv --no-osc --no-input-default-bindings --input-conf=/dev/null -vo=gpu --geometry=-0-0 --autofit=30% av://v4l2:/dev/video0 diff --git a/mime/.config/mimeapps.list b/mime/.config/mimeapps.list new file mode 100644 index 0000000..dfbffc3 --- /dev/null +++ b/mime/.config/mimeapps.list @@ -0,0 +1,41 @@ +[Added Associations] +application/octet-stream=org.gnome.gedit.desktop; +image/gif=mpv.desktop; +text/x-python3=org.gnome.gedit.desktop; +image/png=feh.desktop;gimp.desktop; +image/svg+xml=org.inkscape.Inkscape.desktop;org.gnome.gedit.desktop;inkscape.desktop;gimp.desktop;feh.desktop; +application/pdf=org.gnome.Evince.desktop;org.inkscape.Inkscape.desktop;org.pwmt.zathura-pdf-poppler.desktop; +text/html=firefox.desktop; +image/jpeg=feh.desktop;gimp.desktop;org.gnome.eog.desktop; +application/xml=org.gnome.gedit.desktop; +text/plain=org.gnome.gedit.desktop; +text/x-tex=org.gnome.latexila.desktop;org.gnome.gedit.desktop; +text/x-bibtex=org.gnome.latexila.desktop; +text/csv=libreoffice-calc.desktop;org.gnome.gedit.desktop; +video/mp4=mpv.desktop;vlc.desktop; +application/zip=org.gnome.Nautilus.desktop; +video/mpeg=vlc.desktop;mpv.desktop; +text/markdown=org.gnome.gedit.desktop; +audio/x-vorbis+ogg=mpv.desktop; +x-scheme-handler/rdp=org.remmina.Remmina.desktop; +x-scheme-handler/spice=org.remmina.Remmina.desktop; +x-scheme-handler/vnc=org.remmina.Remmina.desktop; +x-scheme-handler/remmina=org.remmina.Remmina.desktop; +application/x-remmina=org.remmina.Remmina.desktop; +video/x-matroska=mpv.desktop;vlc.desktop; +video/x-flv=mpv.desktop; +audio/flac=mpv.desktop; +text/vcard=org.gnome.gedit.desktop; + +[Default Applications] +text/plain=org.gnome.gedit.desktop +image/svg+xml=inkscape.desktop +inode/directory=org.gnome.Nautilus.desktop; +application/pdf=org.pwmt.zathura-pdf-poppler.desktop; +x-scheme-handler/http=firefox.desktop; +x-scheme-handler/https=firefox.desktop; +x-scheme-handler/rdp=org.remmina.Remmina.desktop +x-scheme-handler/spice=org.remmina.Remmina.desktop +x-scheme-handler/vnc=org.remmina.Remmina.desktop +x-scheme-handler/remmina=org.remmina.Remmina.desktop +application/x-remmina=org.remmina.Remmina.desktop diff --git a/mpv/.config/mpv/mpv.conf b/mpv/.config/mpv/mpv.conf new file mode 100644 index 0000000..636989f --- /dev/null +++ b/mpv/.config/mpv/mpv.conf @@ -0,0 +1,20 @@ + +## Limits Youtube's videos resolution and picks the best audio quality available +## See: https://github.com/mpv-player/mpv/issues/4241#issuecomment-327033395 +## NOTE: pick only one of these two lines below! + +#ytdl-format=bestvideo[height<=?1080][fps<=?30][vcodec!=?vp9]+bestaudio/best +ytdl-format=bestvideo[height<=?720][fps<=?30][vcodec!=?vp9]+bestaudio/best + + +# In order to communicate to the Polybar's mpv module +input-ipc-server=/tmp/mpvsocket + +# Enable hardware acceleration (Intel specific) +## See: +## https://github.com/mpv-player/mpv/wiki/Hardware-decoding-on-Linux +## https://wiki.archlinux.org/index.php/Mpv#Hardware_video_acceleration +hwdec=vaapi + + +save-position-on-quit diff --git a/polybar/.config/polybar/config b/polybar/.config/polybar/config new file mode 100644 index 0000000..f1baad0 --- /dev/null +++ b/polybar/.config/polybar/config @@ -0,0 +1,286 @@ + +;; Palette +[color] +trans = #00000000 +white = #FFFFFF +black = #000000 +grey = #797979 +grey-dark = #3f3f3f +orange = #ffa000 +red = #bd2c40 + + + +[global/wm] +margin-bottom = 0 +margin-top = 0 + +[bar/main] +monitor = ${env:MONITOR:} +monitor-fallback = +monitor-strict = false +monitor-exact = true + +override-redirect = false +bottom = false +fixed-center = true +width = 100% +height = 20 +offset-x = 0 +offset-y = 0 + +background = ${color.black} +foreground = ${color.white} + +radius = 0.0 + +line-size = 1 +line-color = #f00 + +border-size = 1 +border-color = ${root.background} + +padding = 0 +module-margin = 1 + +;font-1 = "FontAwesome:style=Regular:weight=bold:size=16" +font-0 = "Ubuntu Nerd Font:style=Book:weight=bold:size=10" +font-1 = "IcoMoon\-Free:style=Regular:weight=bold:size=10" +font-2 = "Material Icons:style=Regular:weight=bold:size=10" +font-3 = "Material Wifi Signal strength:style=Regular:weight=bold:size=10" + +#modules-left = i3 clementine mpv +modules-left = i3 mpv +modules-center = date +modules-right = temperature bluetooth wireless-network wired-network alsa battery + +separator = " " +spacing = 0 +dim-value = 1.0 + +wm-name = + +locale = ${env:LANG} + +tray-position = right +tray-detached = true +tray-maxsize = 16 +tray-background = ${root.background} +tray-offset-x = -210 +tray-offset-y = -2 +tray-padding = 2 +tray-scale = 1.0 + +dpi-x = 96 +dpi-y = 96 + +enable-ipc = false + +click-left = +click-middle = +click-right = +scroll-up = +scroll-down = +double-click-left = +double-click-middle = +double-click-right = + +cursor-click = +cursor-scroll = + +[settings] +throttle-output = 5 +throttle-output-for = 10 + +throttle-input-for = 30 +screenchange-reload = false + +compositing-background = source +compositing-foreground = over +compositing-overline = over +compositing-underline = over +compositing-border = over + +format-foreground = +format-background = +format-underline = +format-overline = +format-spacing = +format-padding = +format-margin = +format-offset = + +pseudo-transparency = false + + + +[module/date] +type = internal/date +interval = 5.0 +date = %a %d %b %H:%M + +[module/battery] +type = internal/battery +full-at = 97 +battery = BAT0 +adapter = AC +poll-interval = 20 + +format-charging = +format-discharging = +format-full = +label-charging = ⚡%percentage%% +label-discharging = %percentage%% +label-full = ⚡%percentage%% + +ramp-capacity-0 =  +ramp-capacity-0-foreground = ${color.red} +ramp-capacity-1 =  +ramp-capacity-1-foreground = ${color.orange} +ramp-capacity-2 =  +ramp-capacity-3 =  +ramp-capacity-4 =  + +[module/alsa] +type = internal/alsa +interval = 5 +format-volume = +format-muted = +label-muted =  +label-muted-foreground = ${color.grey} + +; You cannot customize click actions on official modules? Really?!? >:( +;click-right = exec pavucontrol + +; Only applies if is used +ramp-volume-0 =  +ramp-volume-1 =  +ramp-volume-2 =  +ramp-volume-3 =  + +[module/wired-network] +type = internal/network +interface = enp0s25 + +format-connected = +label-connected =  + +[module/wireless-network] +type = internal/network +interface = wlp3s0 + +format-connected = +format-disconnected = +format-packetloss = + +label-disconnected =  +label-disconnected-foreground = ${color.grey} + +; Only applies if is used +ramp-signal-0 =  +ramp-signal-1 =  +ramp-signal-2 =  +ramp-signal-3 =  +ramp-signal-font = 3 + +; Only applies if is used +animation-packetloss-0 =  +animation-packetloss-0-foreground = ${color.orange} +animation-packetloss-1 =  +animation-packetloss-1-foreground = ${color.black} +; Framerate in milliseconds +animation-packetloss-framerate = 500 + + +[module/temperature] +type = internal/temperature +interval = 5 +thermal-zone = 0 +hwmon-path = /sys/devices/platform/coretemp.0/hwmon/hwmon4/temp1_input + +base-temperature = 40 +warn-temperature = 80 + +format =