mirror of
https://github.com/harish2704/sway-workspace-grid.git
synced 2026-09-10 07:01:08 +00:00
Clean up
This commit is contained in:
@@ -100,6 +100,16 @@ WpManager.prototype.getCmd = function( swayWorkspace, dir, isMove ){
|
|||||||
return out.join('; ');
|
return out.join('; ');
|
||||||
};
|
};
|
||||||
|
|
||||||
|
function helpStr(){/*
|
||||||
|
sway-wp-switch
|
||||||
|
Usage:
|
||||||
|
sway-wp-switch [ -m ] <up|down|right|left>
|
||||||
|
|
||||||
|
Options:
|
||||||
|
-m move current window to new workspace while switching.
|
||||||
|
If currently focused windows in output-2, it will be placed in output-two itself without losing focus
|
||||||
|
*/}
|
||||||
|
|
||||||
|
|
||||||
function main(){
|
function main(){
|
||||||
var dir = process.argv[2],
|
var dir = process.argv[2],
|
||||||
@@ -116,13 +126,7 @@ function main(){
|
|||||||
dir = process.argv[3];
|
dir = process.argv[3];
|
||||||
}
|
}
|
||||||
if( [ 'up', 'down', 'right', 'left' ].indexOf( dir ) === -1 ){
|
if( [ 'up', 'down', 'right', 'left' ].indexOf( dir ) === -1 ){
|
||||||
console.log([
|
console.log( helpStr.toString().slice(22,-3) +'' );
|
||||||
'Usage:',
|
|
||||||
'\tsway-wp-switch [ -m ] <up|down|right|left>',
|
|
||||||
'\n',
|
|
||||||
'Options:',
|
|
||||||
'\t-m\t move current window to new workspace while switching'
|
|
||||||
].join('\n'));
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -3,7 +3,7 @@
|
|||||||
"version": "0.0.1",
|
"version": "0.0.1",
|
||||||
"description": "A simple utility to organize sway workspaces as M x N grid with multi-monitor support Edit",
|
"description": "A simple utility to organize sway workspaces as M x N grid with multi-monitor support Edit",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"bin":{
|
"bin": {
|
||||||
"sway-wp-switch": "./index.js"
|
"sway-wp-switch": "./index.js"
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
|||||||
Reference in New Issue
Block a user