From e7fe4b4330b6c4c7a993b1ca93ae466a65170bec Mon Sep 17 00:00:00 2001 From: Masfehico Date: Wed, 12 Aug 2020 22:57:10 +0200 Subject: Multiple config files modified. They were added by the Larbs script by lukesmith. Kinda bloated for me. --- TMV/.bashrc | 2 + TMV/.config/aliasrc | 17 +--- TMV/.config/directories | 8 -- TMV/.config/i3/config | 10 ++- TMV/.config/i3/config.bak | 215 --------------------------------------------- TMV/.config/mpv/input.conf | 2 + TMV/.config/shortcutrc | 21 ----- TMV/.profile | 10 +-- TMV/i3status.conf | 2 +- 9 files changed, 17 insertions(+), 270 deletions(-) delete mode 100644 TMV/.config/i3/config.bak diff --git a/TMV/.bashrc b/TMV/.bashrc index 0790467..a687b1b 100644 --- a/TMV/.bashrc +++ b/TMV/.bashrc @@ -23,6 +23,8 @@ alias imperio='sudo user_imperio.py' export TERMINAL='xterm' alias ipconfig='curl ipconfig.io' alias cp='cp -v' +alias mv='mv -v' +alias mkdir='mkdir -pv' alias rmac='rmac.py' export BAT_THEME="Dracula" diff --git a/TMV/.config/aliasrc b/TMV/.config/aliasrc index 52e19ba..d829289 100644 --- a/TMV/.config/aliasrc +++ b/TMV/.config/aliasrc @@ -1,27 +1,12 @@ #!/bin/sh -alias ka="killall" \ - mkd="mkdir -pv" \ - mpv="mpv --input-ipc-server=/tmp/mpvsoc$(date +%s)" \ - calcurse="calcurse -D ~/.config/calcurse" \ - magit="nvim -c MagitOnly" \ +mpv="mpv --input-ipc-server=/tmp/mpvsoc$(date +%s)" \ xi="sudo xbps-install" \ xr="sudo xbps-remove" \ xq="xbps-query" \ - f="$FILE" \ - g="git" \ - trem="transmission-remote" \ - e="$EDITOR" \ v="$EDITOR" \ - x="sxiv -ft *" \ - sdn="sudo shutdown -h now" \ - gua="git remote | xargs -L1 git push --all" \ ls="ls -hN --color=auto --group-directories-first" \ grep="grep --color=auto" \ diff="diff --color=auto" \ - yt="youtube-dl --add-metadata -i -o '%(upload_date)s-%(title)s.%(ext)s'" \ - yta="yt -x -f bestaudio/best" \ - YT="youtube-viewer" \ - ref="shortcuts >/dev/null; source ~/.config/shortcutrc" \ ffmpeg="ffmpeg -hide_banner" command -v nvim >/dev/null && alias vim="nvim" vimdiff="nvim -d" # Use neovim for vim if present. diff --git a/TMV/.config/directories b/TMV/.config/directories index 24bdd21..5ac49e5 100644 --- a/TMV/.config/directories +++ b/TMV/.config/directories @@ -1,10 +1,2 @@ -# You can add comments to these files with # -h ~/ -d ~/Documents -D ~/Downloads -m ~/Music pp ~/Pictures vv ~/Videos -cf ~/.config -sc ~/.local/bin -mn /mnt diff --git a/TMV/.config/i3/config b/TMV/.config/i3/config index c637393..a5d25d2 100644 --- a/TMV/.config/i3/config +++ b/TMV/.config/i3/config @@ -197,8 +197,8 @@ bar { ###PERSONAL EDITS### bindsym $mod+Shift+W exec notify-send -t 5000 -i /home/mas/Pictures/icons/firefox.png "Opening" "firefox" ; exec firefox -bindsym $mod+Shift+X exec sudo poweroff -bindsym $mod+Shift+BackSpace exec sudo reboot +bindsym $mod+Shift+X exec "i3-nagbar -t warning -f fixed -m 'You pressed the shutting shortcut. Do you really eant to shut you computer?' -B 'Yes, shut it.' 'sudo poweroff'" +bindsym $mod+Shift+BackSpace exec "i3-nagbar -t warning -f fixed -m 'You pressed the restarting shortcut. Do you really eant to restart you computer?' -B 'Yes, restart it.' 'sudo reboot'" bindsym $mod+Shift+T exec notify-send -t 5000 -i /home/mas/Pictures/icons/tor.png "Opening" "tor" ; exec tor @@ -356,3 +356,9 @@ bindsym $mod+Shift+N exec xterm -e "newsboat" bindsym $mod+Shift+D exec notify-send -t 5000 -i /home/mas/Pictures/icons/discord.png "Opening" "Discord" ; exec Discord +# Media Player Controls +#bindsym ISO_Level3_Shift+F7 +bindsym XF86AudioPlay exec playerctl play-pause +bindsym XF86AudioPause exec playerctl pause +bindsym XF86AudioNext exec playerctl next +#bindsym XF86AudioPrev exec playerctl previous diff --git a/TMV/.config/i3/config.bak b/TMV/.config/i3/config.bak deleted file mode 100644 index c566eaf..0000000 --- a/TMV/.config/i3/config.bak +++ /dev/null @@ -1,215 +0,0 @@ -# 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 - -# The combination of xss-lock, nm-applet and pactl is a popular choice, so -# they are included here as an example. Modify as you see fit. - -# xss-lock grabs a logind suspend inhibit lock and will use i3lock to lock the -# screen before suspend. Use loginctl lock-session to lock your screen. -exec --no-startup-id xss-lock --transfer-sleep-lock -- i3lock --nofork - -# NetworkManager is the most popular way to manage wireless networks on Linux, -# and nm-applet is a desktop environment-independent system tray GUI for it. -exec --no-startup-id nm-applet - -# Use pactl to adjust volume in PulseAudio. -set $refresh_i3status killall -SIGUSR1 i3status -bindsym XF86AudioRaiseVolume exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ +10% && $refresh_i3status -bindsym XF86AudioLowerVolume exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ -10% && $refresh_i3status -bindsym XF86AudioMute exec --no-startup-id pactl set-sink-mute @DEFAULT_SINK@ toggle && $refresh_i3status -bindsym XF86AudioMicMute exec --no-startup-id pactl set-source-mute @DEFAULT_SOURCE@ toggle && $refresh_i3status - -# Use Mouse+$mod to drag floating windows to their wanted position -floating_modifier $mod - -# start a terminal -bindsym $mod+Return exec xterm - -# kill focused window -bindsym $mod+Shift+q kill - -# start dmenu (a program launcher) -bindsym $mod+d exec dmenu_run -# 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+semicolon 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+semicolon 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 number $ws1 -bindsym $mod+2 workspace number $ws2 -bindsym $mod+3 workspace number $ws3 -bindsym $mod+4 workspace number $ws4 -bindsym $mod+5 workspace number $ws5 -bindsym $mod+6 workspace number $ws6 -bindsym $mod+7 workspace number $ws7 -bindsym $mod+8 workspace number $ws8 -bindsym $mod+9 workspace number $ws9 -bindsym $mod+0 workspace number $ws10 - -# move focused container to workspace -bindsym $mod+Shift+1 move container to workspace number $ws1 -bindsym $mod+Shift+2 move container to workspace number $ws2 -bindsym $mod+Shift+3 move container to workspace number $ws3 -bindsym $mod+Shift+4 move container to workspace number $ws4 -bindsym $mod+Shift+5 move container to workspace number $ws5 -bindsym $mod+Shift+6 move container to workspace number $ws6 -bindsym $mod+Shift+7 move container to workspace number $ws7 -bindsym $mod+Shift+8 move container to workspace number $ws8 -bindsym $mod+Shift+9 move container to workspace number $ws9 -bindsym $mod+Shift+0 move container to workspace number $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 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" - 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 { - colors { - background #000000 - statusline #FFFFFF - separator #FFFFFF - -# - focused_workspace #ff00ff #000000 #ffffff - active_workspace #333333 #5f676a #ffffff - inactive_workspace #333333 #222222 #888888 - urgent_workspace #2f343a #900000 #ffffff - binding_mode #2f343a #900000 #ffffff - - } - status_command i3status -} - -###PERSONAL EDITS### - -bindsym $mod+Shift+W exec "notify-send Opening firefox" ; exec firefox -bindsym $mod+Shift+X exec sudo poweroff -bindsym $mod+Shift+BackSpace exec sudo reboot - -exec --no-startup-id feh --bg-scale /home/mas/Pictures/retrowave-pyramid.png - -# Sreen brightness controls -bindsym XF86MonBrightnessUp exec sudo xbacklight -inc 10 # increase screen brightness -bindsym XF86MonBrightnessDown exec sudo xbacklight -dec 10 # decrease screen brightness - -# class border backgr. text indicator child_border -client.focused #ff00ff #000000 #00ffff #2e9ef4 #285577 -client.focused_inactive #333333 #5f676a #ffffff #484e50 #5f676a -client.unfocused #333333 #222222 #888888 #292d2e #222222 -client.urgent #2f343a #900000 #ffffff #900000 #900000 -client.placeholder #000000 #0c0c0c #ffffff #000000 #0c0c0c - -client.background #fffff0 diff --git a/TMV/.config/mpv/input.conf b/TMV/.config/mpv/input.conf index d614b15..e0de762 100644 --- a/TMV/.config/mpv/input.conf +++ b/TMV/.config/mpv/input.conf @@ -3,3 +3,5 @@ h seek -5 j seek -60 k seek 60 S cycle sub +ALT+j add sub-scale -0.1 +ALT+k add sub-scale +0.1 diff --git a/TMV/.config/shortcutrc b/TMV/.config/shortcutrc index 89ce5c4..f2f2c4d 100644 --- a/TMV/.config/shortcutrc +++ b/TMV/.config/shortcutrc @@ -1,24 +1,3 @@ # vim: filetype=sh -alias h="cd ~/ && ls -a" \ -d="cd ~/Documents && ls -a" \ -D="cd ~/Downloads && ls -a" \ -m="cd ~/Music && ls -a" \ pp="cd ~/Pictures && ls -a" \ vv="cd ~/Videos && ls -a" \ -cf="cd ~/.config && ls -a" \ -sc="cd ~/.local/bin && ls -a" \ -mn="cd /mnt && ls -a" \ -bf="$EDITOR ~/.config/files" \ -bd="$EDITOR ~/.config/directories" \ -bw="$EDITOR ~/.config/bookmarks" \ -cfb="$EDITOR ~/.bashrc" \ -cfa="$EDITOR ~/.config/aliasrc" \ -cfz="$EDITOR ~/.zshrc" \ -cfv="$EDITOR ~/.config/nvim/init.vim" \ -cfm="$EDITOR ~/.config/mutt/muttrc" \ -cfd="$EDITOR ~/.Xdefaults" \ -cfu="$EDITOR ~/.config/newsboat/urls" \ -cfn="$EDITOR ~/.config/newsboat/config" \ -cfmb="$EDITOR ~/.config/ncmpcpp/bindings" \ -cfmc="$EDITOR ~/.config/ncmpcpp/config" \ -cfk="$EDITOR ~/.config/sxhkd/sxhkdrc" \ diff --git a/TMV/.profile b/TMV/.profile index 2405000..55fd83d 100644 --- a/TMV/.profile +++ b/TMV/.profile @@ -10,15 +10,11 @@ export EDITOR="nvim" export TERMINAL="xterm" export BROWSER="firefox" export READER="zathura" -export FILE="lf" +export FILE="ranger" # ~/ Clean-up: -export NOTMUCH_CONFIG="$HOME/.config/notmuch-config" -export GTK2_RC_FILES="$HOME/.config/gtk-2.0/gtkrc-2.0" export LESSHISTFILE="-" export INPUTRC="$HOME/.config/inputrc" -export ZDOTDIR="$HOME/.config/zsh" -export PASSWORD_STORE_DIR="$HOME/.local/share/password-store" # Other program settings: export SUDO_ASKPASS="$HOME/.local/bin/dmenupass" @@ -38,5 +34,5 @@ echo "$0" | grep "bash$" >/dev/null && [ -f ~/.bashrc ] && source "$HOME/.bashrc # Start graphical server if i3 not already running. [ "$(tty)" = "/dev/tty1" ] && ! pgrep -x Xorg >/dev/null && exec startx -# Switch escape and caps if tty: -sudo -n loadkeys ~/.local/share/larbs/ttymaps.kmap 2>/dev/null +#rm ~/.config/ibus/rime/build/default.yaml; ibus-daemon -drx + diff --git a/TMV/i3status.conf b/TMV/i3status.conf index eadddbd..fef7e87 100644 --- a/TMV/i3status.conf +++ b/TMV/i3status.conf @@ -42,7 +42,7 @@ battery all { status_unk = "? UNK" status_full = "☻ FULL" path = "/sys/class/power_supply/BAT%d/uevent" - low_threshold = 10 + low_threshold = 30 } disk "/" { -- cgit v1.2.3