Skip to content

Instantly share code, notes, and snippets.

@cirrusUK
Last active July 21, 2016 02:20
Show Gist options
  • Select an option

  • Save cirrusUK/200c7b7f1d672b1f4ee1 to your computer and use it in GitHub Desktop.

Select an option

Save cirrusUK/200c7b7f1d672b1f4ee1 to your computer and use it in GitHub Desktop.
mplayer config
# Write your default config options here!
# enable color output in console
msgcolor = 1
# enable module info color
#msgmodule = 1
###########################
# protocol based settings #
###########################
[protocol.http]
cache = 256
[protocol.http_proxy]
cache = 256
[protocol.mmst]
cache = 256
[protocol.mms]
cache = 256
[protocol.rtp]
cache = 256
[protocol.rtsp]
cache = 256
[protocol.icyx]
cache = 256
[protocol.dvdnav]
vc=ffmpeg12,
mouse-movements=yes
cache = 16384
# Some font enhancements
fontconfig = 1
embeddedfonts = 1
subfont-autoscale = 3
subfont-osd-scale = 3
subcp = cp1254
spuaa = 4
# Drop frames to preserve audio/video sync.
framedrop = yes
# Doublebuffering can help remove flicker from subtitles/OSD.
double = yes
# dont launch in fullscreen
fs=no
# stay on top
ontop=yes
# negate the lirc messages
nojoystick = 1
###### dmenu/simpleswitcher/dzen2 configuration file ######
backend=simpleswitcher
#Choose 0 if your dmenu has no transparency support
#(Not needed for Simpleswitcher, since it autodetects transparency)
dmenu_trans=1
#Font that is used for dmenu/ss
font="-*-envy code r-medium-r-normal-*-12-*-*-*-*-*-*-*"
#Foreground color for dmenu/dzen2/ss
nf="#497BF7"
#background color for dmenu/dzen2/ss
nb="#000000"
#foreground active color for dmenu/dzen2/ss
sf="#FFFFFF"
#background active color for dmenu/dzen2/ss
sb="#0C73C2"
#Border Color (Only simpleswitcher)
bc="#505050"
#Choose 0 if your dzen2 has no transparency support
dzen2_trans=0
#font that is used for dzen2
dzen2_font="PragmataPro-10"
#Width of dzen2
dzen2_w=200
#X Padding of dzen2
dzen2_x=850
#Y Padding of dzen2
dzen2_y=540
#### include this in your scripts ####
#
#
# source $HOME/.config/dmenurc
#
# if [[ "$backend" == "simpleswitcher" ]]
# then
# function dmenu_t () {
# simpleswitcher -font "$font" -fg "$nf" -bg "$nb" -hlfg "$sf" -hlbg "$sb" -o 90 -bc "$bc" -dmenu
# }
#
# elif [[ "$backend" == "dmenu" ]]
# then
# if [[ "$dmenu_trans" == "1" ]]
# then
# function dmenu_t () {
# dmenu -l 15 -fn "$font" -nf "$nf" -nb "$nb" -sf "$sf" -sb "$sb" -o 90
# }
# else
# function dmenu_t () {
# dmenu -l 15 -fn "$font" -nf "$nf" -nb "$nb" -sf "$sf" -sb "$sb"
# }
# fi
# fi
# 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!
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.
# 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:Envy Code R 9
# 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.
#Screenshot
bindsym $mod+ 0xff61 exec scrot ~/pictures/shots/screenshot_%Y_%m_%d_%H_%M_%S.png
bindsym $mod+p exec roxterm -e ~/shots
# Use Mouse+$mod to drag floating windows to their wanted position
floating_modifier $mod
# start a terminal
bindsym $mod+Return exec lxterminal -e tmux
# kill focused window
bindsym $mod+q kill
# rofi
bindsym Mod4+F2 exec rofi -now
bindsym Mod4+F3 exec rofi -rnow
bindsym Mod4+F4 exec rofi -snow
# start dmenu (a program launcher)
#bindsym $mod+d exec ~/i3dmenu.sh & mpg123 ~/sonar.mp3
#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
# 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
# Follow mouse
focus_follows_mouse no
#popup windows
popup_during_fullscreen smart
# Workspace names
workspace "✪:Web" output DVI-0
workspace "☣:IRC" output DVI-1
workspace "▣:Shell" output DVI-1
workspace "✉:Mail" output DVI-1
workspace "♬:Media" output DVI-1
workspace "◎:Scratch" output DVI-0
workspace "☣:SSH" output DVI-1
# switch to workspace
bindsym $mod+1 workspace ✪:Web
bindsym $mod+2 workspace ☣:IRC
bindsym $mod+3 workspace ▣:Shell
bindsym $mod+4 workspace ✉:Mail
bindsym $mod+5 workspace ♬:Media
bindsym $mod+6 workspace ◎:Scratch
bindsym $mod+7 workspace 7
bindsym $mod+8 workspace 8
bindsym $mod+9 workspace ☣:SSH
bindsym $mod+0 workspace 10
# move focused container to workspace
bindsym $mod+Shift+1 move container to workspace ✪:Web
bindsym $mod+Shift+2 move container to workspace ☣:IRC
bindsym $mod+Shift+3 move container to workspace ▣:Shell
bindsym $mod+Shift+4 move container to workspace ✉:Mail
bindsym $mod+Shift+5 move container to workspace ♬:Media
bindsym $mod+Shift+6 move container to workspace ◎:Scratch
bindsym $mod+Shift+7 move container to workspace 7
bindsym $mod+Shift+8 move container to workspace 8
bindsym $mod+Shift+9 move container to workspace ☣:SSH
bindsym $mod+Shift+0 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 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
bindsym Return mode "default"
bindsym Escape mode "default"
}
bindsym $mod+r mode "resize"
# Start i3bar to display a workspace bar (plus the system information i3status
# finds out, if available)
bar {
output DVI-0
status_command i3blocks
colors {
separator #dc322f
background #1e1e1e
statusline #a0db8e
focused_workspace #002b36 #002b36 #e7a70b
active_workspace #002b36 #002b36 #a0db8e
inactive_workspace #666666 #1e1e1e #7DD427
urgent_workspace #2f343a #900000 #ffffff
}
}
bar {
output DVI-1
tray_output DVI-1
status_command $HOME/.config/i3/startup_conky
colors {
separator #dc322f
background #1e1e1e
statusline #a46f09
focused_workspace #002b36 #002b36 #e7a70b
active_workspace #002b36 #002b36 #a0db8e
inactive_workspace #666666 #1e1e1e #7DD427
urgent_workspace #2f343a #900000 #ffffff
}
}
# window border colours
# class border backgr. text indicator
client.focused #cccccc #002833 #54ffbc #2e9ef4
client.focused_inactive #7DD427 #002B36 #5AC91E #126380
client.unfocused #F97E2A #002B36 #5AC91E #ffa500
client.urgent #da7f19 #900000 #ffffff #900000
# default applications
set $editor leafpad
set $browser dwb
set $player mpv
set $email mutt
set $mp3 mpg123
# WINDOW CONTROL
## Float everything
#for_window [class=""] floating enable
## 1pixel border everything
for_window [class="[.]*"] border 1pixel
#firefox floating
#for_window [class="Firefox" instance="Browser"] floating enable; focus mode_toggle
for_window [class="Navigator" instance="Firefox"] floating enable; focus mode_toggle
#for_window [class="Firefox" instance="Dialog"] floating enable; focus mode_toggle
for_window [class="Firefox" instance="Extension"] floating enable
for_window [class="Firefox" instance="Abp"] floating enable
for_window [class="Firefox" instance="Firefox preferences"] floating enable; focus mode_toggle
for_window [title="Share a link on Twitter - Mozilla Firefox" class="Firefox"] floating enable
for_window [title="Press This - Mozilla Firefox" class="Firefox"] floating enable
for_window [title="About Mozilla Firefox" class="Navigator"] floating enable; focus mode_toggle
# float the following
for_window [class="Pcmanfm"] floating enable;
for_window [class="Lxterminal"] floating enable;
for_window [class="Simplescreenrecorder"] floating enable; border none; focus mode_toggle
#for_window [class="Gimp"] floating enable
#for_window [class="Roxterm"] floating enable; border 1pixel
for_window [class="Grun"] floating enable; border 1pixel
for_window [class="MPlayer"] floating enable; border none
for_window [class="Guake"] floating enable; border 1pixel;
for_window [class="Shotwell"] floating enable;
for_window [class="Sxiv"] floating enable; focus mode_toggle
for_window [class="Audacious"] floating enable; focus mode_toggle; border none
for_window [class="Spacefm"] floating enable; focus mode_toggle
for_window [class="Xfce4-notifyd"] floating enable; border 1pixel; focus mode_toggle
for_window [class="Torrent-search"] floating enable; border 1pixel; focus mode_toggle
for_window [class="Transmission"] floating enable; border 1pixel; focus mode_toggle
for_window [class="feh"] floating enable; border 1pixel; focus mode_toggle
for_window [class="sublime-text"] floating enable; border 1pixel; focus mode_toggle
#for_window [class="Termite"] border none; floating enable; focus mode_toggle;
for_window [class="Termite"] border none; floating enable;
for_window [class="Leafpad"] floating enable;
for_window [class="XEyes"] floating enable; border 1pixel;
for_window [class="Dclock"] floating enable; border 1pixel;
for_window [class="Nitrogen"] floating enable
for_window [class="Tickr"] floating enable; border none
for_window [class="Lxappearance"] floating enable
for_window [class="Pidgin"] floating enable
for_window [class="File-roller|Arandr|Transmission-gtk"] floating enable
for_window [title="Preferences"] floating enable
for_window [title="Open Cubic Player"] floating enable; border 1pixel;
#for_window [title="Mpv"] floating enable; border 1pixel;
#for_window [title="---"] floating enable
#misc
#(( $+commands[espeak] )) && { notify-send -i ~/.icons/arch48.png "Pacman Notification" "Installing ESPEAK\!"; lxterminal -e sudo pacman -S espeak }
#notify-send -i ~/.icons/arch48.png "Pacman Notification" "Updating Mirrorlists\!"; lxterminal -e sudo pacman -Syy }
#notify-send -i ~/.icons/arch48.png "Pacman Notification" "Launching Firefox\!" && firefox
#{ notify-send -i "~/.icons/$1.png" "Launching program" "$1" && espeak "Launching $1" && $* }
# Assignment to a named workspace
assign [class="Firefox"] ✪:Web
assign [class="Chromium"] ✪:Web
assign [class="Dwb"] ✪:Web
assign [class="Termite"] ☣:IRC
assign [class="Tickr"] ☣:IRC
assign [class="Open Cubic Player"] ☣:IRC
assign [class="Dclock"] ☣:IRC
assign [class="Tilda"] ♬:Media
assign [class="Terminator"] ✉:Mail
assign [class="Sakura"] ▣:Shell
assign [class="Roxterm"] ☣:SSH
#assign [class="Pcmanfm"] ◎:Scratch
# autostarts
exec --no-startup-id ~/.screenlayout/screens.sh
exec --no-startup-id nitrogen --restore
exec --no-startup-id tickr
exec --no-startup-id compton --config ~/.compton.conf -b
#exec --no-startup-id rm -rf ~/.config/mpdnotify/pid
exec --no-startup-id xset s noblank
exec --no-startup-id setterm -blank 0 -powerdown 0
exec --no-startup-id xset -dpms; xset s off
exec --no-startup-id notify-send -i ~/.icons/arch48.png "Archlinux x86_64 ONLINE" "Welcome Back Commander" && espeak "Archlinux, X 86,64 ONLINE. Welcome Back Commander"
#exec --no-startup-id (sleep 5) && notify-send -i ~/.icons/arch48.png "OS- Archlinux x86_64" "Installed on Tue Jun 17 2014 at 04:36:52"
exec --no-startup-id termite
exec --no-startup-id volumeicon
#exec --no-startup-id sido
exec --no-startup-id rss-notify
#exec --no-startup-id xcowsay $(fortune all)
exec --no-startup-id conky -c ~/.config/i3/.conkyrcbar
exec --no-startup-id radiotray
exec --no-startup-id firefox
exec --no-startup-id gmail-notify
exec --no-startup-id sakura
exec --no-startup-id terminator -e mutt
#exec --no-startup-id dclock -bg black -fg turquoise -led_off black -geometry 114x49
#exec --no-startup-id xeyes -bg black -center green -fg blue -geometry 114x49
# custom keybinds
bindsym Mod4+F11 exec pcmanfm & espeak "launching P C man file manager"
bindsym Mod1+l exec leafpad & espeak "launching leafpad text editor"
bindsym Mod4+c exec dclock -bg black -fg turquoise -led_off black -geometry 114x49
bindsym Mod4+F12 exec lxterminal -e ranger & espeak "Activating Rainjer"
bindsym Mod4+F10 exec subl & espeak "launching sublime text"
bindsym Mod4+F9 exec i3-sensible-terminal -e finch & espeak "Activating Finch"
bindsym Mod4+F8 exec lxterminal -e pms & espeak "launching poor mans spotify"
bindsym Mod4+F7 exec lxterminal -e pmsyt & espeak "launching P M S Y T"
bindsym Mod4+F6 exec lxterminal -e pyradio & espeak "launching Pie Radio"
bindsym Mod4+ grave exec ~/termdrop.sh
bindsym Mod4+F5 exec espeak "launching oh see pea" & ocp
#bindsym Mod1+d exec dwb & espeak "launching D W B"
bindsym Mod1+f exec firefox & espeak "Launching Fire Fox Browser"
#bindsym Mod1+F2 exec grun
# Write your default config options here!
geometry=482x276
vo=vdpau
ao=alsa,oss
framedrop =yes
cache=8192
cache-min=20.0
cache-seek-min=1024
#user-agent="QuickTime"
user-agent=NSPlayer/4.1.0.3856
#slang = en
vc=ffh264vdpau,ffmpeg12vdpau,ffwmv3vdpau
# mpv configuration file
#
# Configuration files are read system-wide from /usr/local/etc/mpv.conf
# and per-user from ~/.config/mpv/mpv.conf, where per-user settings override
# system-wide settings, all of which are overridden by the command line.
#
# Configuration file settings and the command line options use the same
# underlying mechanisms. Most options can be put into the configuration file
# by dropping the preceding '--'. See the man page for a complete list of
# options.
#
# Lines starting with '#' are comments and are ignored.
#
# See the CONFIGURATION FILES section in the man page
# for a detailed description of the syntax.
#
# Profiles should be placed at the bottom of the configuration file to ensure
# that settings wanted as defaults are not restricted to specific profiles.
#
# Note that the commented example options usually do _not_ set the default
# values. Calling mpv with --list-options is a nice way to see the default
# values for most options.
##################
# video settings #
##################
# Specify default video driver (see --vo=help for a list).
#vo=vdpau
# Start in fullscreen mode by default.
#fs=yes
# force starting with centered window
#geometry=50%:50%
# don't allow a new window to have a size larger than 90% of the screen size
#autofit-larger=90%x90%
# Disable the On Screen Controller (OSC).
#osc=no
# Keep the player window on top of all other windows.
ontop=yes
##################
# audio settings #
##################
# Specify default audio driver (see --ao=help for a list).
#ao=alsa
# Disable softvol usage, and always use the system mixer if available.
#softvol=no
# Scale audio tempo by playback speed without altering pitch. (By default does
# nothing if playback speed is not changed. May introduce artifacts.)
#af=scaletempo
# Output 5.1 audio natively, and upmix/downmix audio with a different format.
#audio-channels=5.1
# Disable any automatic remix, _if_ the audio output accepts the audio format.
# of the currently played file.
#audio-channels=empty
##################
# other settings #
##################
# Pretend to be a web browser. Might fix playback with some streaming sites,
# but also will break with shoutcast streams.
#user-agent="Mozilla/5.0"
# cache settings
#
# Use 8MB input cache by default. The cache is enabled for network streams only.
#cache-default=8192
#
# Use 8MB input cache for everything, even local files.
#cache=8192
#
# If a seek is issued, and the target is 1024KB past the cached range, then
# keep reading until the seek target is hit, instead of doing a real seek.
#cache-seek-min=1024
#
# Disable the behavior that the player will pause if the cache goes below a
# certain fill size.
cache-pause=no
#
# Read ahead about 5 seconds of audio and video packets.
#demuxer-readahead-secs=5.0
# Display English subtitles if available.
slang=en
# Play Finnish audio if available, fall back to English otherwise.
#alang=fi,en
# Change subtitle encoding. For Arabic subtitles use 'cp1256'.
# If the file seems to be valid UTF-8, prefer UTF-8.
#sub-codepage=utf8:cp1256
# Enable hardware decoding if available. Often, this requires using an certain
# video output, otherwise no hardware decoding will be used.
hwdec=auto
############
# Profiles #
############
# The options declared as part of profiles override global default settings,
# but only take effect when the profile is active.
# The following profile can be enabled on the command line with: --profile=vdpau
#[vdpau]
# The profile forces the vdpau VO.
#vo=vdpau
# Use hardware decoding (this might break playback of some h264 files)
#hwdec=vdpau
# Most video filters do not work with hardware decoding.
#vf-clr=yes
# You can also include other configuration files.
#include=/path/to/the/file/you/want/to/include
[options]
resize_grip = false
geometry = 1920x1040
scroll_on_output = true
scroll_on_keystroke = true
audible_bell = true
visible_bell = true
mouse_autohide = true
dynamic_title = true
urgent_on_bell = true
clickable_url = true
# ~ ! [{(
font = Envy Code R 10
#font = lime.se 9px
scrollback_lines = 1024
icon_name = terminal
transparency = 1.4
pseudo_transparency = false
cursor_blink = on
cursor_shape = block
padding = 2
border = #3f3f3f
border_width = 0.5
roundness = 2.0
# $BROWSER is used by default
browser = firefox
[colors]
foreground = #cccccc
background = #1e1e1e
#color0 = #2E1F1F
#color8 = #422D2D
#color1 = #F37D33
#color9 = #BE0E50
#color2 = #1DCC9F
#color10 = #1FD9A9
#color3 = #27C282
#color11 = #2CDB93
#color4 = #7182A8
#color12 = #8194BF
#color5 = #A673A6
#color13 = #7F5AA1
#color6 = #6DA3A1
#color14 = #669997
#color7 = #B7BBBD
#color15 = #D9D9D9
# if unset, will reverse foreground and background
highlight = #839496
color0 = #2E1F1F
color8 = #422D2D
color1 = #C6425F
color9 = #ef6d7d
color2 = #54ffbc
color10 = #0EB940
color3 = #27C282
#color3 = #e1a64c
color11 = #fdf6e3
color4 = #5496ff
color12 = #cb4b16
color5 = #dc322f
color13 = #d33682
color6 = #6c71c4
color14 = #268bd2
color7 = #2aa198
color15 = #859900
---------------------------------------------
# TINT2 CONFIG FILE
#---------------------------------------------
#---------------------------------------------
# BACKGROUND AND BORDER
#---------------------------------------------
#panels
rounded = 5
border_width = 1
background_color = #1A1A1A 50
border_color = #497BF7 100
active task button
rounded = 10
border_width = 0
background_color = #497BF7 20
border_color = #497BF7 20
#non active task button
border_color = #ffffff 0
#---------------------------------------------
# PANEL
#---------------------------------------------
panel_monitor = 1
panel_position = top center
panel_size = 100% 28
panel_margin = 0 0
panel_padding = 1 2
font_shadow = 0
panel_background_id = 1
#---------------------------------------------
# TASKBAR
#---------------------------------------------
taskbar_mode = multi_desktop
taskbar_padding = 0 1 0
taskbar_background_id = 0
#---------------------------------------------
# TASKS
#---------------------------------------------
task_icon = 1
task_text = 0
task_width = 150
task_centered = 1
task_padding = 2 2
task_font = sans 9
task_font_color = #497BF7 85
task_active_font_color = #497BF7 85
task_background_id = 2
task_active_background_id = 2
#---------------------------------------------
# SYSTRAYBAR
#---------------------------------------------
systray_padding = 4 2 3
systray_background_id = 1
#---------------------------------------------
# CLOCK
#---------------------------------------------
time1_format = %a, %b %d, %r
time1_font = sans 10
#time1_font = droid sans 8
#time2_format = %A %d %B
#time2_font = sans 6
clock_font_color = #497BF7 76
clock_padding = 4 4
clock_background_id = 1
#---------------------------------------------
# BATTERY
#---------------------------------------------
#battery = 0
#battery_low_status = 7
#battery_low_cmd = notify-send "battery low"
#bat1_font = sans 8
#bat2_font = sans 6
#battery_font_color = #ffffff 76
#battery_padding = 1 0
#battery_background_id = 0
#---------------------------------------------
# MOUSE ACTION ON TASK
#---------------------------------------------
mouse_middle = none
mouse_right = close
#mouse_scroll_up = toggle
#mouse_scroll_down = iconify
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment