mirror of
https://github.com/purhan/dotfiles.git
synced 2025-12-26 22:35:01 +08:00
change bash prompt
This commit is contained in:
parent
841c0f9e33
commit
79bf0b3e6a
14 changed files with 72 additions and 174 deletions
|
|
@ -42,9 +42,6 @@ awful.key({modkey}, 'd', function()
|
|||
if flag == true then c.minimized = false end
|
||||
end
|
||||
end, {description = 'minimize all clients', group = 'awesome'}),
|
||||
awful.key({altkey}, 'space',
|
||||
function() _G.screen.primary.left_panel:toggle(true) end,
|
||||
{description = 'show main menu', group = 'awesome'}),
|
||||
awful.key({modkey}, 'u', awful.client.urgent.jumpto,
|
||||
{description = 'jump to urgent client', group = 'client'}),
|
||||
awful.key({altkey}, 'Tab', function()
|
||||
|
|
|
|||
|
|
@ -44,7 +44,7 @@ awful.screen.connect_for_each_screen(function(s)
|
|||
icon_only = true,
|
||||
layout = awful.layout.suit.tile,
|
||||
gap_single_client = true,
|
||||
gap = 4,
|
||||
gap = 2,
|
||||
screen = s,
|
||||
defaultApp = tag.defaultApp,
|
||||
selected = i == 1
|
||||
|
|
|
|||
|
|
@ -22,7 +22,7 @@ local left_panel = function(screen)
|
|||
|
||||
panel.opened = false
|
||||
|
||||
panel:struts({left = dpi(0), top = dpi(32)})
|
||||
panel:struts({left = dpi(0), top = dpi(36)})
|
||||
|
||||
local backdrop = wibox {
|
||||
ontop = true,
|
||||
|
|
|
|||
|
|
@ -1,25 +1,24 @@
|
|||
{
|
||||
"target": "terminus_open",
|
||||
"cancel": "terminus_cancel_build",
|
||||
"title": "Terminal",
|
||||
"auto_close": false,
|
||||
"timeit": true,
|
||||
|
||||
"post_window_hooks": [
|
||||
[
|
||||
"carry_file_to_pane", {"direction": "right"},
|
||||
]
|
||||
],
|
||||
|
||||
"focus": false,
|
||||
"cmd":["bash", "-c", "g++ -std=c++17 -Wall -Wextra -Wshadow -fsanitize=undefined '${file}' -o '${file_path}/compiled'.o && tput setaf 2 && '${file_path}/compiled.o'"],
|
||||
"file_regex": "^(..[^:]*):([0-9]+):?([0-9]+)?:? (.*)$",
|
||||
"working_dir": "${file_path}",
|
||||
"selector": "source.c, source.c++",
|
||||
"variants":
|
||||
[
|
||||
{
|
||||
"name": "Run",
|
||||
}
|
||||
]
|
||||
"target": "terminus_open",
|
||||
"cancel": "terminus_cancel_build",
|
||||
"title": "Terminal",
|
||||
"auto_close": false,
|
||||
"timeit": true,
|
||||
|
||||
"post_window_hooks": [["carry_file_to_pane", { "direction": "right" }]],
|
||||
|
||||
"focus": false,
|
||||
"cmd": [
|
||||
"bash",
|
||||
"-c",
|
||||
"g++ -std=c++17 -Wall -Wextra -Wshadow -fsanitize=undefined '${file}' -o '${file_path}/compiled'.o && tput setaf 2 && TIMEFORMAT='\nExecution Time: %R' && time '${file_path}/compiled.o' && unset TIMEFORMAT"
|
||||
],
|
||||
"file_regex": "^(..[^:]*):([0-9]+):?([0-9]+)?:? (.*)$",
|
||||
"working_dir": "${file_path}",
|
||||
"selector": "source.c, source.c++",
|
||||
"variants": [
|
||||
{
|
||||
"name": "Run"
|
||||
}
|
||||
]
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,25 +1,24 @@
|
|||
{
|
||||
"target": "terminus_open",
|
||||
"cancel": "terminus_cancel_build",
|
||||
"title": "Terminal",
|
||||
"auto_close": false,
|
||||
"timeit": true,
|
||||
|
||||
"post_window_hooks": [
|
||||
[
|
||||
"carry_file_to_pane", {"direction": "right"},
|
||||
]
|
||||
],
|
||||
|
||||
"focus": false,
|
||||
"cmd":["bash", "-c", "g++ -std=c++17 -Wall -Wextra -Wshadow -fsanitize=undefined '${file}' -o '${file_path}/compiled'.o && tput setaf 2 && timeout 5s '${file_path}/compiled.o' < input.txt"],
|
||||
"file_regex": "^(..[^:]*):([0-9]+):?([0-9]+)?:? (.*)$",
|
||||
"working_dir": "${file_path}",
|
||||
"selector": "source.c, source.c++",
|
||||
"variants":
|
||||
[
|
||||
{
|
||||
"name": "Run"
|
||||
}
|
||||
]
|
||||
"target": "terminus_open",
|
||||
"cancel": "terminus_cancel_build",
|
||||
"title": "Terminal",
|
||||
"auto_close": false,
|
||||
"timeit": true,
|
||||
|
||||
"post_window_hooks": [["carry_file_to_pane", { "direction": "right" }]],
|
||||
|
||||
"focus": false,
|
||||
"cmd": [
|
||||
"bash",
|
||||
"-c",
|
||||
"g++ -std=c++17 -Wall -Wextra -Wshadow -fsanitize=undefined '${file}' -o '${file_path}/compiled'.o && tput setaf 2 && TIMEFORMAT='\nExecution Time: %R' && time timeout 5s '${file_path}/compiled.o' < input.txt && unset TIMEFORMAT"
|
||||
],
|
||||
"file_regex": "^(..[^:]*):([0-9]+):?([0-9]+)?:? (.*)$",
|
||||
"working_dir": "${file_path}",
|
||||
"selector": "source.c, source.c++",
|
||||
"variants": [
|
||||
{
|
||||
"name": "Run"
|
||||
}
|
||||
]
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,3 +0,0 @@
|
|||
{
|
||||
"show_help_dialog": false
|
||||
}
|
||||
2
.config/sublime-text-3/Packages/User/Package Control.cache/01524fae79697630d0454ba3fabd9414
Executable file → Normal file
2
.config/sublime-text-3/Packages/User/Package Control.cache/01524fae79697630d0454ba3fabd9414
Executable file → Normal file
File diff suppressed because one or more lines are too long
4
.config/sublime-text-3/Packages/User/Package Control.cache/01524fae79697630d0454ba3fabd9414.info
Executable file → Normal file
4
.config/sublime-text-3/Packages/User/Package Control.cache/01524fae79697630d0454ba3fabd9414.info
Executable file → Normal file
|
|
@ -1,4 +1,4 @@
|
|||
{
|
||||
"etag": "\"5f49f844-57fd4\"",
|
||||
"last-modified": "Sat, 29 Aug 2020 06:40:04 GMT"
|
||||
"last-modified": "Sun, 30 Aug 2020 14:10:04 GMT",
|
||||
"etag": "\"5f4bb33c-57eb1\""
|
||||
}
|
||||
|
|
@ -1 +1 @@
|
|||
1598683771
|
||||
1598796846
|
||||
|
|
@ -1,5 +1,5 @@
|
|||
{
|
||||
"color_scheme": "Packages/Color Scheme - Default/Monokai.tmTheme",
|
||||
"color_scheme": "Packages/Color Scheme - Eazy Light/Eazy Light.tmTheme",
|
||||
"file_exclude_patterns":
|
||||
[
|
||||
"*.o"
|
||||
|
|
|
|||
|
|
@ -1,3 +1,3 @@
|
|||
{
|
||||
"theme": "dracula"
|
||||
"theme": "3024-day"
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,27 +1,27 @@
|
|||
{
|
||||
"variables": {
|
||||
"caret": "#f8f8f2",
|
||||
"cyan": "#8be9fd",
|
||||
"light_magenta": "#ff79c6",
|
||||
"light_green": "#50fa7b",
|
||||
"light_red": "#ff5555",
|
||||
"foreground": "#f8f8f2",
|
||||
"black": "#000000",
|
||||
"white": "#bbbbbb",
|
||||
"light_cyan": "#8be9fd",
|
||||
"magenta": "#ff79c6",
|
||||
"light_black": "#555555",
|
||||
"light_white": "#ffffff",
|
||||
"red": "#ff5555",
|
||||
"light_blue": "#bd93f9",
|
||||
"blue": "#bd93f9",
|
||||
"brown": "#f1fa8c",
|
||||
"light_brown": "#f1fa8c",
|
||||
"green": "#50fa7b",
|
||||
"background": "#1e1f2a"
|
||||
"brown": "#fded02",
|
||||
"caret": "#4a4543",
|
||||
"light_red": "#e8bbd0",
|
||||
"cyan": "#b5e4f4",
|
||||
"white": "#a5a2a2",
|
||||
"magenta": "#a16a94",
|
||||
"light_green": "#3a3432",
|
||||
"black": "#090300",
|
||||
"light_cyan": "#cdab53",
|
||||
"light_blue": "#807d7c",
|
||||
"light_black": "#5c5855",
|
||||
"green": "#01a252",
|
||||
"red": "#db2d20",
|
||||
"light_magenta": "#d6d5d4",
|
||||
"blue": "#01a0e4",
|
||||
"foreground": "#4a4543",
|
||||
"light_brown": "#4a4543",
|
||||
"light_white": "#f7f7f8",
|
||||
"background": "#f7f7f8"
|
||||
},
|
||||
"globals": {
|
||||
"background": "#1e1f29"
|
||||
"background": "#f7f7f7"
|
||||
},
|
||||
"name": "Terminus"
|
||||
}
|
||||
|
|
@ -1,48 +0,0 @@
|
|||
<snippet>
|
||||
<content><![CDATA[
|
||||
#include <iostream>
|
||||
#include <bits/stdc++.h>
|
||||
using namespace std;
|
||||
#define fo(i, a, b) for (int i=a; i<(b); i++)
|
||||
#define forev(i, b, a) for (int i = (b)-1; i >= a; i--)
|
||||
typedef long long ll;
|
||||
typedef long double ld;
|
||||
typedef complex<ld> cd;
|
||||
typedef pair<int, int> pi;
|
||||
typedef pair<ll, ll> pl;
|
||||
typedef pair<ld, ld> pd;
|
||||
typedef vector<int> vi;
|
||||
typedef vector<ld> vd;
|
||||
typedef vector<ll> vl;
|
||||
typedef vector<pi> vpi;
|
||||
typedef vector<pl> vpl;
|
||||
typedef vector<cd> vcd;
|
||||
#define mp make_pair
|
||||
#define pb push_back
|
||||
#define ff first
|
||||
#define ss second
|
||||
#define lb lower_bound
|
||||
#define ub upper_bound
|
||||
#define all(x) x.begin(), x.end()
|
||||
#define sortall(x) sort(all(x))
|
||||
#define endl "\n"
|
||||
#define fast ios_base::sync_with_stdio(0); cin.tie(0);
|
||||
// #define PI 3.1415926535897932384626
|
||||
// const int MOD = 1000000007;
|
||||
// const ll INF = 1e18;
|
||||
// const int MX = 100001;
|
||||
//==================================================================================
|
||||
|
||||
int main() {
|
||||
freopen("input.txt", "r", stdin);
|
||||
fast;
|
||||
// int t; cin >> t; while (t--)
|
||||
|
||||
return 0;
|
||||
}
|
||||
]]></content>
|
||||
<!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
|
||||
<tabTrigger>cf-atcoder-cc-template</tabTrigger>
|
||||
<!-- Optional: Set a scope to limit where the snippet will trigger -->
|
||||
<!-- <scope>source.python</scope> -->
|
||||
</snippet>
|
||||
|
|
@ -1,46 +0,0 @@
|
|||
<snippet>
|
||||
<content><![CDATA[
|
||||
#include<iostream>
|
||||
#include<bits/stdc++.h>
|
||||
#include<vector>
|
||||
using namespace std;
|
||||
#define lli long long int
|
||||
#define fo(i,b,n) for(int i=b;i<n;++i)
|
||||
#define si(x) scanf("%d",&x)
|
||||
#define sll(x) scanf("%lld",&x)
|
||||
#define ss(s) scanf("%s",s)
|
||||
#define pi(x) printf("%d\n",x)
|
||||
#define pl(x) printf("%lld\n",x)
|
||||
#define ps(s) printf("%s\n",s)
|
||||
#define all(x) x.begin(), x.end()
|
||||
#define clr(x) memset(x, 0, sizeof(x))
|
||||
#define sortall(x) sort(all(x))
|
||||
#define endl "\n"
|
||||
#define PI 3.1415926535897932384626
|
||||
const int mod = 1000000007;
|
||||
/*===================================================================*/
|
||||
|
||||
|
||||
int main() {
|
||||
ios_base::sync_with_stdio(false);
|
||||
cin.tie(NULL);
|
||||
|
||||
#ifndef ONLINE_JUDGE
|
||||
freopen("input.txt", "r", stdin);
|
||||
// freopen("output.txt", "w", stdout);
|
||||
#endif
|
||||
/*int t; cin>>t; while(t--)*/
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
return 0;
|
||||
}
|
||||
]]></content>
|
||||
<!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
|
||||
<tabTrigger>cp-template</tabTrigger>
|
||||
<!-- Optional: Set a scope to limit where the snippet will trigger -->
|
||||
<!-- <scope>source.python</scope> -->
|
||||
</snippet>
|
||||
Loading…
Add table
Add a link
Reference in a new issue