From: Samir Benmendil Date: Mon, 10 Jun 2013 00:33:14 +0000 (+0200) Subject: Merge branch 'master' of tardis:/dotfiles X-Git-Url: https://git.rmz.io/dotfiles.git/commitdiff_plain/d86e7b0c1a72975b5a846f9329f53b0c5e238049?hp=165823975729fe79817d5852cd96b9069ecddf11 Merge branch 'master' of tardis:/dotfiles --- diff --git a/awesome/rc.lua b/awesome/rc.lua new file mode 100644 index 0000000..9673c4f --- /dev/null +++ b/awesome/rc.lua @@ -0,0 +1,420 @@ +-- Standard awesome library +gears = require("gears") +awful = require("awful") +awful.rules = require("awful.rules") +require("awful.autofocus") +-- Widget and layout library +wibox = require("wibox") +-- Theme handling library +beautiful = require("beautiful") +-- Notification library +naughty = require("naughty") +menubar = require("menubar") +-- Pulseaudio widget +--local APW = require("apw/widget") + +-- {{{ Error handling +-- Check if awesome encountered an error during startup and fell back to +-- another config (This code will only ever execute for the fallback config) +if awesome.startup_errors then + naughty.notify({ preset = naughty.config.presets.critical, + title = "Oops, there were errors during startup!", + text = awesome.startup_errors }) +end + +-- Handle runtime errors after startup +do + local in_error = false + awesome.connect_signal("debug::error", function (err) + -- Make sure we don't go into an endless error loop + if in_error then return end + in_error = true + + naughty.notify({ preset = naughty.config.presets.critical, + title = "Oops, an error happened!", + text = err }) + in_error = false + end) +end +-- }}} + +-- {{{ Variable definitions +-- Themes define colours, icons, and wallpapers +beautiful.init("/usr/share/awesome/themes/default/theme.lua") + +-- This is used later as the default terminal and editor to run. +terminal = "konsole" +editor = os.getenv("EDITOR") or "vim" +editor_cmd = terminal .. " -e " .. editor + +-- Default modkey. +-- Usually, Mod4 is the key with a logo between Control and Alt. +-- If you do not like this or do not have such a key, +-- I suggest you to remap Mod4 to another key using xmodmap or other tools. +-- However, you can use another modifier like Mod1, but it may interact with others. +modkey = "Mod4" + +-- Tags +require("tags") + +-- {{{ Wallpaper +if beautiful.wallpaper then + for s = 1, screen.count() do + gears.wallpaper.maximized(beautiful.wallpaper, s, true) + end +end +-- }}} + +-- {{{ Menu +-- Create a laucher widget and a main menu +myawesomemenu = { + { "manual", terminal .. " -e man awesome" }, + { "edit config", editor_cmd .. " " .. awesome.conffile }, + { "restart", awesome.restart }, + { "quit", awesome.quit } +} + +mymainmenu = awful.menu({ items = { { "awesome", myawesomemenu, beautiful.awesome_icon }, + { "open terminal", terminal } + } + }) + +mylauncher = awful.widget.launcher({ image = beautiful.awesome_icon, + menu = mymainmenu }) + +-- Menubar configuration +menubar.utils.terminal = terminal -- Set the terminal for applications that require it +-- }}} + +-- {{{ Wibox +-- Create a textclock widget +mytextclock = awful.widget.textclock() + +-- Create a wibox for each screen and add it +mywibox = {} + +-- Create a wibox for each screen and add it +mywibox = {} +mypromptbox = {} +mylayoutbox = {} +mytaglist = {} +mytaglist.buttons = awful.util.table.join( + awful.button({ }, 1, awful.tag.viewonly), + awful.button({ modkey }, 1, awful.client.movetotag), + awful.button({ }, 3, awful.tag.viewtoggle), + awful.button({ modkey }, 3, awful.client.toggletag), + awful.button({ }, 4, function(t) awful.tag.viewnext(awful.tag.getscreen(t)) end), + awful.button({ }, 5, function(t) awful.tag.viewprev(awful.tag.getscreen(t)) end) + ) +mytasklist = {} +mytasklist.buttons = awful.util.table.join( + awful.button({ }, 1, function (c) + if c == client.focus then + c.minimized = true + else + -- Without this, the following + -- :isvisible() makes no sense + c.minimized = false + if not c:isvisible() then + awful.tag.viewonly(c:tags()[1]) + end + -- This will also un-minimize + -- the client, if needed + client.focus = c + c:raise() + end + end), + awful.button({ }, 3, function () + if instance then + instance:hide() + instance = nil + else + instance = awful.menu.clients({ width=250 }) + end + end), + awful.button({ }, 4, function () + awful.client.focus.byidx(1) + if client.focus then client.focus:raise() end + end), + awful.button({ }, 5, function () + awful.client.focus.byidx(-1) + if client.focus then client.focus:raise() end + end)) + +for s = 1, screen.count() do + -- Create a promptbox for each screen + mypromptbox[s] = awful.widget.prompt() + -- Create an imagebox widget which will contains an icon indicating which layout we're using. + -- We need one layoutbox per screen. + mylayoutbox[s] = awful.widget.layoutbox(s) + mylayoutbox[s]:buttons(awful.util.table.join( + awful.button({ }, 1, function () awful.layout.inc(layouts, 1) end), + awful.button({ }, 3, function () awful.layout.inc(layouts, -1) end), + awful.button({ }, 4, function () awful.layout.inc(layouts, 1) end), + awful.button({ }, 5, function () awful.layout.inc(layouts, -1) end))) + -- Create a taglist widget + mytaglist[s] = awful.widget.taglist(s, awful.widget.taglist.filter.all, mytaglist.buttons) + + -- Create a tasklist widget + mytasklist[s] = awful.widget.tasklist(s, awful.widget.tasklist.filter.currenttags, mytasklist.buttons) + + -- Create the wibox + mywibox[s] = awful.wibox({ position = "top", screen = s }) + + -- Widgets that are aligned to the left + local left_layout = wibox.layout.fixed.horizontal() + left_layout:add(mylauncher) + left_layout:add(mytaglist[s]) + left_layout:add(mypromptbox[s]) + + -- Widgets that are aligned to the right + local right_layout = wibox.layout.fixed.horizontal() + if s == 1 then right_layout:add(wibox.widget.systray()) end + --right_layout:add(APW) + right_layout:add(mytextclock) + right_layout:add(mylayoutbox[s]) + + -- Now bring it all together (with the tasklist in the middle) + local layout = wibox.layout.align.horizontal() + layout:set_left(left_layout) + layout:set_middle(mytasklist[s]) + layout:set_right(right_layout) + + mywibox[s]:set_widget(layout) +end +-- }}} + +-- {{{ Mouse bindings +root.buttons(awful.util.table.join( + awful.button({ }, 3, function () mymainmenu:toggle() end), + awful.button({ }, 4, awful.tag.viewnext), + awful.button({ }, 5, awful.tag.viewprev) +)) +-- }}} + +-- {{{ Key bindings +globalkeys = awful.util.table.join( + awful.key({ modkey, }, "Left", awful.tag.viewprev ), + awful.key({ modkey, }, "Right", awful.tag.viewnext ), + awful.key({ modkey, }, "Escape", awful.tag.history.restore), + + awful.key({ modkey, }, "j", + function () + awful.client.focus.byidx( 1) + if client.focus then client.focus:raise() end + end), + awful.key({ modkey, }, "k", + function () + awful.client.focus.byidx(-1) + if client.focus then client.focus:raise() end + end), + awful.key({ modkey, }, "w", function () mymainmenu:show() end), + + -- Layout manipulation + awful.key({ modkey, "Shift" }, "j", function () awful.client.swap.byidx( 1) end), + awful.key({ modkey, "Shift" }, "k", function () awful.client.swap.byidx( -1) end), + awful.key({ modkey, "Control" }, "j", function () awful.screen.focus_relative( 1) end), + awful.key({ modkey, "Control" }, "k", function () awful.screen.focus_relative(-1) end), + awful.key({ modkey, }, "u", awful.client.urgent.jumpto), + awful.key({ modkey, }, "Tab", + function () + awful.client.focus.history.previous() + if client.focus then + client.focus:raise() + end + end), + + -- Standard program + awful.key({ modkey, }, "Return", function () awful.util.spawn(terminal) end), + awful.key({ modkey, "Control" }, "r", awesome.restart), + awful.key({ modkey, "Shift" }, "q", awesome.quit), + + awful.key({ modkey, }, "l", function () awful.tag.incmwfact( 0.05) end), + awful.key({ modkey, }, "h", function () awful.tag.incmwfact(-0.05) end), + awful.key({ modkey, "Shift" }, "h", function () awful.tag.incnmaster( 1) end), + awful.key({ modkey, "Shift" }, "l", function () awful.tag.incnmaster(-1) end), + awful.key({ modkey, "Control" }, "h", function () awful.tag.incncol( 1) end), + awful.key({ modkey, "Control" }, "l", function () awful.tag.incncol(-1) end), + awful.key({ modkey, }, "space", function () awful.layout.inc(layouts, 1) end), + awful.key({ modkey, "Shift" }, "space", function () awful.layout.inc(layouts, -1) end), + + awful.key({ modkey, "Control" }, "n", awful.client.restore), + + -- Prompt + awful.key({ modkey }, "r", function () mypromptbox[mouse.screen]:run() end), + + awful.key({ modkey }, "x", + function () + awful.prompt.run({ prompt = "Run Lua code: " }, + mypromptbox[mouse.screen].widget, + awful.util.eval, nil, + awful.util.getdir("cache") .. "/history_eval") + end), + -- Menubar + awful.key({ modkey }, "p", function() menubar.show() end) + + -- Pulseaudio widget + --awful.key({ }, "XF86AudioRaiseVolume", APW.Up), + --awful.key({ }, "XF86AudioLowerVolume", APW.Down), + --awful.key({ }, "XF86AudioMute", APW.ToggleMute) +) + +clientkeys = awful.util.table.join( + awful.key({ modkey, }, "f", function (c) c.fullscreen = not c.fullscreen end), + awful.key({ modkey, "Shift" }, "c", function (c) c:kill() end), + awful.key({ modkey, "Control" }, "space", awful.client.floating.toggle ), + awful.key({ modkey, "Control" }, "Return", function (c) c:swap(awful.client.getmaster()) end), + awful.key({ modkey, }, "o", awful.client.movetoscreen ), + awful.key({ modkey, }, "t", function (c) c.ontop = not c.ontop end), + awful.key({ modkey, }, "n", + function (c) + -- The client currently has the input focus, so it cannot be + -- minimized, since minimized clients can't have the focus. + c.minimized = true + end), + awful.key({ modkey, }, "m", + function (c) + c.maximized_horizontal = not c.maximized_horizontal + c.maximized_vertical = not c.maximized_vertical + end) +) + +-- Bind all key numbers to tags. +-- Be careful: we use keycodes to make it works on any keyboard layout. +-- This should map on the top row of your keyboard, usually 1 to 9. +for i = 1, 9 do + globalkeys = awful.util.table.join(globalkeys, + awful.key({ modkey }, "#" .. i + 9, + function () + local screen = mouse.screen + local tag = awful.tag.gettags(screen)[i] + if tag then + awful.tag.viewonly(tag) + end + end), + awful.key({ modkey, "Control" }, "#" .. i + 9, + function () + local screen = mouse.screen + local tag = awful.tag.gettags(screen)[i] + if tag then + awful.tag.viewtoggle(tag) + end + end), + awful.key({ modkey, "Shift" }, "#" .. i + 9, + function () + local tag = awful.tag.gettags(client.focus.screen)[i] + if client.focus and tag then + awful.client.movetotag(tag) + end + end), + awful.key({ modkey, "Control", "Shift" }, "#" .. i + 9, + function () + local tag = awful.tag.gettags(client.focus.screen)[i] + if client.focus and tag then + awful.client.toggletag(tag) + end + end)) +end + +clientbuttons = awful.util.table.join( + awful.button({ }, 1, function (c) client.focus = c; c:raise() end), + awful.button({ modkey }, 1, awful.mouse.client.move), + awful.button({ modkey }, 3, awful.mouse.client.resize)) + +-- Set keys +root.keys(globalkeys) +-- }}} + +-- {{{ Rules +awful.rules.rules = { + -- All clients will match this rule. + { rule = { }, + properties = { border_width = beautiful.border_width, + border_color = beautiful.border_normal, + focus = awful.client.focus.filter, + keys = clientkeys, + buttons = clientbuttons } }, + { rule = { class = "MPlayer" }, + properties = { floating = true } }, + { rule = { class = "pinentry" }, + properties = { floating = true } }, + { rule = { class = "gimp" }, + properties = { floating = true } }, + -- Set Firefox to always map on tags number 2 of screen 1. + -- { rule = { class = "Firefox" }, + -- properties = { tag = tags[1][2] } }, +} +-- }}} + +-- {{{ Signals +-- Signal function to execute when a new client appears. +client.connect_signal("manage", function (c, startup) + -- Enable sloppy focus + c:connect_signal("mouse::enter", function(c) + if awful.layout.get(c.screen) ~= awful.layout.suit.magnifier + and awful.client.focus.filter(c) then + client.focus = c + end + end) + + if not startup then + -- Set the windows at the slave, + -- i.e. put it at the end of others instead of setting it master. + -- awful.client.setslave(c) + + -- Put windows in a smart way, only if they does not set an initial position. + if not c.size_hints.user_position and not c.size_hints.program_position then + awful.placement.no_overlap(c) + awful.placement.no_offscreen(c) + end + end + + local titlebars_enabled = false + if titlebars_enabled and (c.type == "normal" or c.type == "dialog") then + -- buttons for the titlebar + local buttons = awful.util.table.join( + awful.button({ }, 1, function() + client.focus = c + c:raise() + awful.mouse.client.move(c) + end), + awful.button({ }, 3, function() + client.focus = c + c:raise() + awful.mouse.client.resize(c) + end) + ) + + -- Widgets that are aligned to the left + local left_layout = wibox.layout.fixed.horizontal() + left_layout:add(awful.titlebar.widget.iconwidget(c)) + left_layout:buttons(buttons) + + -- Widgets that are aligned to the right + local right_layout = wibox.layout.fixed.horizontal() + right_layout:add(awful.titlebar.widget.floatingbutton(c)) + right_layout:add(awful.titlebar.widget.maximizedbutton(c)) + right_layout:add(awful.titlebar.widget.stickybutton(c)) + right_layout:add(awful.titlebar.widget.ontopbutton(c)) + right_layout:add(awful.titlebar.widget.closebutton(c)) + + -- The title goes in the middle + local middle_layout = wibox.layout.flex.horizontal() + local title = awful.titlebar.widget.titlewidget(c) + title:set_align("center") + middle_layout:add(title) + middle_layout:buttons(buttons) + + -- Now bring it all together + local layout = wibox.layout.align.horizontal() + layout:set_left(left_layout) + layout:set_right(right_layout) + layout:set_middle(middle_layout) + + awful.titlebar(c):set_widget(layout) + end +end) + +client.connect_signal("focus", function(c) c.border_color = beautiful.border_focus end) +client.connect_signal("unfocus", function(c) c.border_color = beautiful.border_normal end) +-- }}} diff --git a/awesome/tags.lua b/awesome/tags.lua new file mode 100644 index 0000000..ebfdb7d --- /dev/null +++ b/awesome/tags.lua @@ -0,0 +1,82 @@ +-- {{{ Layouts +-- Table of layouts to cover with awful.layout.inc, order matters. +layouts = +{ + awful.layout.suit.floating, + awful.layout.suit.tile, + awful.layout.suit.tile.left, + awful.layout.suit.tile.bottom, + awful.layout.suit.tile.top, + awful.layout.suit.fair, + awful.layout.suit.fair.horizontal, + awful.layout.suit.spiral, + awful.layout.suit.spiral.dwindle, + awful.layout.suit.max, + awful.layout.suit.max.fullscreen, + awful.layout.suit.magnifier +} +-- }}} + +-- {{{ Tags +local mytags = {} +-- {{{ single screen +mytags[1] = {} +mytags[1][1] = { + { name = "1-test", layout = awful.layout.suit.magnifier, wmfact=0.87 }, + { name = "2", layout = awful.layout.suit.tile.left, wmfact=0.6 }, + { name = "3", layout = awful.layout.suit.tile.left, wmfact=0.6 }, + { name = "4", layout = awful.layout.suit.tile.left, wmfact=0.6 }, + { name = "5", layout = awful.layout.suit.tile, wmfact=0.3 }, + { name = "6", layout = awful.layout.suit.magnifier, wmfact=0.88 }, + { name = "7", layout = awful.layout.suit.tile.bottom, wmfact=0.84 }, + { name = "8", layout = awful.layout.suit.max, wmfact=0.7 }, + { name = "9", layout = awful.layout.suit.max, wmfact=0.5 }, +} +-- }}} + +-- {{{ Dual screen +mytags[2] = {} +mytags[2][1] = { + { name = "1-test", layout = awful.layout.suit.magnifier, wmfact=0.87 }, + { name = "2", layout = awful.layout.suit.tile.left, wmfact=0.6 }, + { name = "3", layout = awful.layout.suit.tile.left, wmfact=0.6 }, + { name = "4", layout = awful.layout.suit.tile.left, wmfact=0.6 }, + { name = "5", layout = awful.layout.suit.tile, wmfact=0.3 }, + { name = "6", layout = awful.layout.suit.magnifier, wmfact=0.88 }, + { name = "7", layout = awful.layout.suit.tile.bottom, wmfact=0.84 }, + { name = "8", layout = awful.layout.suit.max, wmfact=0.7 }, + { name = "9", layout = awful.layout.suit.max, wmfact=0.5 }, +} + +mytags[2][2] = { + { name = "1-www", layout = awful.layout.suit.max, wmfact=0.5 }, + { name = "2-im", layout = awful.layout.suit.max, wmfact=0.5 }, + { name = "3-music", layout = awful.layout.suit.tile.bottom, wmfact=0.1 }, + { name = "4", layout = awful.layout.suit.tile.bottom, wmfact=0.9 }, + { name = "5", layout = awful.layout.suit.max, wmfact=0.5 }, + { name = "6", layout = awful.layout.suit.floating, wmfact=0.5 }, + { name = "7", layout = awful.layout.suit.floating, wmfact=0.5 }, + { name = "8", layout = awful.layout.suit.floating, wmfact=0.5 }, + { name = "9", layout = awful.layout.suit.floating, wmfact=0.5 }, +} +-- }}} + +tags = {} +local sc = screen.count() +for s = 1, sc do + tags[s] = {} + for i,v in ipairs(mytags[sc][s]) do + tags[s][i] = awful.tag.add(v.name, { layout = v.layout, screen = s }) + end + tags[s][1].selected = true +end +--if screen.count() == 2 then +-- for s = 1, screen.count() do +-- tags[s] = {} +-- for i,v in ipairs(mytags[s]) do +-- tags[s][i] = awful.tag.add(v.name, { layout = v.layout, screen = s }) +-- end +-- tags[s][1].selected = true +-- end +--end +-- }}} diff --git a/bin/clean-hunspell b/bin/clean-hunspell new file mode 100755 index 0000000..625e4c3 --- /dev/null +++ b/bin/clean-hunspell @@ -0,0 +1,11 @@ +#!/bin/bash + +# make sure to only remove symlinks and unneeded dicts +keep_dicts=('de_DE' 'fr_FR' 'en_US' 'en_GB') +dicts="$(ls /usr/share/hunspell/* /usr/share/myspell/dicts/*)" + +for keep_dict in ${keep_dicts[@]}; do + dicts=$(echo $dicts | sed "s/\S*${keep_dict}\S* //g") +done + +sudo rm ${dicts[@]} diff --git a/bin/weka b/bin/weka index 4c41ebe..fc6f90c 100755 --- a/bin/weka +++ b/bin/weka @@ -1,5 +1,5 @@ #!/bin/bash -args='-Xms128M -Xmx2048M -cp /usr/share/java/weka/weka.jar:/usr/share/java/mariadb-jdbc/mariadb-java-client.jar' +args='-Xms512M -Xmx4096M -cp /usr/share/java/weka/weka.jar:/usr/share/java/mariadb-jdbc/mariadb-java-client.jar' java $args weka.gui.GUIChooser diff --git a/retroarch/n64/retroarch-n64.cfg b/retroarch/n64/retroarch-n64.cfg new file mode 100644 index 0000000..3f63786 --- /dev/null +++ b/retroarch/n64/retroarch-n64.cfg @@ -0,0 +1,429 @@ +## Skeleton config file for RetroArch + +# Save all save files (*.srm) to this directory. This includes related files like .bsv, .rtc, .psrm, etc ... +# This will be overridden by explicit command line options. +# savefile_directory = + +# Save all save states (*.state) to this directory. +# This will be overridden by explicit command line options. +# savestate_directory = + +# Automatically saves a savestate at the end of RetroArch's lifetime. +# The path is $SRAM_PATH.auto. +# RetroArch will automatically load any savestate with this path on startup. +# savestate_auto_save = false + +# Load libretro from a dynamic location for dynamically built RetroArch. +# This option is mandatory. + +# If a directory, RetroArch will look through the directory until it finds an implementation +# that appears to support the extension of the ROM loaded. +# This could fail if ROM extensions overlap. +libretro_path = "/usr/lib/libretro/libretro-mednafen-psx.so" + +# Environment variables internally in RetroArch. +# Implementations can tap into this user-specificed information to enable functionality +# that is deemed too obscure to expose directly. +# Some variables might be "standardized" at a later time if needed. +# The string is formatted as key value pairs delimited by a semicolon ';'. +# Any white space between the delimiter ';' and the '=' is significant. +# I.e.: "key1=value1;key2=value2;..." +# environment_variables = + +# Sets the "system" directory. +# Implementations can query for this directory to load BIOSes, system-specific configs, etc. +system_directory = "/mnt/Skaro/roms/psx/bios" + +#### Video + +# Video driver to use. "gl", "xvideo", "sdl" +# video_driver = "gl" + +# Windowed xscale and yscale +# (Real x res: base_size * xscale * aspect_ratio, real y res: base_size * yscale) +# video_xscale = 3.0 +# video_yscale = 3.0 + +# Fullscreen resolution. Resolution of 0 uses the resolution of the desktop. +# video_fullscreen_x = 0 +# video_fullscreen_y = 0 + +# Start in fullscreen. Can be changed at runtime. +# video_fullscreen = false + +# If fullscreen, prefer using a windowed fullscreen mode. +# video_windowed_fullscreen = true + +# Which monitor to prefer. 0 (default) means no particular monitor is preferred, 1 and up (1 being first monitor), +# suggests RetroArch to use that particular monitor. +# video_monitor_index = 0 + +# Forcibly disable composition. Only works in Windows Vista/7 for now. +# video_disable_composition = false + +# Video vsync. +# video_vsync = true + +# Smoothens picture with bilinear filtering. Should be disabled if using pixel shaders. +# video_smooth = true + +# Forces rendering area to stay equal to game aspect ratio or as defined in video_aspect_ratio. +# video_force_aspect = true + +# A floating point value for video aspect ratio (width / height). +# If this is not set, aspect ratio is assumed to be automatic. +# Behavior then is defined by video_aspect_ratio_auto. +# video_aspect_ratio = + +# If this is true and video_aspect_ratio is not set, +# aspect ratio is decided by libretro implementation. +# If this is false, 1:1 PAR will always be assumed if video_aspect_ratio is not set. +# video_aspect_ratio_auto = false + +# Forces cropping of overscanned frames. +# Exact behavior of this option is implementation specific. +# video_crop_overscan = false + +# Path to Cg shader. +# video_cg_shader = "/path/to/cg/shader.cg" + +# Path to GLSL XML shader. If both Cg shader path and XML shader path are defined, +# Cg shader will take priority unless overridden in video_shader_type. +# video_bsnes_shader = "/path/to/bsnes/xml/shader.shader" + +# Which shader type to use. Valid values are "cg", "bsnes", "none" and "auto" +# video_shader_type = auto + +# Defines a directory where XML shaders are kept. +# video_shader_dir = + +# Render to texture first. Useful when doing multi-pass shaders or control the output of shaders better. +# video_render_to_texture = false + +# Defines the video scale of render-to-texture. +# The output FBO size is scaled by these amounts against the input size (typically 256 * 224 for SNES). +# video_fbo_scale_x = 2.0 +# video_fbo_scale_y = 2.0 + +# Define shader to use for second pass (needs render-to-texture). +# video_second_pass_shader = "/path/to/second/shader.{cg,shader}" + +# Defines if bilinear filtering is used during second pass (needs render-to-texture). +# video_second_pass_smooth = true + +# CPU-based filter. Path to a bSNES CPU filter (*.filter) +# video_filter = + +# Path to a TTF font used for rendering messages. This path must be defined to enable fonts. +# Do note that the _full_ path of the font is necessary! +# video_font_path = + +# Size of the TTF font rendered. +# video_font_size = 48 + +# Attempt to scale the font to fit better for multiple window sizes. +# video_font_scale = true + +# Enable usage of OSD messages. +# video_font_enable = true + +# Offset for where messages will be placed on screen. Values are in range 0.0 to 1.0 for both x and y values. +# [0.0, 0.0] maps to the lower left corner of the screen. +# video_message_pos_x = 0.05 +# video_message_pos_y = 0.05 + +# Color for message. The value is treated as a hexadecimal value. +# It is a regular RGB hex number, i.e. red is "ff0000". +# video_message_color = ffffff + +# Video refresh rate of your monitor. +# Used to calculate a suitable audio input rate. +# video_refresh_rate = 59.95 + +# Allows libretro cores to set rotation modes. +# Setting this to false will honor, but ignore this request. +# This is useful for vertically oriented games where one manually rotates the monitor. +# video_allow_rotate = true + +#### Audio + +# Enable audio. +# audio_enable = true + +# Audio output samplerate. +# audio_out_rate = 48000 + +# When altering audio_in_rate on-the-fly, define by how much each time. +# audio_rate_step = 0.25 + +# Audio driver backend. Depending on configuration possible candidates are: alsa, pulse, oss, jack, rsound, roar, openal, sdl, xaudio. +# audio_driver = + +# Override the default audio device the audio_driver uses. This is driver dependant. E.g. ALSA wants a PCM device, OSS wants a path (e.g. /dev/dsp), Jack wants portnames (e.g. system:playback1,system:playback_2), and so on ... +# audio_device = + +# External DSP plugin that processes audio before it's sent to the driver. +# audio_dsp_plugin = + +# Will sync (block) on audio. Recommended. +# audio_sync = true + +# Desired audio latency in milliseconds. Might not be honored if driver can't provide given latency. +# audio_latency = 64 + +# Enable experimental audio rate control. +# audio_rate_control = true + +# Controls audio rate control delta. Defines how much input rate can be adjusted dynamically. +# Input rate = in_rate * (1.0 +/- audio_rate_control_delta) +# audio_rate_control_delta = 0.005 + +# Audio volume. Volume is expressed in dB. +# 0 dB is normal volume. No gain will be applied. +# Gain can be controlled in runtime with input_volume_up/input_volume_down. +# audio_volume = 0.0 + +#### Input + +# Input driver. Depending on video driver, it might force a different input driver. +# input_driver = sdl + +# Defines axis threshold. Possible values are [0.0, 1.0] +# input_axis_threshold = 0.5 + +# Path to input overlay +# input_overlay = + +# Enable input auto-detection (used on Android). Will attempt to autoconfigure +# gamepads, Plug-and-Play style. +# input_autodetect_enable = true + +# Enable debug input key reporting on-screen. +# input_debug_enable = false + +# Keyboard input. Will recognize normal keypresses and special keys like "left", "right", and so on. +# Keyboard input, Joypad and Joyaxis will all obey the "nul" bind, which disables the bind completely, +# rather than relying on a default. +# input_player1_a = x +# input_player1_b = z +# input_player1_y = a +# input_player1_x = s +# input_player1_start = enter +# input_player1_select = rshift +# input_player1_l = q +# input_player1_r = w +# input_player1_left = left +# input_player1_right = right +# input_player1_up = up +# input_player1_down = down +# input_player1_l2 = +# input_player1_r2 = +# input_player1_l3 = +# input_player1_r3 = + +# Two analog sticks (DualShock-esque). +# Bound as usual, however, if a real analog axis is bound, +# it can be read as a true analog. +# Positive X axis is right, Positive Y axis is down. +# input_player1_l_x_plus = +# input_player1_l_x_minus = +# input_player1_l_y_plus = +# input_player1_l_y_minus = +# input_player1_r_x_plus = +# input_player1_r_x_minus = +# input_player1_r_y_plus = +# input_player1_r_y_minus = + +# If desired, it is possible to override which joypads are being used for player 1 through 5. First joypad available is 0. +# input_player1_joypad_index = 0 +# input_player2_joypad_index = 1 +# input_player3_joypad_index = 2 +# input_player4_joypad_index = 3 +# input_player5_joypad_index = 4 +# Player 6-8 is not directly expected by libretro API, but we'll futureproof it. +# input_player6_joypad_index = 5 +# input_player7_joypad_index = 6 +# input_player8_joypad_index = 7 + +# Joypad buttons. +# Figure these out by using RetroArch-Phoenix or retroarch-joyconfig. +# You can use joypad hats with hnxx, where n is the hat, and xx is a string representing direction. +# E.g. "h0up" +# input_player1_a_btn = +# input_player1_b_btn = +# input_player1_y_btn = +# input_player1_x_btn = +# input_player1_start_btn = +# input_player1_select_btn = +# input_player1_l_btn = +# input_player1_r_btn = +# input_player1_left_btn = +# input_player1_right_btn = +# input_player1_up_btn = +# input_player1_down_btn = +# input_player1_l2_btn = +# input_player1_r2_btn = +# input_player1_l3_btn = +# input_player1_r3_btn = + +# Axis for RetroArch D-Pad. +# Needs to be either '+' or '-' in the first character signaling either positive or negative direction of the axis, then the axis number. +# Do note that every other input option has the corresponding _btn and _axis binds as well; they are omitted here for clarity. +# input_player1_left_axis = +# input_player1_right_axis = +# input_player1_up_axis = +# input_player1_down_axis = + +# Holding the turbo while pressing another button will let the button enter a turbo mode +# where the button state is modulated with a periodic signal. +# The modulation stops when the button itself (not turbo button) is released. +# input_player1_turbo = + +# Describes the period and how long of that period a turbo-enabled button should behave. +# Numbers are described in frames. +# input_turbo_period = 6 +# input_turbo_duty_cycle = 3 + +# This goes all the way to player 8 (*_player2_*, *_player3_*, etc), but omitted for clarity. +# All input binds have corresponding binds for keyboard (none), joykeys (_btn) and joyaxes (_axis) as well. + +# Toggles fullscreen. +# input_toggle_fullscreen = f + +# Saves state. +# input_save_state = f2 +# Loads state. +# input_load_state = f4 + +# State slots. With slot set to 0, save state name is *.state (or whatever defined on commandline). +# When slot is != 0, path will be $path%d, where %d is slot number. +# input_state_slot_increase = f7 +# input_state_slot_decrease = f6 + +# Toggles between fast-forwarding and normal speed. +# input_toggle_fast_forward = space + +# Hold for fast-forward. Releasing button disables fast-forward. +# input_hold_fast_forward = l + +# Key to exit emulator cleanly. +# Killing it in any hard way (SIGTERM, SIGKILL, etc, will terminate emulator without saving RAM, etc.) +# input_exit_emulator = escape + +# Applies next and previous XML/Cg shader in directory. +# input_shader_next = m +# input_shader_prev = n + +# Hold button down to rewind. Rewinding must be enabled. +# input_rewind = r + +# Toggle between recording and not. +# input_movie_record_toggle = o + +# Toggle between paused and non-paused state +# input_pause_toggle = p + +# Frame advance when game is paused +# input_frame_advance = k + +# Reset the emulated SNES. +# input_reset = h + +# Configures DSP plugin +# input_dsp_config = c + +# Cheats. +# input_cheat_index_plus = y +# input_cheat_index_minus = t +# input_cheat_toggle = u + +# Mute/unmute audio +# input_audio_mute = f9 + +# Take screenshot +# input_screenshot = f8 + +# Netplay flip players. +# input_netplay_flip_players = i + +# Hold for slowmotion. +# input_slowmotion = e + +# Enable other hotkeys. +# If this hotkey is bound to either keyboard, joybutton or joyaxis, +# all other hotkeys will be disabled unless this hotkey is also held at the same time. +# This is useful for RETRO_KEYBOARD centric implementations +# which query a large area of the keyboard, where it is not desirable +# that hotkeys get in the way. + +# Alternatively, all hotkeys for keyboard could be disabled by the user. +# input_enable_hotkey = + +# Increases audio volume. +# input_volume_up = kp_plus +# Decreases audio volume. +# input_volume_down = kp_minus + +# Toggles to next overlay. Wraps around. +# input_overlay_next = + +#### Misc + +# Enable rewinding. This will take a performance hit when playing, so it is disabled by default. +# rewind_enable = false + +# Rewinding buffer size in megabytes. Bigger rewinding buffer means you can rewind longer. +# The buffer should be approx. 20MB per minute of buffer time. +# rewind_buffer_size = 20 + +# Rewind granularity. When rewinding defined number of frames, you can rewind several frames at a time, increasing the rewinding speed. +# rewind_granularity = 1 + +# Pause gameplay when window focus is lost. +# pause_nonactive = true + +# Autosaves the non-volatile SRAM at a regular interval. This is disabled by default unless set otherwise. +# The interval is measured in seconds. A value of 0 disables autosave. +# autosave_interval = + +# When being client over netplay, use keybinds for player 1. +# netplay_client_swap_input = false + +# Path to XML cheat database (as used by bSNES). +# cheat_database_path = + +# Path to XML cheat config, a file which keeps track of which +# cheat settings are used for individual games. +# If the file does not exist, it will be created. +# cheat_settings_path = + +# Directory to dump screenshots to. +# screenshot_directory = + +# Records video after CPU video filter. +# video_post_filter_record = false + +# Records output of GPU shaded material if available. +# video_gpu_record = false + +# Screenshots output of GPU shaded material if available. +# video_gpu_screenshot = true + +# Block SRAM from being overwritten when loading save states. +# Might potentially lead to buggy games. +# block_sram_overwrite = false + +# When saving a savestate, save state index is automatically increased before +# it is saved. +# Also, when loading a ROM, the index will be set to the highest existing index. +# There is no upper bound on the index. +# savestate_auto_index = false + +# Slowmotion ratio. When slowmotion, game will slow down by factor. +# slowmotion_ratio = 3.0 + +# Enable stdin/network command interface. +# network_cmd_enable = false +# network_cmd_port = 55355 +# stdin_cmd_enable = false + diff --git a/retroarch/n64/retroarch-n64.sh b/retroarch/n64/retroarch-n64.sh new file mode 100755 index 0000000..9e5936d --- /dev/null +++ b/retroarch/n64/retroarch-n64.sh @@ -0,0 +1,5 @@ +#!/bin/bash + +confpath=~/.config/retroarch + +retroarch --appendconfig $confpath/retroarch.joyconfig.shada,$confpath/psx/retroarch-n64.cfg "$*" diff --git a/retroarch/psx/retroarch-psx.sh b/retroarch/psx/retroarch-psx.sh index 0815f85..36015cb 100755 --- a/retroarch/psx/retroarch-psx.sh +++ b/retroarch/psx/retroarch-psx.sh @@ -2,4 +2,4 @@ confpath=~/.config/retroarch -retroarch --appendconfig $confpath/retroarch.joyconfig,$confpath/psx/retroarch-psx.cfg "$*" +retroarch --appendconfig $confpath/retroarch.joyconfig.shada,$confpath/psx/retroarch-psx.cfg "$*" diff --git a/retroarch/retroarch.cfg b/retroarch/retroarch.cfg index 46c1445..afa6641 100644 --- a/retroarch/retroarch.cfg +++ b/retroarch/retroarch.cfg @@ -65,7 +65,7 @@ video_fullscreen = true # video_vsync = true # Smoothens picture with bilinear filtering. Should be disabled if using pixel shaders. -video_smooth = false +# video_smooth = true # Forces rendering area to stay equal to game aspect ratio or as defined in video_aspect_ratio. # video_force_aspect = true @@ -157,7 +157,7 @@ video_crop_overscan = true # audio_rate_step = 0.25 # Audio driver backend. Depending on configuration possible candidates are: alsa, pulse, oss, jack, rsound, roar, openal, sdl, xaudio. -# audio_driver = +audio_driver = pulse # Override the default audio device the audio_driver uses. This is driver dependant. E.g. ALSA wants a PCM device, OSS wants a path (e.g. /dev/dsp), Jack wants portnames (e.g. system:playback1,system:playback_2), and so on ... # audio_device = @@ -417,7 +417,7 @@ video_crop_overscan = true # it is saved. # Also, when loading a ROM, the index will be set to the highest existing index. # There is no upper bound on the index. -# savestate_auto_index = false +savestate_auto_index = true # Slowmotion ratio. When slowmotion, game will slow down by factor. # slowmotion_ratio = 3.0 diff --git a/zshrc b/zshrc index b5c6b18..f319e49 100644 --- a/zshrc +++ b/zshrc @@ -51,6 +51,7 @@ hash -d chroot_testing=/buildsystem/testing/buildroot hash -d chroot_master=/buildsystem/master/buildroot hash -d chroot_lib32=/buildsystem/lib32/buildroot hash -d wineprefixes=/mnt/sdd5/wineprefixes +hash -d UniMaas=~/Dropbox/Documents/UniMaas # set some env variables export _gamedir=/mnt/Skaro/Games/Linux/HumbleBundle