Merge branch 'master' of git.ianonavy.com:ianonavy/dotfiles
Conflicts: i3/i3.dotfile/config
This commit is contained in:
commit
2f1eff4c15
@ -1,11 +1,10 @@
|
|||||||
//!javascript
|
//!javascript
|
||||||
|
|
||||||
Signal.connect("documentLoaded", function(wv, frame) {
|
Signal.connect("documentLoaded", function(wv, frame) {
|
||||||
autofillForm();
|
autofillForm(frame.document);
|
||||||
});
|
});
|
||||||
|
|
||||||
function fillUsername(name, username) {
|
function fillUsername(doc, name, username) {
|
||||||
var doc = tabs.current.focusedFrame.document;
|
|
||||||
var box = doc.querySelector('input[name="' + name + '"]');
|
var box = doc.querySelector('input[name="' + name + '"]');
|
||||||
if (!box) {
|
if (!box) {
|
||||||
box = doc.querySelector("input[name*=user]");
|
box = doc.querySelector("input[name*=user]");
|
||||||
@ -24,8 +23,7 @@ function fillUsername(name, username) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function fillPassword(name, password) {
|
function fillPassword(doc, name, password) {
|
||||||
var doc = tabs.current.focusedFrame.document;
|
|
||||||
var box = doc.querySelector('input[name="' + name + '"]');
|
var box = doc.querySelector('input[name="' + name + '"]');
|
||||||
if (!box) {
|
if (!box) {
|
||||||
box = doc.querySelector("input[type=password]");
|
box = doc.querySelector("input[type=password]");
|
||||||
@ -51,23 +49,23 @@ function lastPassFind(url, callbacks) {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
function autofillForm() {
|
function autofillForm(doc) {
|
||||||
var username, password;
|
var username, password;
|
||||||
lastPassFind(tabs.current.uri, {
|
lastPassFind(tabs.current.uri, {
|
||||||
onGetUsername: function (val) {
|
onGetUsername: function (val) {
|
||||||
username = val;
|
username = val;
|
||||||
fillUsername("", val);
|
fillUsername(doc, "", val);
|
||||||
},
|
},
|
||||||
onGetPassword: function (val) {
|
onGetPassword: function (val) {
|
||||||
password = val;
|
password = val;
|
||||||
fillPassword("", val);
|
fillPassword(doc, "", val);
|
||||||
},
|
},
|
||||||
onGetFieldName: function (line, name) {
|
onGetFieldName: function (line, name) {
|
||||||
if (username && line.indexOf(username) > -1) {
|
if (username && line.indexOf(username) > -1) {
|
||||||
fillUsername(name, username);
|
fillUsername(doc, name, username);
|
||||||
}
|
}
|
||||||
if (password && line.indexOf(password) > -1) {
|
if (password && line.indexOf(password) > -1) {
|
||||||
fillPassword(name, password);
|
fillPassword(doc, name, password);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|||||||
@ -33,3 +33,5 @@
|
|||||||
[user]
|
[user]
|
||||||
email = ianonavy@gmail.com
|
email = ianonavy@gmail.com
|
||||||
name = Ian Adam Naval
|
name = Ian Adam Naval
|
||||||
|
[merge]
|
||||||
|
tool = meld
|
||||||
|
|||||||
@ -121,6 +121,7 @@ bindsym $mod+Shift+c reload
|
|||||||
# restart i3 inplace (preserves your layout/session, can be used to upgrade i3)
|
# restart i3 inplace (preserves your layout/session, can be used to upgrade i3)
|
||||||
bindsym $mod+Shift+r restart
|
bindsym $mod+Shift+r restart
|
||||||
# exit i3 (logs you out of your X session)
|
# 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'"
|
||||||
|
|
||||||
# Pulse Audio controls
|
# Pulse Audio controls
|
||||||
bindsym XF86AudioRaiseVolume exec --no-startup-id pactl set-sink-volume 0 -- +10% && killall -SIGUSR1 i3status
|
bindsym XF86AudioRaiseVolume exec --no-startup-id pactl set-sink-volume 0 -- +10% && killall -SIGUSR1 i3status
|
||||||
@ -159,6 +160,17 @@ mode "resize" {
|
|||||||
bindsym Escape mode "default"
|
bindsym Escape mode "default"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
mode "move" {
|
||||||
|
bindsym Up move up 20px
|
||||||
|
bindsym Left move left 20px
|
||||||
|
bindsym Down move down 20px
|
||||||
|
bindsym Right move right 20px
|
||||||
|
|
||||||
|
bindsym Return mode "default"
|
||||||
|
bindsym Escape mode "default"
|
||||||
|
}
|
||||||
|
bindsym $mod+m focus floating; mode "move"
|
||||||
|
|
||||||
set $quit_msg [c]ancel [l]ock [e]xit [r]estart [s]hutdown; suspend to [d]isk [m]emory [h]ybrid
|
set $quit_msg [c]ancel [l]ock [e]xit [r]estart [s]hutdown; suspend to [d]isk [m]emory [h]ybrid
|
||||||
|
|
||||||
mode "$quit_msg" {
|
mode "$quit_msg" {
|
||||||
|
|||||||
@ -100,5 +100,10 @@ Host grover
|
|||||||
|
|
||||||
Host gonzo
|
Host gonzo
|
||||||
Hostname gonzo.acm.wpi.edu
|
Hostname gonzo.acm.wpi.edu
|
||||||
User admin
|
User acm
|
||||||
|
IdentityFile ~/.ssh/id_rsa
|
||||||
|
|
||||||
|
Host swedishchef
|
||||||
|
Hostname swedishchef.acm.wpi.edu
|
||||||
|
User acm
|
||||||
IdentityFile ~/.ssh/id_rsa
|
IdentityFile ~/.ssh/id_rsa
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user